- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
nate's teachers for soft circuitry/etextiles/etc:
nate's teachers for knitting, crocheting, sewing and such:
- several local meetup groups
- knittinghelp.com
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== | |
// @name Octigones | |
// @namespace https://github.com | |
// @include https://github.com/* | |
// @description A GitHub beautifier. | |
// ==/UserScript== | |
var JQUERY_URL = 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', | |
$; |
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 | |
([ $(date +%k) -lt 7 ] || [ $(date +%k) -gt 19 ]) && co=⚪ || co=☀ | |
symbolize=" sed \ | |
-e 's/ inch.*igher.*/↑/i' \ | |
-e 's/ \(inch\|hPa\).*ower.*/↓/i' \ | |
-e 's/overcast/☁☁/i' \ | |
-e 's/partly cloudy/$co☁/i' \ | |
-e 's/mostly cloudy/☁$co/i' \ | |
-e 's/mostly sunny/☀☁/i' \ | |
-e 's/partly sunny/☁☀/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
require 'osc-ruby' | |
@touchosc = OSC::Server.new(3818) | |
@ardour = OSC::Client.new('localhost', 3819) | |
@touchosc.add_method(/\/ardour/) do |m| | |
puts "#{m.address} #{m.to_a}" | |
if m.address == '/ardour/transport_play' and m.to_a == [0.0] | |
@ardour.send(OSC::Message.new('/ardour/transport_stop')) |
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
// 1 | |
document.getElementById('the_div').addEventListener( | |
'click', function(){ log('the_div!') }, true); | |
document.getElementById('the_list').addEventListener( | |
'click', function(){ log('the_list!') }, false); | |
document.getElementById('the_item').addEventListener( | |
'click', function(){ log('the_item!') }, 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
var Cache = function() { | |
this.table = {}; | |
}; | |
Cache.prototype = { | |
'get': function(key) { | |
return this.table[key]; | |
}, | |
'set': function(key, value) { | |
return this.table[key] = value; |
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/ruby | |
require 'optparse' | |
require 'appscript' | |
require 'growl' | |
include Appscript | |
include Growl | |
class Pomodoro | |
attr_accessor :playlist, :time, :message, :lock, :done |
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 | |
function strip_tags { | |
sed "s/<[^>][^>]*>//g; s/^ *//g" | |
} | |
function break_every_third_line { | |
awk '{ if ( NR % 3 == 0 || NR == 1 ) print "" } { print }' | |
} | |
function sentencecase { | |
gsed "s/\([^.]\s\)\([A-Z]\)/\1\l\2/g" | |
} |