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> | |
<script> | |
Object.defineProperty(console, '_commandLineAPI', | |
{ get : function() { throw 'Nooo!' } }) | |
</script> | |
<html> |
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
echo '"\e[A": history-search-backward "\e[B": history-search-forward set show-all-if-ambiguous on set completion-ignore-case on' > ~/.inputrc |
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>Coverage</title><script> | |
headings = []; | |
onload = function(){ | |
headings = document.querySelectorAll('h2'); | |
}; | |
onscroll = function(e){ | |
var heading = find(window.scrollY); |
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
The ExpressJS-MongooseJS.org initiative ;) | |
Trying to come up with a standard expressjs + mongoose mvc-like folder structure. | |
still keep it flexible, so anyone can do whatever they want, | |
but provide a structure for new people. | |
(borrowing a little form rails) | |
-/app | |
--/controller |
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
// MIXINS | |
vendor(prop, args) | |
-webkit-{prop} args | |
-moz-{prop} args | |
-o-{prop} args | |
{prop} args | |
animation() | |
vendor('animation', arguments) |
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 domains = { '.arpa': true,'.root': true,'.aero': true,'.biz': true,'.cat': true,'.com': true,'.coop': true,'.edu': true,'.gov': true,'.info': true,'.int': true,'.jobs': true,'.mil': true,'.mobi': true,'.museum': true,'.name': true,'.net': true,'.org': true,'.pro': true,'.travel': true,'.ac': true,'.ad': true,'.ae': true,'.af': true,'.ag': true,'.ai': true,'.al': true,'.am': true,'.an': true,'.ao': true,'.aq': true,'.ar': true,'.as': true,'.at': true,'.au': true,'.aw': true,'.az': true,'.ba': true,'.bb': true,'.bd': true,'.be': true,'.bf': true,'.bg': true,'.bh': true,'.bi': true,'.bj': true,'.bm': true,'.bn': true,'.bo': true,'.br': true,'.bs': true,'.bt': true,'.bv': true,'.bw': true,'.by': true,'.bz': true,'.ca': true,'.cc': true,'.cd': true,'.cf': true,'.cg': true,'.ch': true,'.ci': true,'.ck': true,'.cl': true,'.cm': true,'.cn': true,'.co': true,'.cr': true,'.cu': true,'.cv': true,'.cx': true,'.cy': true,'.cz': true,'.de': 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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
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 sax = require('sax'), | |
fs = require('fs'); | |
var strict = true; | |
var tag; | |
// Stream usage | |
// takes the same options as the parser | |
var saxStream = require("sax").createStream(strict) | |
saxStream.on("error", function (err) { | |
// unhandled errors will throw, since this is a proper node |
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
/* Pretty printing styles. Used with prettify.js. */ | |
pre code { | |
font-family: 'Monaco', 'Menlo', monospace; | |
font-size: 13px; | |
background-color: #1c1d1e; | |
display: block; | |
padding: 20px; | |
overflow: auto; | |
margin: 20px 0px; | |
clear: both; |
OlderNewer