Skip to content

Instantly share code, notes, and snippets.

View phoenix24's full-sized avatar
🎯
Focusing

Chaitanya Sharma phoenix24

🎯
Focusing
View GitHub Profile
###########
### MVC ###
###########
https://github.com/documentcloud/backbone
https://github.com/paulca/eyeballs.js
https://github.com/ahe/choco
https://github.com/maccman/superapp
http://www.sproutcore.com/
http://javascriptmvc.com/
ctrl-z
bg
touch /tmp/stdout
touch /tmp/stderr
gdb -p $!
# In GDB
p dup2(open("/tmp/stdout", 1), 1)
p dup2(open("/tmp/stderr", 1), 2)
@phoenix24
phoenix24 / latency.markdown
Created September 18, 2012 17:46 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@phoenix24
phoenix24 / latency.txt
Created September 18, 2012 17:47 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
@phoenix24
phoenix24 / gameengines.md
Created November 30, 2012 10:59 — forked from bebraw/gameengines.md
List of JS game engines. You can find a wikified version at https://github.com/bebraw/jswiki/wiki/Game-Engines. Feel free to modify that. I sync it here every once in a while.

IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version. There's also a "notes" column in the table but it simply does not fit there... Check out the raw version to see it.

This table contains primarily HTML5 based game engines and frameworks. You might also want to check out the [[Feature Matrix|Game-Engine-Feature-Matrix]], [[Game Resources]] and [[Scene Graphs]].

Name Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 453 GPL2, MIT Classic Repro no API github Intended for making classic arcade-style games in JS+HTML5
AllBinary Platform Platform Dependent AllBinary 2D/2.5D/3D n
@phoenix24
phoenix24 / gameengines.md
Created November 30, 2012 10:59 — forked from bebraw/gameengines.md
List of JS game engines. You can find a wikified version at https://github.com/bebraw/jswiki/wiki/Game-Engines. Feel free to modify that. I sync it here every once in a while.

IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version. There's also a "notes" column in the table but it simply does not fit there... Check out the raw version to see it.

This table contains primarily HTML5 based game engines and frameworks. You might also want to check out the [[Feature Matrix|Game-Engine-Feature-Matrix]], [[Game Resources]] and [[Scene Graphs]].

Name Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 453 GPL2, MIT Classic Repro no API github Intended for making classic arcade-style games in JS+HTML5
AllBinary Platform Platform Dependent AllBinary 2D/2.5D/3D n
64 bit OS
=========
Name PMCPUMark Rank CPUValue TDP Price jvm Scala compile time
Intel Core i7-2600K @ 3.40GHz 8529 59 26.65 95W $319.98 Hotspot 1.7.0_17 64 bit OC@ 4.3GHz: 11.541 s *
AMD Phenom II X6 1075T @ 3.0GHz 5407 174 41.60 125W $129.99 JRockit 1.6 64 bit 17 s
Intel Core i7-3770K @ 3.50GHz 9632 30 30.87 77W $311.99 64 bit 17.071 s
AMD Phenom II X6 1090T @ 3.20GHz 5684 160 28.42 125W $199.99 JRockit 1.6.0_37 32 bit 17.304 s
AMD Phenom II X6 1090T @ 3.20GHz 5684 160 28.42 125W $199.99 JRockit 1.6.0_37 64 bit 17.340 s
Intel Core i7-3930K @ 3.20GHz 12112 13 22.43 130W $539.99 64 bit OC@ 4.4GHz: 17.526 s
AMD Phenom II X6 1090T @ 3.20GHz 5684 160 28.42 125W $199.99 JRockit 1.6.0_20 64 bit 18.280 s
#!/usr/bin/env python
import os
import sys
import argparse
try:
from boto.ec2.connection import EC2Connection
except ImportError:
sys.stderr.write('Please install boto ( http://docs.pythonboto.org/en/latest/getting_started.html )\n')
sys.exit(1)