Skip to content

Instantly share code, notes, and snippets.

View deivinsontejeda's full-sized avatar
🎯

Deivinson Tejeda deivinsontejeda

🎯
  • Santiago of Chile
View GitHub Profile
# delay the GC - usage as below
# Spec::Runner.configure do |config|
.....
# config.before(:each) do
# begin_gc_deferment
# end
# config.after(:each) do
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Monokai</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@deivinsontejeda
deivinsontejeda / gist:3722320
Created September 14, 2012 14:41
Setting Subline Text Edit
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
".tags*",
"*.pyc",
@deivinsontejeda
deivinsontejeda / rspec-syntax-cheat-sheet.rb
Created September 3, 2012 01:09 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
#!/usr/bin/env ruby
param = ARGV.first
class Fixnum
def is_cachipulis?
length = self.to_s.length
digits = self.to_s.split('').map(&:to_i)
return false if digits.inject(&:+) != length
@deivinsontejeda
deivinsontejeda / gist:3020064
Created June 29, 2012 19:18
AlliHay Busca desarrolladores Web :)

Ahora mismo en AlliHay estamos en búsqueda de nuevos desarrolladores que quieran empezar a formar parte de este team. Abrimos nuestras puertas a todos los que estén interesados en un trabajo remunerado a tiempo completo en moneda dura [sonido de caja registradora] y que tengan mucha pasión por la innovación y la tecnología aplicada a la vida cotidiana.

Que buscamos?

Tener conocimiento desarrollo con Ruby y Ruby on Rails es obligatorio (no importa la experiencia), creerse gurú es innecesario y tener la curiosidad y el interés por descubrir nuevas tecnologías antes que nadie, es ¡Indispensable!

Debe ser un apasionado por la programación y que no considere los horarios de secretarias (tenemos horario de trabajo, pero no de secretaria).

No queremos a gente que se conforme con echar código, buscamos personas inspiradoras y creativas, sin miedo a dar su opinión y con un buen ojo crítico para la solución de problemas.
Nos gustaria algo como esto: "Good developer is an artist, a

@deivinsontejeda
deivinsontejeda / docker-command.md
Last active October 5, 2015 16:11
Docker Command

This is a list of Docker command I often use. This does not intend to be a accurate command reference about Docker, it's just a way to not forget some commands

List all Volumens

for x in $(docker ps -qa | sed '1d'); do docker inspect -f '{{ .Volumes }}' ${x}; done

Stop Container by Name

docker ps -a | grep datacollector | awk '{ print $1 }' | xargs docker stop
gem 'resque', '>= 1.10.0'
gem 'heroku' # You will need the heroku gem for this too.
@deivinsontejeda
deivinsontejeda / resque.rb
Created April 18, 2012 17:30 — forked from aeden/resque.rb
Place in features/support to make Resque workers execute immediately
Before do
module Resque
def self.enqueue(klass, *args)
klass.perform(*args)
end
end
end