Skip to content

Instantly share code, notes, and snippets.

View Rodrigora's full-sized avatar
🏠
Working from home

Rodrigo R Aquino Rodrigora

🏠
Working from home
  • Dublin Ireland
View GitHub Profile
@Rodrigora
Rodrigora / bovespa.py
Created February 8, 2019 10:43 — forked from turicas/bovespa.py
Get stock prices from BMF Bovespa API
# coding: utf-8
# Copyright 2015 Álvaro Justen <https://github.com/turicas/rows/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@Rodrigora
Rodrigora / camelSnake.js
Created May 27, 2018 16:43 — forked from simongong/camelSnake.js
JavaScript: convert format of object keys between camel-case and snake-case
/**
* @param {Object|String} data string or keys of object are named in form of snake
* @param {number} depth to which level of keys should it process
* @return {Object|String} string or keys of object are named in form of camel case
*/
exports.snakeToCamel = function(data, depth) {
if (Util.isObject(data)) {
if (typeof depth === 'undefined') {
depth = 1;
}
@Rodrigora
Rodrigora / auth_helpers.rb
Created May 27, 2018 14:42 — forked from blaze182/auth_helpers.rb
Request specs devise_token_auth Authentication helpers
# spec/support/requests/auth_helpers.rb
module Requests
module AuthHelpers
module Extensions
def sign_in(user)
let(:auth_helpers_auth_token) {
self.public_send(user).create_new_auth_token
}
end
@Rodrigora
Rodrigora / iterm2-profile.json
Created November 6, 2017 23:29 — forked from anonymous/iterm2-profile.json
iterm2-profile
{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Red Component" : 0.4405802488327026,
"Color Space" : "Calibrated",
"Blue Component" : 0.5168579816818237,
"Alpha Component" : 1,
@Rodrigora
Rodrigora / Gemfile
Last active September 9, 2015 17:14
Running ActiveRecord specs
source 'https://rubygems.org'
gem 'rails', '4.2.1'
gem 'sqlite3'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'bcrypt'