sudo yum install curl -y
curl -O https://s3.amazonaws.com/node-webkit/v0.6.3/node-webkit-v0.6.3-linux-ia32.tar.gz
tar -zxvf node-webkit-v0.6.3-linux-ia32.tar.gz
sudo ln -s /usr/lib64/libudev.so.1 /usr/lib64/libudev.so.0
echo 'export PATH=$PATH:/home/username/node-webkit-v0.6.3-linux-ia32' >> ~/.bashrc
source ~/.bashrc
nw
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 'export PATH=$HOME/local/bin:$PATH' >> ~/.bash_profile | |
. ~/.bash_profile | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-v0.2.3.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install | |
curl http://npmjs.org/install.sh | sh |
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
express = require 'express' | |
routes = require './index' | |
app = module.exports = express.createServer() | |
# Configuration | |
app.configure -> | |
app.set 'views', __dirname + '/views' | |
app.set 'view engine', 'jade' |
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 io = require('socket.io-client'); | |
var sock = io.connect('http://localhost:8080'); | |
var dnode = require('dnode'); | |
var Stream = require('stream'); | |
var stream = new Stream; | |
stream.writable = true; | |
stream.readable = true; | |
stream.write = function (buf) { | |
sock.emit('message', String(buf)); |
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
josh@onix:/tmp/http-repl$ curl -sSNT. localhost:8000 | |
Actual repl over http. NOW WITH A LIMITED CONTEXT!! | |
>> help | |
'Exits are North, South and Dennis.' | |
>> .exit | |
Terminal exiting. | |
You'll want to mash ctrl-c. | |
^C | |
josh@onix:/tmp/http-repl$ |
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
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.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
/** | |
* Campfire plugin for the uptime project - https://github.com/fzaninotto/uptime | |
* | |
* This index.js files goes to a directory `plugins/campfire` in your installation of uptime. | |
* | |
* Notifies all events (up, down, paused, restarted) to campfire | |
* | |
* This plugin has a dependency on `ranger`. | |
* Add this to the "dependencies" object in your `package.json` file : | |
* |
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
import Arweave from "arweave"; | |
import { JWKInterface } from "arweave/node/lib/wallet"; | |
import { LoggerFactory, WarpNodeFactory } from "warp-contracts"; | |
import fs from "fs"; | |
import path from "path"; | |
import ArLocal from "arlocal"; | |
(async () => { | |
const arlocal = new ArLocal(8080); | |
await arlocal.start(); | |
const arweave = Arweave.init({ |
OlderNewer