Skip to content

Instantly share code, notes, and snippets.

Software Engineer in Japan

Juanito Fatas JuanitoFatas

Software Engineer in Japan
Block or report user

Report or block JuanitoFatas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
JuanitoFatas /
Last active Mar 9, 2018
What is AppAmaGooFaceSoft

AppAmaGooFaceSoft means well-established companies like Apple, Amazon, Google, Facebook, Microsoft, etc.

Coined by Patrick McKenzie, see usage.

View git-smart-push
#!/usr/bin/env ruby
# frozen_string_literal: true
# As a user,
# I want to push to my fork with current branch I'm on.
class FindMyForkRemote
candidate = `git remote -v`.split("\n").find do |remote|
JuanitoFatas / parse_emoji_sources_into_regexp.rb
Created May 13, 2016
ruby parse_emoji_sources_into_regexp.rb
View parse_emoji_sources_into_regexp.rb
# frozen_string_literal: true
require "http"
def compile_for_20e3(codepoint)
codepoint.split(" ").map { |c| "\\u{#{c}}" }.join("")
def compile_one(codepoint)
JuanitoFatas / rails-diff.sublime-snippet
Created Apr 13, 2016
Generate rails old_version..new_version diff sublime snippet
View rails-diff.sublime-snippet
Upgrade rails from ${1:old_version} to ${2:new_version}.
- Updated: [rails](, [${1:old_version}...${2:new_version}](${1:old_version}...v${2:new_version})
- Updated: actionmailer, ${1:old_version}...${2:new_version} ([CHANGELOG](${2:new_version}/actionmailer/
- Updated: actionpack, ${1:old_version}...${2:new_version} ([CHANGELOG](${2:new_version}/actionpack/
- Updated: actionview, ${1:old_version}...${2:new_version} ([CHANGELOG](${2:new_version}/actionview/
- Updated: activejob, ${1:old_version}...${2:new_version} ([CHANGELOG](${2:new_version}/activejob/
- Updated: activemodel, ${1:old_version}...${2:new_version} ([CHANGELOG](${2:new_version}/activemodel/
View hosts
# Block Facebook IPv4
JuanitoFatas /
Last active Jan 11, 2016
mime-types reversed dependencies

This result is from running script with "mime-types" described in What Does Your Gem Work For? by Richard Schneems.

0) mail: 49953115
1) rest-client: 27827101
2) capybara: 15186758
3) fog: 13631193
4) docile: 10018143
5) paperclip: 9840729
JuanitoFatas /
Created Dec 18, 2015 — forked from fnichol/
A Common .ruby-version File For Ruby Projects

A Common .ruby-version File For Ruby Projects


I've been using this technique in most of my Ruby projects lately where Ruby versions are required:

  • Create .rbenv-version containing the target Ruby using a definition name defined in ruby-build (example below). These strings are a proper subset of RVM Ruby string names so far...
  • Create .rvmrc (with rvm --create --rvmrc "1.9.3@myapp") and edit the environment_id= line to fetch the Ruby version from .rbenv-version (example below).

Today I learned about another Ruby manager, rbfu, where the author is using a similar technique with .rbfu-version.

You can’t perform that action at this time.