I hereby claim:
- I am mdespuits on github.
- I am mdespuits (https://keybase.io/mdespuits) on keybase.
- I have a public key whose fingerprint is 648F 681F 8EB6 B20C A852 98A8 4A01 720C 60D6 8D1F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class Book < Airrecord::Table | |
class Endorser < Airrecord::Table | |
self.base_key = "" | |
self.table_name = "Endorser" | |
end | |
self.base_key = "" | |
self.table_name = "Books" | |
has_many :endorsements, class: 'Book::Endorser', column: 'Endorsements' |
I hereby claim:
To claim this, I am signing this object:
require 'minitest' | |
require 'minitest/autorun' | |
require 'benchmark/ips' | |
def sort(list) | |
new_list = list.dup | |
idx = 0 | |
while idx < list.size | |
i = idx + 1 |
#!/bin/sh | |
sudo apt-get -y update | |
sudo add-apt-repository ppa:nginx/stable | |
sudo apt-get -y update | |
sudo apt-get install -y git-core postgresql-9.1 mysql-server libpq-dev \ | |
curl build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
cd /tmp |
#!/bin/sh | |
# | |
# Script built from the reference at | |
# http://digitalsanctum.com/2009/10/01/installing-erlang-on-mac-os-x/ | |
sudo -v | |
wget http://www.erlang.org/download/otp_src_R16B01.tar.gz | |
tar -xzf otp_src_R16B01.tar.gz |
require 'benchmark' | |
ITERATIONS = 10_000 | |
Benchmark.bm do |bm| | |
bm.report("#<< -> #flatten!: ") do | |
array = [1,2,3] | |
ITERATIONS.times do | |
array << [4,5,6] | |
array.flatten! |
// My first Rust program | |
// Simply outputs fibbonaci numbers from 20 to 0 | |
use core::task::spawn; | |
fn fib(number: int) -> int { | |
if number > 1 { | |
return fib(number - 1) + fib(number - 2); | |
} else { | |
return number; |
require_relative './example_logger' | |
class ExampleClass | |
def initialize | |
ExampleLogger.info("Initializing ExampleClass") | |
end | |
end | |
ExampleClass.new |