I hereby claim:
- I am awesomizer on github.
- I am christianls (https://keybase.io/christianls) on keybase.
- I have a public key ASDsPrOhvUnhS2yCeXTA4ZkUVxhMAfTFjvPIw7Xi1q6UTwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
'use strict'; | |
// | |
// * HELPER FUNCTIONS | |
// | |
// Experiencing a bug in bootstrap tour | |
// where the backdrop stays visible when | |
// the tour is ended. | |
function removeBackdrop() { |
class FpState < ActiveRecord::Base | |
attr_accessible :richardson_comment_id, :type | |
belongs_to :richardson_comment | |
validates_presence_of :richardson_comment, :type | |
STATES = { | |
"Drafted" => 0, |
# Routes | |
post '/history' => 'transactions#insert_trx', as: 'insert_trx' | |
get '/history' => 'transactions#trx_history', as: 'trx_history' | |
# Controller | |
class TransactionsController < ApplicationController | |
skip_before_filter :verify_authenticity_token |
function createCORSRequest(method, url) { | |
var xhr = new XMLHttpRequest(); | |
if ("withCredentials" in xhr) { | |
// Check if the XMLHttpRequest object has a "withCredentials" property. | |
// "withCredentials" only exists on XMLHTTPRequest2 objects. | |
xhr.open(method, url, true); | |
} else if (typeof XDomainRequest != "undefined") { |
###For testing route helper methods in the console
include Rails.application.routes.url_helpers
Find and Replace recursive through directories: | |
find . -type f -print0 | xargs -0 sed -i 's/Application/whatever/g' |
restart the server: touch tmp/restart.txt |