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
# Ruby implementation of Processing's map function | |
# http://processing.org/reference/map_.html | |
def map(value, v_min, v_max, d_min, d_max) # v for value, d for desired | |
v_value = value.to_f # so it returns float | |
v_range = v_max - v_min | |
d_range = d_max - d_min | |
d_value = (v_value - v_min) * d_range / v_range + d_min | |
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/env ruby | |
require 'nokogiri' | |
require 'open-uri' | |
# Ask for name and check if it exists | |
args = ARGF.argv | |
if args.empty? | |
puts "Type the name of the reddit user:" |
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
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} |
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
<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> |
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
/* 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; |
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
// 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(); | |
} | |
}); |
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/env ruby | |
files = [ | |
'variables', | |
'mixins', | |
'font-face', | |
'baseline', | |
'persistent', | |
'responsive', | |
'print', |
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
#!/bin/bash | |
cd emulation | |
rm -rf * | |
cd .. | |
cd web | |
grunt build | |
cp -r public/ ../emulation/ | |
cd ../blog | |
rake generate |
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
<!doctype html> | |
<html> | |
<head> | |
<title>MDL basic html scaffold</title> | |
<meta charset='utf-8'> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0'> | |
<link rel='stylesheet' href='https://storage.googleapis.com/code.getmdl.io/1.0.5/material.indigo-pink.min.css'> | |
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700'> | |
<link rel='stylesheet' href='https://fonts.googleapis.com/icon?family=Material+Icons'> | |
<link rel='stylesheet' href='css/main.css'> |