Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
nddrylliog / gist:1945062
Created February 29, 2012 22:38
Failed CD Baby download follow-up
Greetings From CD Baby's Digital Gnomes!
We're the clan of e-Gnomes that prepare the MP3s you purchased.
All of us, the e-Gnome parents and the e-Gnome children and even some
of the older 'Analog' Gnomes, came out to watch as your digital
download was prepared. Bit rates were carefully calibrated, wave-lengths
measured, and electrons spit-shined with the hems of our smocks.
It was so exciting that poor Pixel Gnome had to reboot!
colorscheme wombat256mod
@nddrylliog
nddrylliog / chainageAvantSansVariableTemplate.py
Created February 27, 2012 11:14
EPFL Introduction to IA - Lab 2
#-------------------------------------------------------------------------------
print("Loading chainage_avant_sans_variables")
print("\t@version: 2.5 date: 21/02/2011 modifie par Florent Garcin")
print("\t@version: 2.4 date: 27/06/2007 modifie par Thomas Leaute")
print("\t@version: 2.3 date: 20/02/2007 modifie par Vincent Schickel-Zuber")
print("\t@version: 2.2 date: 10/23/2006 modifie par Vincent Schickel-Zuber")
print("\t@version: 2.1 date: 01/03/2007 modifie par Bruno Alves")
print("\t@version: 2.0 date: 12/02/2007 modifie par Vincent Schickel-Zuber")
print("\t@author: [email protected]")
print("\t@copyright: EPFL-IC-IIF-LIA 2007")
@nddrylliog
nddrylliog / _README.md
Created February 13, 2012 16:24
Introducing blake and bleep, invaluable when running Rails tests

How to use

Just put bleep and blake somewhere in your path. Instead of running 'rake test', just run 'blake'.

You'll be glad you did!

@nddrylliog
nddrylliog / prepare-commit-msg
Created February 8, 2012 11:23 — forked from alexisbernard/prepare-commit-msg
Git hook to append Pivotal's story tag (prefix variant)
#!/bin/sh
# File: .git/hooks/prepare-commit-msg
# Append the Pivotal's story tag at the end of the commit message.
# Your branch must be named like this: 12345_my_branch.
story=$(git symbolic-ref HEAD|sed -r 's/^.*\/([0-9]+)_.*$/\1/') # -E instead of -r for Mac OS X
test $story && echo "[Story#$story]" >> $1
exit 0
@nddrylliog
nddrylliog / gist:1518625
Created December 25, 2011 02:01
Body Of Lies (2008) #sleeplessfilmreview
Oh, this is so very clearly "yet another USA vs terrorism movie", but
it does have a few reasons why it's worth watching.
For starters, you get to see Di Caprio castrated (figuratively) by a
Jordanian woman, hear him speaking Arabic, and then see him beaten
senseless by beard-bearing fanatics. I like to think of Leonardo as a
more subtle Matt Damon, more about the psychology of whatever country
he is supposed to be in the movie, and less about the "fuck yeah I can
run fast and aim well". He shows some respect of the culture of Middle
East, probably out of the writer's guilt for what the USA has done
@nddrylliog
nddrylliog / gist:1518610
Created December 25, 2011 01:47
Final Destination 5 (2011) #sleeplessfilmreview
I remember being told not to watch the first three Final Destination
movies when I was in high school. Turns out I've been missing on all the fun!
Don't expect a coherent plot. Death is a very shallow character in the movie,
expecting only the headcount to be right, with no poetry and any sense of
humor at all. That said, if you are so fucking angry that you wish you could
make people's heads explode barehanded, this might be the right movie for you.
If you're an european about to work for old-school american dudes, this
will also show you how the "asshole boss" system works: crush your spirits,
[Sun Dec 18 18:46:30 2011] [INFO] [Input] Input system initialized
[Sun Dec 18 18:46:30 2011] [DEBUG] [LevelLoader] Loading json assets/levels/level1.json!
[Sun Dec 18 18:46:30 2011] [DEBUG] [Sprite] Loading svg asset assets/svg/movingObj_Full.svg
[Sun Dec 18 18:46:30 2011] [DEBUG] [Sprite] Loaded png asset assets/png/platforms/metal.png (300x80)
[Sun Dec 18 18:46:30 2011] [DEBUG] [LevelLoader] Level 'Welcome to hell', by 'Amos Wenger'
[Sun Dec 18 18:46:30 2011] [DEBUG] [LevelLoader] Got an object of type 'background'
[Sun Dec 18 18:46:30 2011] [DEBUG] [Sprite] Loaded png asset assets/png/egypt.png (1280x960)
[Sun Dec 18 18:46:30 2011] [DEBUG] [LevelLoader] Got an object of type 'hero'
[Sun Dec 18 18:46:30 2011] [INFO] [LevelLoader] Hero starting at position (200.00, 10.00)
[Sun Dec 18 18:46:30 2011] [DEBUG] [LevelLoader] Got an object of type 'platform'
@nddrylliog
nddrylliog / gist:1445637
Created December 8, 2011 01:13
Eclipse stack trace.
at org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavable.doSave(AbstractTextEditor.java:7177)
at org.eclipse.ui.Saveable.doSave(Saveable.java:214)
at org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableHelper.java:349)
at org.eclipse.ui.internal.SaveableHelper$3.run(SaveableHelper.java:195)
at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:277)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
@nddrylliog
nddrylliog / gist:1416834
Created December 1, 2011 13:47
git: [rejected] non fast-forward, failed to push some refs - An explanation
The "non fast-forward" error is actually not weird at all, very standard, and it is very helpful.
In SVN, it doesn't tell you if some other changes are already on the sever, so it's easy to
overwrite the changes of someone else. Often it requires off-channel communication to know if someone
else is working on the same pieces of code as you, or a very strict policy of "always up before
you commit", which is easy to forget.
In git, it tells you if others have pushed changes before you pushed yours. As a result, it
forces you to run a "git pull" to pull the changes from the remote repository, merge them in,
and then try to push again.