This file contains hidden or 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
mkdir ruby && cd $_ |
This file contains hidden or 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 | |
set -e | |
source /build/buildconfig | |
set -x | |
apt-get install -y mongodb mongodb-server | |
npm install cube |
This file contains hidden or 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
js2coffee -it fn_tree.json > fn_tree.cson |
This file contains hidden or 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
browser.driver.takeScreenshot().then (data)-> | |
screenShotDirectory = "../" | |
filename = "ss.png" | |
stream = fs.createWriteStream(screenShotDirectory + filename) | |
stream.write new Buffer(data, "base64") | |
stream.end() |
This file contains hidden or 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
brew install watch | |
watch -n 1 echo 'Perniles en `date "+%S"` minutos.' |
This file contains hidden or 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 | |
set -eo pipefail | |
# This should be a cd to a env var with the root of the notes directory | |
nhome=~/versioned/Notes/nValt | |
file=".note.searching.$RANDOM" | |
#Search the files contents | |
pushd $nhome | |
ag "$@" > $nhome/$file | |
#Search the file names | |
ls | ag "$@" >> $nhome/$file |
This file contains hidden or 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 | |
# Displays the received arguments as options and returns the option selected | |
# Set the prompt for the select command | |
PS3="Type a number or 'q' to quit: " | |
# Show a menu and ask for input. If the user entered a valid choice return it. | |
select option in "$@"; do | |
if [ -n "$option" ]; then | |
echo ${option} |
This file contains hidden or 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
{head, group-by, lines, take-while} = require 'prelude-ls' | |
fs = require 'fs' | |
#aliases | |
CL = console.log | |
#returns the lines in the N level of indentation | |
# Usage: indentificator file [level] | |
# If no level is provided all levels will be printed | |
# TODO: receive char-value (tab-space equivalency)as an arg of the program | |
char-value = {'\t': 1, ' ': 0.5} |
This file contains hidden or 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
module.directive('currency', function () { | |
return { | |
require: 'ngModel', | |
link: function(elem, $scope, attrs, ngModel){ | |
$scope.addPoints = function(val){ | |
console.log("formater points", val); | |
var count = 0, result; | |
return _.reduceRight(val, function(memo, item){ |
This file contains hidden or 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
#F8D757 | |
#311F55 | |
#ED4E1A | |
#98E1E3 | |
#EA2B12 | |
#FAEB95 | |
#6BC35F | |
#EFA7BA | |
#2872BB | |
#F5C79B |