Skip to content

Instantly share code, notes, and snippets.

Pierre Mage PierreMage

  • London
Block or report user

Report or block PierreMage

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jboner / latency.txt
Last active May 29, 2020
Latency Numbers Every Programmer Should Know
View latency.txt
Latency Comparison Numbers (~2012)
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 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
ptitfred /
Created Mar 23, 2012
Incremental Maven Build for Modules based Maven project
#!/bin/bash -e
# NB: the file is named to let Gist colorize, but you should name it git-incr-build
# Put this script in your PATH and call it this way:
# git incr-build clean install
# Can be combined with git pull --rebase and git push to make an "fast & safe push" script
function branchName {
git rev-parse --symbolic-full-name --abbrev-ref $1
entaroadun / gist:1653794
Created Jan 21, 2012
Recommendation and Ratings Public Data Sets For Machine Learning
View gist:1653794

Movies Recommendation:

Music Recommendation:

entaroadun /
Created Dec 23, 2011
Visualization using Javascript on Github

Data visualization in one of three most important steps in data mining ( Often times, it's impossible to understand data without proper visualization. I went looking for great tools to do that.

Two website list recent JS visualization frameworks:

Most of them are available on Github. My three favorite:

lucasfais / gist:1207002
Created Sep 9, 2011
Sublime Text 2 - Useful Shortcuts
View gist:1207002

Sublime Text 2 – Useful Shortcuts (Mac OS X)


⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
You can’t perform that action at this time.