Skip to content

Instantly share code, notes, and snippets.

View DrummerHead's full-sized avatar
💭
Eternally Elated

DrummerHead DrummerHead

💭
Eternally Elated
View GitHub Profile
@DrummerHead
DrummerHead / nomegusta
Created May 13, 2012 00:11
Estandar nomegusta para Facebook
// Estandar nomegusta para Facebook
#nomegusta(@nombreDelUsuario, n)
// habiendo @nombreDelUsuario comentado x veces en un thread dado, n es el número del comentario de la persona
// que uno desea expresar que no te gusta. Me parece mas efectivo contar los comentarios de la persona en un
// thread vs contar todos los comentarios, ya que hay que contar menos.
// Ya que los tragasables de fasebú no tienen downvotes, propongo un estandar de comentario que si bien
// es un string del orto, al menos demuestra el hecho de que algo no te gusta. Y en sí es lo mismo que
@DrummerHead
DrummerHead / webAudioDrumMachine-DHBeat.js
Created April 1, 2012 21:10
WebAudio Drum Machine - DH Beat
// SaveFile of
// http://chromium.googlecode.com/svn/trunk/samples/audio/shiny-drum-machine.html
// Press load and paste the following json
{"kitIndex":4,"effectIndex":0,"tempo":124,"swingFactor":0,"effectMix":0.25,"kickPitchVal":0.21739130434782605,"snarePitchVal":0.5434782608695652,"hihatPitchVal":0.5652173913043479,"tom1PitchVal":0.5,"tom2PitchVal":0.5,"tom3PitchVal":0.5,"rhythm1":[2,0,0,1,0,0,2,0,0,1,0,0,2,0,0,1],"rhythm2":[0,1,0,0,0,0,2,0,0,0,0,1,0,0,0,0],"rhythm3":[0,1,2,0,0,2,1,0,0,1,2,0,0,2,1,0],"rhythm4":[1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0],"rhythm5":[0,0,2,0,0,0,0,1,0,0,0,0,2,0,0,0],"rhythm6":[0,0,0,1,0,0,0,0,0,2,0,0,0,0,0,1]}
@DrummerHead
DrummerHead / index.html
Created February 11, 2012 03:34
Wroc_badge
<a href='http://wrocloverb.com/' rel='external' id='wroc'>I&#8217;m Speaking at Wroc_love.rb! A fresh Ruby Conference</a>
<!-- Make sure to add this code in a place where its positioned parent renders in the same place as the viewport... try putting it in different places until you see that the dude goes to the right and up of the window -->