- 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 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
$ openssl genrsa -des3 -passout pass:x -out server.pass.key 2048 | |
... | |
$ openssl rsa -passin pass:x -in server.pass.key -out server.key | |
writing RSA key | |
$ rm server.pass.key | |
$ openssl req -new -key server.key -out server.csr | |
... | |
Country Name (2 letter code) [AU]:US | |
State or Province Name (full name) [Some-State]:California | |
... |
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
/* | |
* Copyright 2014 Jason Woods. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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/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 |
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
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 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 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 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 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 html = (function () {/* | |
2 <!DOCTYPE html> | |
3 <html> | |
4 <body> | |
5 <h1>Hello, world!</h1> | |
6 </body> | |
7 </html> | |
8 */}).toString().match(/[^]*\/\*([^]*)\*\/\}$/)[1]; |
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/env node | |
var got = require('got'), | |
csv = require('csv-parser'), | |
through = require('through2'), | |
geojsonStream = require('geojson-stream'); | |
/** | |
* Download and output airport database | |
* |
OlderNewer