Skip to content

Instantly share code, notes, and snippets.

View akitaonrails's full-sized avatar

Fabio Akita akitaonrails

View GitHub Profile
@akitaonrails
akitaonrails / fake_pipe_operations.rb
Last active February 18, 2016 16:40
Simple Pipe like Operations in Ruby
module Pipe
def pipe(initial_state)
Pipe::PipeChain.new(initial_state, self)
end
class PipeChain
attr_reader :state, :context
def initialize(object, context)
@state = object
remote: Verifying deploy....
remote:
remote: ! Push rejected to premiosonline.
remote:
To https://git.heroku.com/premiosonline.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/premiosonline.git'
@akitaonrails
akitaonrails / Cargo.toml
Last active August 29, 2015 14:22
playing around with Rust
[package]
name = "actors"
version = "0.1.0"
authors = ["vagrant"]
[dependencies]
regex = "0.1.8"
@akitaonrails
akitaonrails / Gemfile
Last active January 26, 2016 15:53
Slack Deleter
source 'https://rubygems.org'
gem 'faraday'
gem 'typhoeus'
gem 'oj'
gem 'parallel'
Gosto de participar de conferências de tecnologia, principalmente em faculdades. Se quiser que eu fale sobre algum assunto, mande email para boss at akitaonrails com
* 04/02 - Campus Party, via W3C
* Palestra: “Restrições = Inovação”
* 21/03 - [Devs pelo Leokz](https://www.eventials.com/eduardo.shiota/groups/devs-pelo-leokz/)
* Palestra: WTF Oriented Programming
* 25/03 - [QConSP](http://qconsp.com/speaker/fabio-akita)
* Palestra: “Dicas de Performance para aplicações Ruby on Rails” (A FAZER!)
@akitaonrails
akitaonrails / gist:bf319e9e6ebd461e9ad7
Last active August 29, 2015 14:11
Recommended Manga to Download
gem install manga-downloadr
manga-downloadr -n [manga name] -u [one of the urls below] -d [full path to the directory you want to download]
http://www.mangareader.net/yawara
http://www.mangareader.net/99/monster.html
http://www.mangareader.net/black-jack
http://www.mangareader.net/119/slam-dunk.html
http://www.mangareader.net/964/genshiken.html
http://www.mangareader.net/287/gto-shonan-14-days.html
http://www.mangareader.net/114/great-teacher-onizuka.html
@akitaonrails
akitaonrails / Gemfile
Last active August 29, 2015 14:11
Mangareader downloader
source 'http://rubygems.org'
gem 'nokogiri'
gem 'typhoeus'
gem 'rmagick'
gem 'prawn'
gem 'fastimage'
Nested Loop (cost=689.72..799.51 rows=1 width=156) (actual time=150.800..17594.254 rows=173 loops=1)
-> Nested Loop (cost=689.69..797.47 rows=1 width=160) (actual time=150.762..17591.724 rows=173 loops=1)
Join Filter: (quiz_report_questions.question_id = quiz_user_answer_results.question_id)
-> Nested Loop (cost=0.17..101.94 rows=1 width=150) (actual time=0.109..3.718 rows=173 loops=1)
-> Nested Loop (cost=0.09..29.95 rows=8 width=13) (actual time=0.059..0.964 rows=180 loops=1)
-> Seq Scan on quiz_exercise_lists (cost=0.00..2.56 rows=5 width=8) (actual time=0.011..0.053 rows=5 loops=1)
Filter: (quiz_id = 1)
Rows Removed by Filter: 180
-> Index Scan using index_quiz_user_answers_on_user_id_and_quiz_exercise_list_id on quiz_user_answers (cost=0.09..5.47 rows=2 width=13) (actual time=0.025..0.134 rows=36 loops=5)
Index Cond: ((user_id = 1) AND (quiz_exer
@akitaonrails
akitaonrails / retrospectiva-10-anos-rails
Last active January 14, 2016 17:20
Retrospectiva - 10 Anos de Rails!
### 1972
* cerca de Janeiro - Lançado [Smalltalk-72](http://en.wikipedia.org/wiki/Smalltalk#History), a primeira versão usada em pesquisa.
### 1978
* cerca de Janeiro - Pattern MVC criado pela primeira vez por Trygve Reenskaug na Xerox Parc.
### 1995