I hereby claim:
- I am seabre on github.
- I am seabre (https://keybase.io/seabre) on keybase.
- I have a public key ASAaOh0ptPfmijH6a1GK0NpdzmDwAaGSvkRwKYtow96jNAo
To claim this, I am signing this object:
ApplicationController.allow_forgery_protection = false | |
app.post('/whatever_my_user_model_is/sign_in', {"whatever_my_user_model_is"=>{"email"=>"users@email.com", "password"=>"users_password"}}) |
# Dandelion, deploy on production | |
dandelion deploy | |
# Dandelion, deploy on staging | |
dandelion --config=dandelion_staging.yml deploy |
(ns three.demo) | |
(def THREE js/THREE) | |
(def camera (THREE.PerspectiveCamera. 75 (/ (.-innerWidth js/window) | |
(.-innerHeight js/window)) 1 10000)) | |
(set! (.-z (.-position camera)) 1000) | |
(def scene (THREE.Scene.)) | |
(def geometry (THREE.CubeGeometry. 200 200 200)) | |
(def obj (js/Object.)) | |
(set! (.-color obj) 0xff0000) | |
(set! (.-wireframe obj) true) |
(function(){var a=[["0","1","2","3","4","5","6","7","8","9"],["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]];pass="";for(var b=8;b>0;b--){var c=a[Math.floor(Math.random()*a.length)];pass+=c[Math.floor(Math.random()*c.length)]}prompt("Random Password:",pass)})(); |
# An implementation of assert. | |
AssertException = (message) -> | |
@message = message | |
assert = (exp, message) -> | |
throw new AssertException(message) unless exp | |
AssertException::toString = -> | |
"AssertException: " + @message | |
#Gets current time, then formats current time for SQL. | |
Time.now.to_s(:db) |
I hereby claim:
To claim this, I am signing this object:
var yourself = { | |
fibonacci_lookup : {0: 0, 1: 1}, | |
fibonacci : function(n) { | |
if (this.fibonacci_lookup[n] !== undefined) { | |
return this.fibonacci_lookup[n]; | |
} | |
else { | |
var result = this.fibonacci(n - 1) + | |
this.fibonacci(n - 2); | |