- http://ejohn.org/blog/asmjs-javascript-compile-target/
- http://danielcwilson.com/blog/2015/09/animations-part-4/
- http://julienrenaux.fr/2015/08/24/ultimate-angularjs-and-ionic-performance-cheat-sheet/
- https://www.codementor.io/design/tutorial/best-web-design-practices
- https://www.codementor.io/learn-python-online
- http://www.toptal.com/front-end/sass-style-guide-a-sass-tutorial-on-how-to-write-better-css-code
- http://www.toptal.com/front-end/embracing-sass-why-you-should-stop-using-vanilla-css
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
gruntFunction = (grunt)-> | |
if grunt.option('dev') | |
env = 'development' | |
else if grunt.option('deploy') | |
env = 'deployment' | |
else if grunt.option('prod') | |
env = 'production' | |
else | |
env = grunt.option('env') || 'development' |
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 fibonacci(n) { | |
return Array.apply(0, Array(n+1)).reduce(function(prev, curr, index, arr){ | |
return prev.concat((index < 2) ? index : prev[index-1] + prev[index-2]); | |
}, []).pop(); | |
} |
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
Show hidden characters
{ | |
"draw_white_space": "all", | |
"font_size": 13.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"rulers": | |
[ | |
120 |
##Git Blame File list of commiters sorted:
git blame --line-porcelain adCreativesControl.js | sed -n 's/^author //p' | sort | uniq -c | sort -rn
wget http://www.openss7.org/repos/tarballs/strx25-0.9.2.1.tar.bz2
wget -O taglist.zip http://www.vim.org/scripts/download_script.php?src_id=7701
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
# Global | |
alias l='ls -lah' # Long view, show hidden | |
alias ls='ls -GFp' # Compact view, show colors | |
alias la='ls -AF' # Compact view, show hidden | |
alias ll='ls -lFh' # Long view, no hidden | |
alias grep='grep --color=auto' # Always highlight grep search term | |
alias ping='ping -c 5' # Pings with 5 packets, not unlimited | |
alias df='df -h' # Disk free, in gigabytes, not bytes | |
alias du='du -h -c' # Calculate total disk usage for a folder | |
alias ..='cd ..' # Go up one directory |
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
##### ----- MySQL: ----- ##### | |
#http://www.ducea.com/2006/10/28/compressing-mysqldump-output/ | |
#dump a DB adding a time as filename and compress with gzip | |
mysqldump --compact -C --add-drop-table -u [user] -p --host=<host> <databasename> > backup_`date +%y%m%d`.sql | gzip -9 > backup_`date +%y%m%d`.sql | |
#import a database for MAMP | |
~ /Applications/MAMP/Library/bin/mysql -u [username] -p [database] < [path to file] | |
##### ----- /MySQL ----- ##### |
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
from xml.dom import minidom | |
import json | |
config = { | |
'svg_file' : 'map.svg', | |
'js_file' : 'map.js', | |
'js_var' : 'svgMap' | |
} | |
svg = minidom.parse(config['svg_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
def calculate (formula, valor1, valor2) | |
case formula | |
when "+" then resultado = valor1+valor2 | |
when "-" then resultado = valor1-valor2 | |
when "*" then resultado = valor1*valor2 | |
when "/" then resultado = valor1/valor2 | |
print resultado.to_s | |
end | |
end |
NewerOlder