This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.fn.shuffleChildren = function(){ | |
var p = this[0]; | |
for (var i = p.children.length; i >= 0; i--) { | |
p.appendChild(p.children[Math.random() * i | 0]); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Custom elements test</title> | |
</head> | |
<body> | |
<h3>Custom elements from HTML</h3> | |
<ol class="from-html" start="0"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo <b>bar</b> bam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Foo | |
- foo | |
- bar | |
code | |
code | |
- baz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test | |
- foo | |
- bar | |
baz | |
- bam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- ofo | |
- bar | |
bam | |
- zzz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul.tree | |
cursor: pointer | |
$self_color: desaturate($COLOR_MIDNIGHT_BLUE - 10, 20) | |
$darkening_per_level: 10 | |
$indent: 28px | |
.self | |
background-color: $self_color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL = %r{ | |
\A # Beginning of string | |
(http|https) # $1: Scheme | |
:\/\/ # :// | |
([\w\-_]+(?:\.[\w\-_]+)*) # $2: Hostname. Does not begin or end with a dot. No two dots in a row. | |
(?::(\d+)) # $3: Port (without leading colon) | |
(/[^/\?\#]*) # $4: Path (with leading slash) | |
(?:\?([^\#]*)) # $4: Query (without leading question mark) | |
(?:\#(.*)) # $5: Hash (without leading hash) | |
\z # End of string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am henning-koch on github. | |
* I am triskweline (https://keybase.io/triskweline) on keybase. | |
* I have a public key whose fingerprint is 17CF 7D9F 8992 66DA CB28 7332 9169 5476 8F13 232D | |
To claim this, I am signing this object: |
NewerOlder