Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #! /usr/bin/bash | |
| # parameter parsing | |
| while getopts ":d:t:ch" opt; do | |
| case ${opt} in | |
| d ) | |
| dir=$OPTARG | |
| ;; | |
| # s ) | |
| # target=$OPTARG |
| game.CharacterFromRPGMakerSpritesheet = me.ObjectEntity.extend({ | |
| init: function(x, y, settings) { | |
| this.parent(x, y, settings); | |
| this.renderable.addAnimation("stand-down", [0]); | |
| this.renderable.addAnimation("down", [0, 1, 2, 3], 3); | |
| this.renderable.addAnimation("stand-up", [12]); | |
| this.renderable.addAnimation("up", [12, 13, 14, 15], 3); |
| var collectionNames = db.getCollectionNames(), stats = []; | |
| collectionNames.forEach(function (n) { stats.push(db[n].stats()); }); | |
| stats = stats.sort(function(a, b) { return b['size'] - a['size']; }); | |
| for (var c in stats) { print(stats[c]['ns'] + ": " + stats[c]['size'] + " (" + stats[c]['storageSize'] + ")"); } |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #include <node.h> | |
| #include <v8.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| using namespace v8; | |
| Handle<Value> getRandomCoords2D(const Arguments& args) { | |
| HandleScope scope; | |