Skip to content

Instantly share code, notes, and snippets.

Eternally Elated

DrummerHead DrummerHead

Eternally Elated
Block or report user

Report or block DrummerHead

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
View index.html
<a href='' 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 -->
DrummerHead / webAudioDrumMachine-DHBeat.js
Created Apr 1, 2012
WebAudio Drum Machine - DH Beat
View webAudioDrumMachine-DHBeat.js
// SaveFile of
// Press load and paste the following json
DrummerHead / nomegusta
Created May 13, 2012
Estandar nomegusta para Facebook
View nomegusta
// 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 / hideliminator.js
Created May 20, 2012
Just to show a comrade to debug this stuff
View hideliminator.js
/* - These is a javascript snippet to be used with - */
/* - Hideliminator - Any website - *\
|* - Hide elements on command - *|
\* - v1.0 - */
var h1d3l1m1n4t04 = {
DrummerHead / gist:2795222
Created May 26, 2012
MS ASQ Query to find songs related to a word
View gist:2795222
filename:query kind:music NOT kind:folder NOT kind:m3u
DrummerHead / servo.rb
Last active Oct 10, 2015
Lean UX Crowd-Sourced User-Validated Synergized Ruby Server for Lean Localhost testing
View servo.rb
require 'webrick'
include WEBrick
class NonCachingFileHandler < HTTPServlet::FileHandler
def prevent_caching(res)
res['ETag'] = nil
res['Last-Modified'] = + 100**4
res['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'
res['Pragma'] = 'no-cache'
res['Expires'] = - 100**4
DrummerHead / steamGamesReview.js
Last active Dec 11, 2015
Too many Steam Games bought that you may don't even know about? Use this script to get YouTube and Metacritic reviews and get to know what they are all about.
View steamGamesReview.js
// Go to{{USERNAME}}/games/?tab=all&sort=name
// for example:
// now copy and paste this into your console:
// ( what is a console? )
var games = document.querySelectorAll('.gameListRowItemName');
var engines = {
youtube : function(query) {
DrummerHead / loggy
Last active Dec 15, 2015
Get a lovely string that resumes what you've been working on
View loggy
#!/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
puts "Gotta worky work!"
View crushimg.rb
# 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)
DrummerHead / scrape_yourscenesucks.rb
Created May 22, 2013
Get a list of all the 'scenes' and links to the music related to the scene
View scrape_yourscenesucks.rb
require 'nokogiri'
require 'open-uri'
# Scarpe the site and aquire a lovely array
doc = Nokogiri::HTML(open(''))
root = ''
scene_links = []
You can’t perform that action at this time.