Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Kassens kassens

View GitHub Profile
@kassens
kassens / LICENSE.txt
Created May 23, 2011 — forked from 140bytes/LICENSE.txt
Fibonacci in 52 bytes.
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jan Kassens <jan@kassens.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
View selector-bug.html
<!DOCTYPE html>
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
window.onload = function () {
console.log(document.querySelectorAll('div:nth-child(6) img'));
console.log(document.querySelectorAll('div:nth-child(6) img'));
console.log(document.querySelectorAll('div:nth-child(6) img'));
}
</script>
View gist:362704
#import <Foundation/Foundation.h>
@interface Settings : NSObject {
NSString *email;
NSString *password;
NSString *server;
BOOL pushesMentions;
BOOL pushesBroadcasts;
View gist:134126
(function(write, wrapper, slice, fragment){
document.write = function(){
var id = 'document_write' + $time().toString(36);
var html = slice.call(arguments).join('');
write.call(document, '<span id="' + id + '"></span>');
window.addEvent('domready', function(){
Array.filter(wrapper.set('html', html).childNodes, document.write.filter).each(function(node){