This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href='http://wrocloverb.com/' rel='external' id='wroc'>I’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 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* - These is a javascript snippet to be used with | |
http://mcdlr.com/js-inject/ - */ | |
/* - Hideliminator - Any website - *\ | |
|* - Hide elements on command - *| | |
\* - v1.0 - */ | |
var h1d3l1m1n4t04 = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filename:query kind:music NOT kind:folder NOT kind:m3u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'webrick' | |
include WEBrick | |
class NonCachingFileHandler < HTTPServlet::FileHandler | |
def prevent_caching(res) | |
res['ETag'] = nil | |
res['Last-Modified'] = Time.now + 100**4 | |
res['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0' | |
res['Pragma'] = 'no-cache' | |
res['Expires'] = Time.now - 100**4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Go to http://steamcommunity.com/id/{{USERNAME}}/games/?tab=all&sort=name | |
// for example: http://steamcommunity.com/id/DrummerHead/games/?tab=all&sort=name | |
// now copy and paste this into your console: | |
// ( what is a console? http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers ) | |
var games = document.querySelectorAll('.gameListRowItemName'); | |
var engines = { | |
youtube : function(query) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/Users/dh/.rvm/rubies/ruby-1.9.3-p362/bin/ruby -w | |
magia = %x[git log --pretty=oneline --no-merges --author=DrummerHead --since='yesterday'] | |
unless magia.empty? | |
magia.gsub!(/^\w* /, "").gsub!(/\n/, "; ") | |
puts magia | |
else | |
puts "Gotta worky work!" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# requires: jpegtran and pngcrush | |
# brew install libjpeg | |
# brew install pngcrush | |
# | |
# "crushimg" on a directory will look for jpg and png files, compress them using | |
# jpegtran and pngcrush and return a new file with an "-optimized" suffix. | |
# it will not traverse the child directories (not recursive) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
require 'open-uri' | |
# Scarpe the site and aquire a lovely array | |
doc = Nokogiri::HTML(open('http://www.dobi.nu/yourscenesucks/left2.htm')) | |
root = 'http://www.dobi.nu/yourscenesucks/' | |
scene_links = [] |
OlderNewer