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
#!/usr/bin/php | |
<?php | |
$domain = $argv[1]; | |
if (!$domain) die("No domain given \n"); | |
$domain = trim($domain); | |
$domain = str_replace(".nl", "", $domain); | |
$data = file_get_contents("https://www.sidn.nl/index.php?eID=tx_sidnwhois_pi1&domain=$domain®=44&det=0&lang=nl&check=true&adv=1®mode=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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# -cat:Images_from_Wiki_Loves_Monuments | |
import sys, os | |
# Set your path to pywikipedia here | |
sys.path.append("/Users/hay/htdocs/checkouts/pywikipedia/") | |
import wikipedia, config, pagegenerators | |
import urllib2, codecs | |
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
(function($) { | |
$.detailsShim = function() { | |
$("details").each(function() { | |
// Initial state of all elements in <section> | |
var initOpen = ($(this).attr('open') === "true") ? true : false; | |
$(this).children(":not(summary)").each(function() { | |
$(this).toggle(initOpen); | |
}); | |
// Click event on <summary> toggles all elements |
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Enterprisify your Java Class Names! (by Hay Kranen)</title> | |
<style> | |
body { | |
background: white; | |
text-align: center; |
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
var TodosModel = Stapes.subclass(); | |
var TodosView = Stapes.subclass({ | |
constructor : function(model) { | |
var self = this; | |
this.$el = $("#inputform"); | |
this.model = model | |
var $input = this.$el.find("input"); |
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
<script type="text/html" id="template"> | |
<ul> | |
{{#todos}} | |
<li data-id="{{id}}"> | |
<input type="checkbox" class="remove" /> | |
{{text}} | |
</li> | |
{{/todos}} | |
</ul> |
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
{ | |
"70c427d6-3cf1-4a67-b5c7-24b7c8c5ee94" : { | |
"text" : "spam" | |
}, | |
"97f6a71d-9696-4977-a0b9-87f3be747a3e" : { | |
"text" : "eggs" | |
} | |
}; |
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
// ==UserScript== | |
// @match *://plus.google.com/* | |
// ==/UserScript== | |
[ | |
'#gb', | |
'#contentPane > div:first-child', | |
'.l-Ps.Vka', | |
'.mp.pu', | |
'.wl.cVa', | |
'.Uda.NTa.Uua', |
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
function hasOverflowScrolling() { | |
var prefixes = ['webkit', 'moz', 'o', 'ms']; | |
var div = document.createElement('div'); | |
var body = document.getElementsByTagName('body')[0]; | |
var hasIt = false; | |
body.appendChild(div); | |
for (var i = 0; i < prefixes.length; i++) { | |
var prefix = prefixes[i]; |
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
(function() { | |
var Module = { | |
create : function() { | |
return Object.create(this); | |
} | |
}; | |
window.Stapes = { | |
create : function() { | |
return Object.create(Module); |
OlderNewer