Skip to content

Instantly share code, notes, and snippets.

View isaacs's full-sized avatar
🔮
only way out is through

isaacs isaacs

🔮
only way out is through
View GitHub Profile
@isaacs
isaacs / LICENSE.txt
Created May 20, 2011 20:13 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
Copyright (c) 2011 YOUR_NAME_HERE, YOUR_URL_HERE
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@isaacs
isaacs / asdf
Created July 18, 2011 02:50 — forked from guybrush/asdf
~/bhub/lib/node-browserify $ npm ls
npm WARN coffee-script >=1.1.1 <1.2 Unmet dependency in /home/patrick/bhub/lib/node-browserify
npm WARN commondir 0.0.x Unmet dependency in /home/patrick/bhub/lib/node-browserify
npm WARN detective >=0.0.1 <0.1 Unmet dependency in /home/patrick/bhub/lib/node-browserify
npm WARN nub 0.0.x Unmet dependency in /home/patrick/bhub/lib/node-browserify
npm WARN optimist >=0.2.6 <0.3 Unmet dependency in /home/patrick/bhub/lib/node-browserify
npm WARN resolve >=0.0.4 <0.1 Unmet dependency in /home/patrick/bhub/lib/node-browserify
browserify@1.3.0 /home/patrick/bhub/lib/node-browserify
├── UNMET DEPENDENCY coffee-script >=1.1.1 <1.2
├── UNMET DEPENDENCY commondir 0.0.x
@isaacs
isaacs / asdf
Created July 18, 2011 02:50 — forked from guybrush/asdf
~/bhub/lib/node-browserify $ npm ls
npm WARN coffee-script >=1.1.1 <1.2 Unmet dependency in /home/patrick/bhub/lib/node-browserify
npm WARN commondir 0.0.x Unmet dependency in /home/patrick/bhub/lib/node-browserify
npm WARN detective >=0.0.1 <0.1 Unmet dependency in /home/patrick/bhub/lib/node-browserify
npm WARN nub 0.0.x Unmet dependency in /home/patrick/bhub/lib/node-browserify
npm WARN optimist >=0.2.6 <0.3 Unmet dependency in /home/patrick/bhub/lib/node-browserify
npm WARN resolve >=0.0.4 <0.1 Unmet dependency in /home/patrick/bhub/lib/node-browserify
browserify@1.3.0 /home/patrick/bhub/lib/node-browserify
├── UNMET DEPENDENCY coffee-script >=1.1.1 <1.2
├── UNMET DEPENDENCY commondir 0.0.x
@isaacs
isaacs / rimraf-callback.js
Created August 8, 2011 03:05 — forked from laverdet/rimraf.js
rimraf with futures
module.exports = rimraf
var path = require("path")
, fs = require("fs")
// for EBUSY handling
var waitBusy = {}
// for EMFILE handling
var resetTimer = null
@isaacs
isaacs / hello.js
Created April 6, 2012 00:51 — forked from jhs/hello.js
Safe Javascript semicolons
var http = require('http');;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
//////;/* /* /* make sure to *really* comment your comments.*******************/
http.createServer(function (request, response) {;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;response.writeHead(200, {'Content-Type': 'text/plain'});;;;;;;;;;;;;;;;;;;;;;;
// CreativeMUD by whiskers75
// Licenced under the GPLv2.
var sockets = [];
var players = [];
var repl = require('repl');
var net = require('net');
var len = 0;
@isaacs
isaacs / st.js
Created August 9, 2012 20:41 — forked from max-mapper/readme.md
node simple static router
var st = require('st')
var mount = st({
path: 'resources/static/',
url: 'static/', // defaults to path option
cacheSize: 1024*1024*1024, // 1GB memory cache. default = 0
fdCacheSize: 1024, // number of fd's to cache. default = 1024
index: true, // show an html index for dirs
index: 'index.html', // use index.html for dirs, if present
cacheExpiry: 10*60*1000, // expiration of contentCache in ms
serveStale: true // update in the background,
* buffer: Add Buffer.isEncoding(enc) to test for valid encoding values (isaacs)
* Raise UV_ECANCELED on premature close. (Ben Noordhuis)
* Remove c-ares from libuv, move to a top-level node dependency (Bert Belder)
* ref/unref for all HandleWraps, timers, servers, and sockets (Timothy J Fontaine)
* addon: remove node-waf, superseded by node-gyp (Ben Noordhuis)
@isaacs
isaacs / video.md
Created September 13, 2012 02:54 — forked from napcs/video.md
Video project

Intro to Programming video

I want to make a video to show my class of would-be IT people. If you write code, would you send me a video clip (webcam, less than 30s) with the following?

  • Introduce yourself (name, where you work)
  • Why you love what you do
  • Why you love open-source software (optional, but would be super helpful)
@isaacs
isaacs / case.js
Created November 6, 2012 00:17 — forked from Gozala/case.js
npm testcase
var npm = require("npm")
var path = require("path")
npm.load({ prefix: path.join(process.env.HOME, ".orchestrator") }, function(e, npm) {
npm.commands.install(["method"], function(err, _) {
npm.commands.ls([], console.log)
})
})