Skip to content

Instantly share code, notes, and snippets.

View robertodecurnex's full-sized avatar

Roberto Decurnex robertodecurnex

View GitHub Profile
@robertodecurnex
robertodecurnex / gist:1095528
Created July 20, 2011 18:13
gem isntall rdtool
$ gem install rdtool
ERROR: While executing gem ... (Gem::Exception)
ruby_code case not handled: YAML::PrivateType
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.6 (2010-02-05 patchlevel 399) [i686-linux]
- INSTALLATION DIRECTORY: /home/local/GLOBANT/roberto.decurnex/.rvm/gems/ruby-1.8.6-p399@raincheck
@robertodecurnex
robertodecurnex / running_cucumber.rb
Created October 30, 2012 15:52
An example of how to run cucumber multiple times (same goes for rspec)
require 'rake'
require 'cucumber/rake/task'
Cucumber::Rake::Task.new
Rake.application['cucumber'].invoke
#=> The tests run here
Rake.application['cucumber'].reenable
tasks:
- name: Test 1
class_name: Henry::Task::CucumberTask
@robertodecurnex
robertodecurnex / routes.rb
Created November 7, 2012 03:18
The default routes of a resource do not let you *modify* a resource partially.
MyApp::Application.routes.draw do
resources :users`
end
@robertodecurnex
robertodecurnex / log
Last active August 29, 2015 13:56
Assets are down!
application-f8cb1d6887cb20ae0e9a1ba94629841b.css
GET
504
home-f912ecc53e34423bf65747aadb8739b1.css
GET
504
jquery.fancybox-1.3.4.css
GET
@robertodecurnex
robertodecurnex / hello.rb
Last active August 29, 2015 14:02
Ruby Parser (Writing a Ruby to JS parser 5' demo)
class Pepe
def name
puts "Pepe"
end
end
message = "Hello "
puts(message)
@robertodecurnex
robertodecurnex / input.rb
Created September 19, 2014 19:16
CS Example
class Say
def hello to='Minion'
#sc say_hello(to)
end
end
puts Say.new.hello
__END__
sc say_hello String: String
@robertodecurnex
robertodecurnex / ramdomart.c
Created October 22, 2014 20:20
Randomart generation (from the openssh-client)
/*
* Draw an ASCII-Art representing the fingerprint so human brain can
* profit from its built-in pattern recognition ability.
* This technique is called "random art" and can be found in some
* scientific publications like this original paper:
*
* "Hash Visualization: a New Technique to improve Real-World Security",
* Perrig A. and Song D., 1999, International Workshop on Cryptographic
* Techniques and E-Commerce (CrypTEC '99)
* sparrow.ece.cmu.edu/~adrian/projects/validation/validation.pdf
@robertodecurnex
robertodecurnex / PHPConfAr Schedule
Created November 6, 2014 20:44
PHP Conf AR Schedule
Things I love about Go - 9:30 - 10:20 @ Room A
API Pain-Points - 10:40 - 11:30 @ Room A
Keynote - 11:50 - 12:40 @ Room A
Logs: What they eat, how they live and reproduce - 14:10 - 15:00 @ Room C
Cryptography for programmers - 15:20 - 16:10 @ Room C
ipython notebook (with ruby!) - 16:30 - 17:20 @ Room C
Hello, is this PHP? – Picking up phone calls with PHP (and much more) - 17:40 - 18:10 @ Room A
Python development on embedded systems - 9:30 - 10:20 @ Room B
Performance testing crash course - 10:40 - 11:30 @ Room B