Skip to content

Instantly share code, notes, and snippets.

@sylvaingi
sylvaingi / buildkite.sh
Last active December 16, 2015 09:56
Buildkite agent + Debian 7
sudo sh -c 'echo deb http://http.debian.net/debian jessie main > /etc/apt/sources.list.d/jessie.list'
sudo sh -c 'echo -e "Package: *\nPin: release n=wheezy\nPin-Priority: 990\n\nPackage: *\nPin: release n=jessie\nPin-Priority: 500" > /etc/apt/preferences.d/jessie'
sudo apt-get install -t jessie libc6-dev
@sylvaingi
sylvaingi / HOWTO.md
Last active August 29, 2015 14:06 — forked from tdragonite/HOWTO.md
  1. Find the id, name and day of the show for the artist you want to load, replace whitespace or other symbols with underscores. You can find all the information here: https://appletv.itunesfestival.com/1b/en-GB/gb.json looking in the source code or by searching the artist on iTunes through Google and taking the ID from the url (p.e. Tony Bennet: https://itunes.apple.com/us/artist/tony-bennett/id484980)

  2. Launch the script: ./itunes-festival.sh day id_artist

    Example: ./itunes-festival.sh 06 484980_tonybennett

  3. Have fun.

Working for iTunes Festival September 2014. Also on OS X. Tnx to the original creator!

@sylvaingi
sylvaingi / Cell.js
Created April 12, 2012 17:47
Conway's Game of Life with JS and D3
function Cell(initialState) {
this.isAlive = initialState;
this.willBeAlive = false;
}
Cell.prototype.computeNextState = function(aliveNeighborsCount) {
if(aliveNeighborsCount == 3){
this.willBeAlive = true;
} else if(aliveNeighborsCount > 3 || aliveNeighborsCount < 2) {
this.willBeAlive = false;