I hereby claim:
- I am mamuso on github.
- I am mamuso (https://keybase.io/mamuso) on keybase.
- I have a public key ASDDRKU92FZGol2xXwsF2Mh64Qq9LBdYd4foXq2Ae1_dUwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # PATH SETUP | |
| export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
| export PATH="/usr/local/sbin:$PATH" | |
| export PATH="$HOME/bin:/usr/local/bin:$PATH" | |
| export PATH="$PATH:$HOME/.rvm/bin" # RVM available in PATH | |
| export PATH="$HOME/Code/github/bin:$PATH" # GitHub development | |
| # RUN APPS | |
| alias code="/Applications/Visual\ Studio\ Code\ -\ Insiders.app/Contents/Resources/app/bin/code" | |
| alias calc='bc -l' |
| require 'miro' | |
| require 'color' | |
| require 'color/rgb/contrast' | |
| Miro.options[:color_count] = 4 | |
| Miro.options[:method] = 'histogram' | |
| class Colorify | |
| def get(img) | |
| require 'rubygems' | |
| require 'bundler/setup' | |
| require 'mini_magick' | |
| require 'color' | |
| require 'miro' | |
| Miro.options[:color_count] = 3 | |
| Miro.options[:method] = 'histogram' |
| set dontplay to 0 | |
| tell application "Keynote" | |
| start from slide 1 of front slideshow | |
| end tell | |
| set volume output volume 80 | |
| repeat | |
| tell application "Keynote" | |
| tell front slideshow |
| body { | |
| font-family: sans-serif; | |
| } | |
| strong { | |
| display: inline-block; | |
| padding: 4px; | |
| width: 240px; | |
| background: pink; | |
| text-align: right | |
| } |
| <div id="the_div"> | |
| <ul id="the_list"> | |
| <li id="the_item">Click me!</li> | |
| </ul> | |
| </div> | |
| <p id="log"></p> | |
| <script type="text/javascript" charset="utf-8"> | |
| function log(string){ |
| // Para rectificar con http://gist.github.com/500794 | |
| // Part 1. | |
| // Implement a function prototype extension that caches function results for | |
| // the same input arguments of a function with one parameter. | |
| // | |
| // For example: | |
| // Make sin(1) have the result of Math.sin(1), but use a cached value | |
| // for future calls. | |
| // |