I hereby claim:
- I am natebird on github.
- I am natebird (https://keybase.io/natebird) on keybase.
- I have a public key whose fingerprint is 3134 7710 4658 445B 62AC D7CF 5A09 49BD 44FE 9C23
To claim this, I am signing this object:
| class UpgradeToRefineryTwo < ActiveRecord::Migration | |
| def self.up | |
| # For refinerycms-authentication | |
| rename_table :roles_users, :refinery_roles_users | |
| rename_table :roles, :refinery_roles | |
| rename_table :user_plugins, :refinery_user_plugins | |
| rename_table :users, :refinery_users | |
| remove_column :refinery_users, :persistence_token | |
| remove_column :refinery_users, :perishable_token | |
| remove_column :refinery_users, :remember_token |
| class ActionDispatch::Routing::Mapper | |
| def draw(routes_name) | |
| instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
| end | |
| end | |
| BCX::Application.routes.draw do | |
| draw :api | |
| draw :account | |
| draw :session |
| class Api::RegistrationsController < Api::BaseController | |
| respond_to :json | |
| def create | |
| user = User.new(params[:user]) | |
| if user.save | |
| render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
| return | |
| else |
| #config/initializers/devise.rb | |
| config.warden do |manager| | |
| manager.strategies.add :token_header_authenticatable, TokenHeaderAuthenticatable | |
| manager.default_strategies(:scope => :user).unshift :token_header_authenticatable | |
| end |
| ENV["RAILS_ENV"] = "test" | |
| require File.expand_path('../../config/environment', __FILE__) | |
| require File.dirname(__FILE__) + '/blueprints' | |
| require 'faker' | |
| require 'rails/test_help' | |
| require 'minitest/autorun' | |
| require 'minitest/pride' | |
| class MiniTest::Unit::TestCase | |
| include MiniTest::ActiveRecordAssertions |
I hereby claim:
To claim this, I am signing this object:
| Verifying that +natesbird is my openname (Bitcoin username). https://onename.io/natesbird |
| //: Playground - noun: a place where people can play | |
| import Foundation | |
| func calculateFloor(input: String) -> Int { | |
| let opening_parentheses_count = input.stringByReplacingOccurrencesOfString(")", withString: "").characters.count | |
| let closing_parentheses_count = input.stringByReplacingOccurrencesOfString("(", withString: "").characters.count | |
| let result = opening_parentheses_count - closing_parentheses_count | |
| //: Implementing Ruby's memoization operator in Swift | |
| // From: https://airspeedvelocity.net/2014/06/10/implementing-rubys-operator-in-swift/ | |
| // define operator properties | |
| infix operator ||= { | |
| associativity right | |
| precedence 90 | |
| assignment | |
| } |
| Nate: My Issue: I can’t login / create new login account for new account number | |
| Ramjot: I am here to assist you. | |
| Ramjot: I can definitely help you with the login information. | |
| Ramjot: It’s really difficult to remember passwords, we tend to forget. I am here to help you with your password reset. | |
| Ramjot: For the account security, may I ask you a few questions? |