Skip to content

Instantly share code, notes, and snippets.

Rodrigo R Aquino Rodrigora

Block or report user

Report or block Rodrigora

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
@Rodrigora
Rodrigora / Gemfile
Last active Sep 9, 2015 — forked from fnando/Gemfile
Running ActiveRecord specs
View Gemfile
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'
View iterm2-profile.json
{
"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 / auth_helpers.rb
Created May 27, 2018 — forked from blaze182/auth_helpers.rb
Request specs devise_token_auth Authentication helpers
View auth_helpers.rb
# 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 / camelSnake.js
Created May 27, 2018 — forked from simongong/camelSnake.js
JavaScript: convert format of object keys between camel-case and snake-case
View camelSnake.js
/**
* @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 / bovespa.py
Created Feb 8, 2019 — forked from turicas/bovespa.py
Get stock prices from BMF Bovespa API
View bovespa.py
# 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,
You can’t perform that action at this time.