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
@DrummerHead
DrummerHead / quo.rb
Created Feb 24, 2014
My first Quine
View quo.rb
c=["p", "r", "i", "n", "t", "\"", "c", "=", "\"", ";", "p", " ", "c", ";", "c", ".", "e", "a", "c", "h", "{", "|", "c", "|", "p", "r", "i", "n", "t", " ", "c", "}"]
print"c=";p c;c.each{|c|print c}
View index-movie-rendered.html
<html>
<head>
<meta charset="utf-8">
<title>Movies sicodelia</title>
<meta name="description" content="Magia? Interminable!">
<meta name="viewport" content="width=device-width">
<meta name="author" content="DrummerHead">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="main.css">
</head>
View main-movie-rendered.css
/* Moviessss yey! */
/* vars
* ========================== */
/* end vars */
/* Mixins
* ========================== */
.clearfix:before, dl:before, #movies:before, .rect s:before, .clearfix:after, dl:after, #movies:after, .rect s:after {
content: '';
display: table;
View filter_best_movies_by_year.js
// http://www.imdb.com/chart/top
//
$('.lister-list tr').each(function(i, el){
var _this = $(this);
var yearInt = parseInt(_this.find('.secondaryInfo').text().replace(/[\(\)]/g, ''), 10);
if(yearInt <= 1990){
_this.remove();
}
});
View create-scss-structure
#!/usr/bin/env ruby
files = [
'variables',
'mixins',
'font-face',
'baseline',
'persistent',
'responsive',
'print',
@DrummerHead
DrummerHead / gist:4982b32bd6d0fbd4ba76
Created Mar 23, 2015
combine two staticly generated sites
View gist:4982b32bd6d0fbd4ba76
#!/bin/bash
cd emulation
rm -rf *
cd ..
cd web
grunt build
cp -r public/ ../emulation/
cd ../blog
rake generate
View index.html
<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 -->
@DrummerHead
DrummerHead / webAudioDrumMachine-DHBeat.js
Created Apr 1, 2012
WebAudio Drum Machine - DH Beat
View webAudioDrumMachine-DHBeat.js
// 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 / 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
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
http://mcdlr.com/js-inject/ - */
/* - Hideliminator - Any website - *\
|* - Hide elements on command - *|
\* - v1.0 - */
var h1d3l1m1n4t04 = {
You can’t perform that action at this time.