- source.gfm GitHub Markdown
- source.yaml YAML
- source.coffee CoffeeScript
- source.litcoffee CoffeeScript (Literate)
- source.js JavaScript
- source.js.regexp Regular Expressions (JavaScript)
- text.xml.xsl XSL
- text.xml XML
- source.go Go
This file contains hidden or 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(Datamap, d3) { | |
var centered | |
function clickZoom(d) { | |
var self = this, | |
zoomFactor = self.options.zoomConfig.zoomFactor, | |
width = self.options.element.clientWidth, | |
height = self.options.element.clientHeight, | |
bounds; | |
if (centered === d |
This file contains hidden or 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 (window, document, $, undefined) { | |
var possibleCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
var defaults = { | |
selector: "#captcha", | |
text: null, | |
randomText: true, | |
randomColours: true, |
This file contains hidden or 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
/* | |
<input > | |
<ul> | |
<li text="test">test</li> | |
<li text="foo">foo value</li> | |
</ul> | |
*/ | |
$('input').keyup(function(e) { | |
var ul = $(this).next(); |
This file contains hidden or 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
if ( typeof lastTabEvent !== 'undefined' && +new Date() - 500 < lastTabEvent) return; else lastTabEvent = +new Date(); | |
/* | |
$('...').bind('tap', function(e) { | |
if ( typeof lastTabEvent !== 'undefined' && +new Date() - 500 < lastTabEvent) return; else lastTabEvent = +new Date(); | |
// ... | |
}); |
This file contains hidden or 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/node | |
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 3000, | |
root = process.argv[3] || '/www', | |
mime = {".3dm":"x-world/x-3dmf",".3dmf":"x-world/x-3dmf",".a":"application/octet-stream",".aab":"application/x-authorware-bin",".aam":"application/x-authorware-map",".aas":"application/x-authorware-seg",".abc":"text/vnd.abc",".acgi":"text/html",".afl":"video/animaflex",".ai":"application/postscript",".aif":"audio/x-aiff",".aifc":"audio/x-aiff",".aiff":"audio/x-aiff",".aim":"application/x-aim",".aip":"text/x-audiosoft-intra",".ani":"application/x-navi-animation",".aos":"application/x-nokia-9000-communicator-add-on-software",".aps":"application/mime",".arc":"application/octet-stream",".arj":"application/octet-stream",".art":"image/x-jg",".asf":"video/x-ms-asf",".asm":"text/x-asm",".asp":"text/asp",".asx":"video/x-ms-asf-plugin",".au":"audio/x-au",".avi":"video/x-msvideo",".avs":"video/avs-video",".bcpio":"ap |
NewerOlder