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 / gist:1389330
Created November 23, 2011 17:40
JLine Clojure
# for my ubuntu - 10.10
# install jline
$ sudo apt-get install libjline-java libjline-java-doc
# check the version which is installed.
$ dpkg -L libjline-java
# run clojure with jline.
@phoenix24
phoenix24 / hello-world.clj
Created November 23, 2011 17:43
Clojure Hello World.
# no more repl now - hello world clojure
$ cat hello-world.clj
(println "Hello, World")
$ java -cp clojure.jar clojure.main hello-world.clj
Hello, World
@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