Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
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
| /* | |
| * Javascript EXIF Reader 0.1.4 | |
| * Copyright (c) 2008 Jacob Seidelin, [email protected], http://blog.nihilogic.dk/ | |
| * Licensed under the MPL License [http://www.nihilogic.dk/licenses/mpl-license.txt] | |
| */ | |
| var EXIF = {}; | |
| (function() { |
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
| /* | |
| * Javascript EXIF Reader 0.1.4 | |
| * Copyright (c) 2008 Jacob Seidelin, [email protected], http://blog.nihilogic.dk/ | |
| * Licensed under the MPL License [http://www.nihilogic.dk/licenses/mpl-license.txt] | |
| */ | |
| var EXIF = {}; | |
| (function() { |
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
| Last login: Sat Nov 3 12:48:23 on ttys000 | |
| redxiii:~ christopherdebeer$ redis-cli | |
| redis 127.0.0.1:6379> set x 2 | |
| OK | |
| redis 127.0.0.1:6379> get x | |
| "2" | |
| redis 127.0.0.1:6379> sadd test 2 | |
| (integer) 1 | |
| redis 127.0.0.1:6379> smembers test | |
| 1) "2" |
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 app = { | |
| version: 1 | |
| init: function(){prompt(hmmm a no url app, what do you think?);} | |
| } |
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 createGame = require('voxel-engine') | |
| function sphereWorld(x, y, z) { | |
| // return the index of the material you want to show up | |
| // 0 is air | |
| if (x*x + y*y + z*z > 15*15) return 0 | |
| return 3 | |
| } | |
| var game = createGame({ |
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
| #!/usr/bin/env bash | |
| wget http://redis.googlecode.com/files/redis-2.4.14.tar.gz | |
| tar xvzf redis-2.4.14.tar.gz | |
| cd redis-2.4.14 | |
| sudo make install | |
| cd utils | |
| sudo ln -s /usr/local/bin/redis-server /usr/bin/redis-server | |
| sudo ./install_server.sh |
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
| ### | |
| Module dependencies | |
| ### | |
| require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
| require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
| express = require 'express' | |
| app = module.exports = express.createServer() | |
| RedisStore = require 'connect-redis' |
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
| "{"version":1.2,"stores":{"wood":4421,"fur":19082,"bait":354,"meat":55,"teeth":144,"cloth":400,"scales":73,"leather":508,"cured meat":925,"torch":5,"bone spear":10,"rucksack":1,"waterskin":1,"charm":1,"l armour":1,"compass":1,"iron sword":0,"bolas":0,"iron":1127,"cask":1,"wagon":1,"coal":1349,"steel":627,"water tank":1,"steel sword":0,"convoy":1,"s armour":1,"bullets":5,"rifle":2,"grenade":1,"alien alloy":4},"perks":{"precise":true,"stealthy":true},"room":{"temperature":{"value":2,"text":"mild"},"fire":{"value":2,"text":"flickering"},"buttons":{"trap":true,"cart":true,"hut":true,"lodge":true,"trading post":true,"tannery":true,"smokehouse":true,"workshop":true,"torch":true,"waterskin":true,"rucksack":true,"l armour":true,"bone spear":true,"cask":true,"wagon":true,"i armour":true,"iron sword":true,"steelworks":true,"water tank":true,"convoy":true,"s armour":true,"steel sword":true},"builder":4},"outside":{"buildings":{"trap":10,"cart":1,"lodge":1,"hut":20,"trading post":1,"tannery":1,"smokehouse":1,"workshop":1 |
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
| class Person | |
| get = (props) => | |
| @::__defineGetter__ name, func for name, func of props | |
| set = (props) => | |
| @::__defineSetter__ name, func for name, func of props | |
| get age: -> (Date.now() - @birthdate) / MILLIS_PER_YEAR |