Skip to content

Instantly share code, notes, and snippets.

View pote's full-sized avatar

pote pote

View GitHub Profile
@pote
pote / 1old.txt
Last active December 21, 2015 22:58
New vs old johnny-deps output and execution times.
▸ time curl -s https://raw.github.com/VividCortex/johnny-deps/v0.1.5/bin/johnny_deps | bash
github.com/VividCortex/robustly (download)
github.com/VividCortex/ewma (download)
Setting github.com/VividCortex/robustly to version v1.0
Previous HEAD position was aefdcf1... Update VividCortex link
HEAD is now at ec98a8c... Godeps utility
github.com/VividCortex/ewma (download)
Setting github.com/VividCortex/ewma to version v1.0
Previous HEAD position was a4d14fa... Update README.md
HEAD is now at 2f8aa97... Refactor package name
#!/bin/bash -l
shopt -s nullglob
enqueue() {
for rev; do
echo -n "$rev" > "$(mktemp "$queuedir/$(date +%s).XXXXXX")"
done
}
ActiveRecord::Schema.define(:version => 20130203210553) do
create_table "people", :force => true do |t|
t.string :name
t.string :birthday
t.string :place_of_birth
t.string :blood_type
t.string :type # => Needed for the ORM to know which kind of object its dealing with.
ActiveRecord::Schema.define(:version => 20130203210553) do
create_table "people", :force => true do |t|
t.string :name
t.string :birthday
t.string :place_of_birth
t.string :blood_type
end
create_table :scientists, :force => true do |t|
@pote
pote / app.rb
Last active December 17, 2015 04:28
Proof of concept using Class Table Inheritance
require 'sequel'
DB = Sequel.connect 'sqlite://database.db'
class Person < Sequel::Model
# has age, name, type
end
Person.plugin :class_table_inheritance, key: :type
@pote
pote / short_bio.md
Last active December 16, 2015 11:29
Short Bio for conferences

Pablo Astigarraga (better known as PoTe) comes from a Python background writing Asterisk-based VoIP systems, has several years of experience doing Rails/Ruby, contributing to open source projects and currently works for an amazingly fun startup called Vivid Cortex.

Passionate about minimalistic software, Unix philosophy, doing things right, having fun with cool people and using spaces instead of tabs, pote copes with a somewhat unhealthy relationship with mustaches and is always willing to discuss the evils of premature optimization over a beer.

Estamos

  • Nacho
  • Pote
  • Bruno
  • Chris Polaco
  • Lau
  • Agustin Haller
  • Dayana Jabif

Posibles

@pote
pote / promise.rb
Created March 8, 2013 01:02
Promises are Futures.
require 'celluloid'
class Politician
include Celluloid
def lower_taxes
# Try really hard to do this
result_of_complicated_code = [true, false].sample
yield result_of_complicated_code
@pote
pote / bio.md
Last active December 11, 2015 06:09
Mini bio for CFPs

My name is Pablo Astigarraga, I currently work at Citrusbyte doing mostly cool Ruby stuff for the web.

I come from a Python background, dislike the term “hacking” and find joy in working with Ruby, contributing to the open source ecosystem or just generally building pretty stuff. I like doing new stuff that I have absolutely no experience with so I can learn to better myself, from playing soccer to make a fool of myself trying inline skating or cranking out a side project with a new programming language.

You can stalk me at @poteland in twitter, github.com/pote or poteland.com and check out my previous talks at speakerdeck.com/pote.