Skip to content

Instantly share code, notes, and snippets.

Máximo Mussini ElMassimo

Block or report user

Report or block ElMassimo

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
ElMassimo / cotizaciones_bcu.rb
Last active Feb 25, 2019
Banco Central del Uruguay - Billete Comprador Dólar Estadounidense - Última cotización anterior a la fecha
View cotizaciones_bcu.rb
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'savon'
# Public: Permite obtener cotizaciones utilizando los webservices del BCU.
# Si se ejecuta como script pasandole un argumento, imprime la ultima cotizacion
# de compra del dolar billete anterior a la fecha:
# ./cotizaciones_bcu.rb 2019-02-18
ElMassimo / capybara_test_helper.sublime-snippet
Last active Oct 29, 2018
Capybara Test Helper - Snippet for Sublime Text
View capybara_test_helper.sublime-snippet
# frozen_string_literal: true
class $1TestHelper < CapybaraTestHelper
# Selectors: Semantic aliases for elements, a very useful abstraction.
# Getters: A convenient way to get related data or nested elements.
ElMassimo / sublime_config.json
Last active Sep 10, 2018
Maximo's Sublime Config
View sublime_config.json
"always_show_minimap_viewport": true,
"auto_complete": false,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"draw_white_space": "none",
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,
"font_face": "Fira Code",
"font_face": "Fira Code",
View matcher.sublime-snippet
import { createMatcher } from '@support/MatchersHelper'
export default createMatcher('${TM_FILEPATH/.*?(\w+).js/\1/}', {
// Selectors: Semantic aliases for elements, a very useful abstraction.
selectors: {$1
// Getters: A convenient way to get nested elements in the component.
getters: {$2
ElMassimo / bands_controller.rb
Last active Dec 21, 2017
Sample Rails CRUD Controller
View bands_controller.rb
class BandController < ApplicationController
def new
@band =
def create
@band =
ElMassimo / convert_all
Created Sep 7, 2017
Music Conversion (MP3 to WMA and WAV to MP3)
View convert_all
find . "(" -iname "*.mp3" ")" -print0 | xargs -0 -I file mv file "../music/$file"
find . "(" -iname "*.wma" ")" -print0 | xargs -0 -I file ./convert_file file
View trailing_spaces_settings.json
"trailing_spaces_enabled": true,
"trailing_spaces_modified_lines_only": false,
"trailing_spaces_trim_on_save": true
ElMassimo / thread_with_context.rb
Last active Apr 19, 2017
Thread with access to a shared Request Context
View thread_with_context.rb
# Public: Module that overrides Thread initialization to preserve the request context.
module ThreadWithContext
# Public: Returns a new Thread that preserves the context of the current request.
def new(*args)
request_id = Thread.current[:request_id]
super(*args) {
Thread.current[:request_id] = request_id
yield *args
ElMassimo / decorated_bands_controller.rb
Created Apr 3, 2017
Rails CRUD Controller using Draper
View decorated_bands_controller.rb
class BandController < ApplicationController
def new
@band =
def create
@band =
View mongoid_no_heritage.rb
module Mongoid
# Public: Allows to use inheritance to reuse logic, without using Single-
# Collection Inheritance, storing the model and superclass in different
# collections.
module NoHeritage
extend ActiveSupport::Concern
included do
# Internal: Preserve the default storage options instead of storing in the
You can’t perform that action at this time.