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
var http = require('http') | |
; | |
http.createServer( function (req, res) { | |
var client | |
, proxy_request | |
; | |
console.log('connection made - + ='); |
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
node.js:116 | |
throw e; // process.nextTick error, or 'error' event | |
^ | |
Error: unterminated string literal: | |
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
{ | |
"yamjs": { | |
"yamjs-public.js": [ | |
"lib/future/core.js" | |
, "lib/future/adapters/jquery_adapter.js" | |
, "lib/future/util.js" | |
, "lib/libraries/swfobject.js" | |
, "lib/constants.js" | |
, "lib/global/plugin_initializers.js" |
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
jklabo@WIN-7GVBD8GH9JQ ~/src/node | |
$ ./configure | |
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok | |
Checking for program gcc or cc : /usr/bin/gcc | |
Checking for gcc : ok | |
Checking for library dl : yes |
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
export DISPLAY=:0.0 | |
export PATH=$PATH:/opt/local/bin:/opt/local/sbin | |
export MANPATH=$MANPATH:/opt/local/man | |
export PATH=/opt/ruby-enterprise-current/bin:$PATH | |
export PATH=/opt/local/lib/postgresql84/bin:$PATH | |
# For JSYammerDesktop | |
export ADL_PATH=/users/jklabo/AdobeAIRSDK/bin/adl | |
export ACOMPC_BIN=/users/jklabo/AdobeFlexSDK/bin/acompc | |
export YAMJS_HOME=/Users/jklabo/src/yamjs |
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
Jklabo:node master$ sudo ./configure | |
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok | |
Checking for program gcc or cc : /usr/bin/gcc | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for gcc : ok |
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
Object.prototype.later = function (time, methodName) { | |
var args = Array.prototype.slice.apply(arguments, [2]) | |
, func = this[ methodName ] | |
; | |
setTimeout(function() { | |
func.apply(self, args); | |
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 findBeer(words) { | |
var search_terms = []; | |
var rows = []; | |
// | |
// I want to assign a variable from the 'getResults' callback | |
// to this: | |
// | |
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[type=submit]').click(function(){ | |
name = $('input[type=text]').val(); | |
text = $('textarea').val(); | |
date = new Date() | |
data = 'name=' + name + '&text=' + text + '&date=' + date; | |
$.ajax({ | |
type: 'POST', | |
url: '/uservoice/', | |
data: data, |
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
{"total_rows":17,"offset":0,"rows":[ | |
{"id":"26c6773b785e9ec07a71f60bb2000532","key":null,"value":["Joel Klabo","I am testing this thing."]}, | |
{"id":"26c6773b785e9ec07a71f60bb2000b3d","key":"Wed Jan 12 2011 21:25:39 GMT-0800 (PST)","value":["Joel Klabo","I am doing this things"]}, | |
{"id":"26c6773b785e9ec07a71f60bb2001534","key":"Wed Jan 12 2011 21:29:41 GMT-0800 (PST)","value":["Joel Klabo","I am commenting"]}, | |
{"id":"26c6773b785e9ec07a71f60bb2001544","key":"Wed Jan 12 2011 21:32:40 GMT-0800 (PST)","value":["Joel Klabo","I commented"]}, | |
{"id":"26c6773b785e9ec07a71f60bb2002316","key":"Wed Jan 12 2011 21:39:05 GMT-0800 (PST)","value":["Joel Klabo","Things"]}, | |
{"id":"26c6773b785e9ec07a71f60bb2002c84","key":"Wed Jan 12 2011 21:40:33 GMT-0800 (PST)","value":["Joel Klabo","Things"]}, | |
{"id":"26c6773b785e9ec07a71f60bb200306c","key":"Wed Jan 12 2011 21:41:54 GMT-0800 (PST)","value":["Joel Klabo","I think THIS!"]}, | |
{"id":"26c6773b785e9ec07a71f60bb200378e","key":"Wed Jan 12 2011 21:44:24 GMT-0800 (PST)","value":["Joel Klab |