keybase.md
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
Fonte: http://gohorseprocess.wordpress.com | |
1- Pensou, não é XGH. | |
XGH não pensa, faz a primeira coisa que vem à mente. Não existe | |
segunda opção, a única opção é a mais rápida. | |
2- Existem 3 formas de se resolver um problema, a correta, a errada e | |
a XGH, que é igual à errada, só que mais rápida. |
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/sh | |
for i in ./*.swf ; do | |
for j in `swfextract $i | grep -E PNGs.* -o | grep -E [0-9]+ -o` ; do | |
echo "$i -> extract png $j"; | |
swfextract -p "$j" "$i" -o "$i"_"$j".png | |
done | |
for j in `swfextract $i | grep -E JPEGs.* -o | grep -E [0-9]+ -o` ; do | |
echo "$i -> extract jpeg $j"; | |
swfextract -j "$j" "$i" -o "$i"_"$j".jpg | |
done |
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
# Architecture | |
sass/ | |
| | |
|– base/ | |
| |– _reset.scss # Reset/normalize | |
| |– _typography.scss # Typography rules | |
| |– _all.scss # To be imported | |
| ... # etc… | |
| |
Check out how all your default styles look, before you start having to write overrides to override your overrides.
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
// | |
// Variables | |
// -------------------------------------------------- | |
// Global values | |
// -------------------------------------------------- | |
// Grays | |
// ------------------------- |
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
var devices = [ | |
{ | |
name: 'G1', | |
width: 320, | |
height: 480, | |
density: 1 | |
}, { | |
name: 'Nexus S', | |
width: 480, | |
height: 800, |
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
(function($) { | |
$.fn.serializeFiles = function() { | |
var form = $(this), | |
formData = new FormData() | |
formParams = form.serializeArray(); | |
$.each(form.find('input[type="file"]'), function(i, tag) { | |
$.each($(tag)[0].files, function(i, file) { | |
formData.append(tag.name, file); | |
}); |
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
.mobile-scrollable { | |
overflow: scroll; | |
-webkit-overflow-scrolling: touch; | |
} |
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
function timeSince(date) { | |
var seconds = Math.floor(((new Date().getTime()/1000) - date)), | |
interval = Math.floor(seconds / 31536000); | |
if (interval > 1) return interval + "y"; | |
interval = Math.floor(seconds / 2592000); | |
if (interval > 1) return interval + "m"; | |
interval = Math.floor(seconds / 86400); |