Skip to content

Instantly share code, notes, and snippets.

View akitaonrails's full-sized avatar

Fabio Akita akitaonrails

View GitHub Profile
@akitaonrails
akitaonrails / human_gc_stats.rb
Created April 9, 2014 00:17
Just a hack to make it easier to understand GC.stat in Ruby 2.0 and 2.1 (made for a tech talk)
# This is an attempt to translate GC.stat to a more understandable format for humans
# from @samsaffron
# http://samsaffron.com/archive/2013/11/22/demystifying-the-ruby-gc?utm_source=rubyweekly&utm_medium=email
# http://samsaffron.com/archive/2014/04/08/ruby-2-1-garbage-collection-ready-for-production
def gc_stats
stats = GC.stat
space_count = ObjectSpace.count_objects
objects_per_heap = space_count[:TOTAL] / stats[:heap_used]
report = {
http://www.akitaonrails.com/2011/05/04/off-topic-opinioes-verdades-democracia-e-etica#.U5eB2RYduzA
http://www.akitaonrails.com/2013/10/30/off-topic-matematica-trolls-haters-e-discussoes-de-internet#.U5eB2BYduzA
http://www.akitaonrails.com/2013/11/02/off-topic-programadores-sao-pessimos-comunicadores-udp-vs-tcp#.U5eCKxYduzA
http://www.akitaonrails.com/2013/10/07/off-topic-noestimates-debunked#.U5eCLRYduzA
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
@akitaonrails
akitaonrails / gist:934ca421ed68f7df15fa
Created July 23, 2014 00:34
Linkedin Job - backup
Job Description
Work in self-managed cells for startup products and established companies' new products.
Work full time and focused on a single project at a time
Have autonomy to decide the best course of action with his peers on each project
Have a part in the decision of which technologies best suit each project
Help set expectations with the clients
Desired Skills and Experience
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 / Gemfile
Last active August 29, 2015 14:11
Mangareader downloader
source 'http://rubygems.org'
gem 'nokogiri'
gem 'typhoeus'
gem 'rmagick'
gem 'prawn'
gem 'fastimage'
@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
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 / 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"