I hereby claim:
- I am sauron on github.
- I am pablo_barrios (https://keybase.io/pablo_barrios) on keybase.
- I have a public key whose fingerprint is 02A9 9521 52E9 3BC3 8CC8 5995 E577 87B8 4A3C C3CC
To claim this, I am signing this object:
unset RUBY_AUTO_VERSION | |
function chruby_auto() { | |
local dir="$PWD/" version | |
until [[ -z "$dir" ]]; do | |
dir="${dir%/*}" | |
if { read -r version <"$dir/.ruby-version"; } 2>/dev/null || [[ -n "$version" ]]; then | |
if [[ "$version" == "$RUBY_AUTO_VERSION" ]]; then return |
require 'formula' | |
class Libstemmer < Formula | |
# upstream is constantly changing the tarball, | |
# so doing checksum verification here would require | |
# constant, rapid updates to this formula. | |
head 'http://snowball.tartarus.org/dist/libstemmer_c.tgz' | |
homepage 'http://snowball.tartarus.org/' | |
end | |
def median(array) | |
sorted = array.sort | |
len = sorted.length | |
return (sorted[(len - 1) / 2] + sorted[len / 2]) / 2.0 | |
end |
I hereby claim:
To claim this, I am signing this object:
cd /path/to/my/static/page | |
ruby -run -ehttpd . -p8000 |
#Hash function which converts hash_me("leep", dictionary) => 13427273 | |
def hash_me(text, dictionary) | |
h = 7 | |
dictionary = "acdegilmnoprstuw" | |
text.size.times do |i| | |
h = (h * 37) + dictionary.index(text[i]).to_i | |
end | |
h |
{ | |
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme", | |
"default_line_ending": "unix", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"fallback_encoding": "UTF-8", | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", |
--- | |
development: | |
:hosts: | |
- localhost:9200 |
/* Generated by Opal 0.5.4 */ | |
(function($opal) { | |
var self = $opal.top, $scope = $opal, nil = $opal.nil, $breaker = $opal.breaker, $slice = $opal.slice, $klass = $opal.klass, g = nil; | |
$opal.add_stubs(['$capitalize', '$puts', '$new', '$salute']); | |
(function($base, $super) { | |
function $Greeter(){}; | |
var self = $Greeter = $klass($base, $super, 'Greeter', $Greeter); | |
var def = $Greeter._proto, $scope = $Greeter._scope; | |
def.name = nil; |
// Use of console.table() | |
var iKnow = [ | |
{ lenguage: "Ruby", level: 10 }, | |
{ lenguage: "Go", level: 5 }, | |
{ lenguage: ".Net", level: 8 }, | |
{ lenguage: "FoxPro", level: 10 } | |
]; | |
console.table(iKnow); |