- Bytes and Blobs by David Flanagan
- Conference Wifi Redux by Malte Ubi
- Sashimi - https://github.com/cramforce/Sashimi
- Run Your JS everywhere with Jellyfish by Adam Christian - http://jelly.io Project
- Fighting Crime and Kicking Apps with Batman.js by Nick Small
- Hello Jo by Dave Balmer - Project - http://joapp.com
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
| //******************************************* | |
| // Level 1, basic API, minimum support | |
| //******************************************* | |
| /* | |
| Modules IDs are strings that follow CommonJS | |
| module names. | |
| */ | |
| //To load code at the top level JS file, | |
| //or inside a module to dynamically fetch |
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 M(){}; | |
| M.contResult = function(value){ | |
| return function(cont){ | |
| console.log('in result: ' + value); | |
| return cont(value); | |
| } | |
| } | |
| M.contBind = function(mValue, mFunc){ |
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
| For the last two years I've been using Ubuntu Linux for software development. | |
| Last week I got a MacBook Pro and have been changing over. I run a heavily | |
| customized vim setup, so the change was particularly difficult with regards to | |
| my keyboard layout. | |
| These step show what I did to make my Mac work like my Linux machines which all | |
| have caps-lock remapped to control. I used OSX's built in keyboard setup tool | |
| to remap my caps-lock key to be a command key, since command, for the most | |
| part, takes the place of control as the primary shortcut key modifier. |
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
| app="myapp" | |
| function gen-ups { | |
| rebar generate-appups previous_release=$1 | |
| cat $app/lib/*/ebin/*.appup | |
| } | |
| # This uses a dirty bunch of hacks to "generate" downgrade instructions | |
| # (upgrade instructions in the opposite direction) with the current rebar | |
| # version. |
##Using libuv and http-parser to build a webserver
Ryan Dahl, @ryah
Talk as a screencast: http://vimeo.com/24713213
Source, Part I: http://t.co/utoIM93
Source, Part II: http://bit.ly/iBgnIA
##Node.js on windows
Bert Belder
http://2bs.nl/nodecamp.pdf
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 DIRSTACK_MAX=15 | |
| DS=() | |
| function eecho | |
| { | |
| echo $@ 1>&2 | |
| } | |
| function shiftStackUp | |
| { |
On Mac OS X Lion (64bits at least), we get random "Bus error 10" (or "Segmentation fault: 11") crashes if init:restart/0 is called and the crypto application is loaded. Why? XCode 4.1 ships an OpenSSL version that deprecates many functions used by OTP's crypto NIF (lib/crypto/c_src/crypto.c).
Example:
$ erl
---------- Forwarded message ----------
From: Mark S. Miller <[email protected]>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: [email protected]
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
| /* This is the call-with-current-continuation found in Scheme and other | |
| * Lisps. It captures the current call context and passes a callback to | |
| * resume it as an argument to the function. Here, I've modified it to fit | |
| * JavaScript and node.js paradigms by making it a method on Function | |
| * objects and using function (err, result) style callbacks. | |
| */ | |
| Function.prototype.callcc = function(context /* args... */) { | |
| var that = this, | |
| caller = Fiber.current, | |
| fiber = Fiber(function () { |