Looks familiar?
Worry no more! Use extract and prosper!
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| machine github.com | |
| login technoweenie | |
| password SECRET | |
| machine api.github.com | |
| login technoweenie | |
| password SECRET |
| #include <iostream> | |
| using namespace std; | |
| class LCG { | |
| unsigned long s; | |
| static const unsigned long M = 1103515245UL; | |
| static const unsigned long A = 12345UL; | |
| static const unsigned long B = 2147483647UL; | |
| public: |
| // Remi Gillig - http://speps.fr - 2012 - Public domain | |
| using System; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class DebugDraw | |
| { | |
| static Material material = new Material( | |
| @"Shader ""Custom/DebugDraw"" { |
| *.meta -diff | |
| *.asset -diff | |
| *.unity -diff |
| package main | |
| import ( | |
| "log" | |
| "myserver" | |
| "net/http" | |
| ) | |
| const addr = "localhost:12345" |
| using System; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEngine; | |
| //Unity 4.1.5 | |
| public class UnityTextures : EditorWindow | |
| { |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007