Skip to content

Instantly share code, notes, and snippets.

View dakur's full-sized avatar

dakur

View GitHub Profile
h1 {font-size: 100px}
@dakur
dakur / Faker.php
Last active November 14, 2018 06:32
<?php
use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;
use Slim\App;
use Slim\Http\Request;
use Slim\Http\Response;
require_once __DIR__ . '/vendor/autoload.php';
@dakur
dakur / single-page.html
Created June 20, 2016 13:36
Ukázka propojení odkazu s nadpisy
Outline:
<a href="#organization_details">Organization details</a>
<a href="#accomodation">Accomodation</a>
Content:
<h2 id="organization_details">Organization details</h2>
bla bla bla
bla bla bla
bla bla bla
bla bla bla
@dakur
dakur / regexp-gps-coords.md
Last active December 14, 2017 09:31
Regular expression for checking GPS coordinates

Update: In the end, I've decided to validate against some map API, because there are too many cases which this piece of regexp can not cover.


JavaScript

^(N|S)?\s*(\d*[.])?\d+(\u00b0\s*)?((\d*[.])?\d+((\u0022)|((\u0027\s*)?)?((\d*[.])?\d+?(\u0022)?)?))?[\s\u002c]+(W|E)?\s*(\d*[.])?\d+(\u00b0\s*)?((\d*[.])?\d+((\u0022)|((\u0027\s*)?)?((\d*[.])?\d+(\u0022)?)?))?$

Use flag /i