Create a new game process
.load arena.lua
.load ao-effect.lua
.load-blueprint token
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({ |
/** | |
* 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 : | |
* |
// 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 |
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
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$ |
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)); |
express = require 'express' | |
routes = require './index' | |
app = module.exports = express.createServer() | |
# Configuration | |
app.configure -> | |
app.set 'views', __dirname + '/views' | |
app.set 'view engine', 'jade' |
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 |