I hereby claim:
- I am jackphelps on github.
- I am allworknoplay (https://keybase.io/allworknoplay) on keybase.
- I have a public key whose fingerprint is 8787 ED80 BD69 D454 14E5 D1C1 8FDE 446C E8D2 C723
To claim this, I am signing this object:
(function (root) { | |
var type = function (o) { | |
// handle null in old IE | |
if (o === null) { | |
return 'null'; | |
} | |
// handle DOM elements |
! function (a, b) { | |
function c(a) { | |
var b = a.length, | |
c = fb.type(a); | |
return fb.isWindow(a) ? !1 : a.nodeType === 1 && b ? !0 : c === "array" || c !== "function" && (b === 0 || typeof b == "number" && b > 0 && b - 1 in a) | |
} | |
function d(a) { | |
var b = ob[a] = {}; | |
fb.each(a.match(hb) || [], function (a, c) { |
#!/usr/bin/env ruby | |
require 'rake/clean' | |
require 'rake/testtask' | |
task :default => [:spec, :test] | |
task :spec do | |
sh "rspec ." | |
end |
I hereby claim:
To claim this, I am signing this object:
# RSpec's subject method, both implicitly and explicitly set, is useful for | |
# declaratively setting up the context of the object under test. If you provide a | |
# class for your describe block, subject will implicitly be set to a new instance | |
# of this class (with no arguments passed to the constructor). If you want | |
# something more complex done, such as setting arguments, you can use the | |
# explicit subject setter, which takes a block. | |
describe Person do | |
context "born 19 years ago" do | |
subject { Person.new(:birthdate => 19.years.ago } | |
it { should be_eligible_to_vote } |
class Object | |
def self.publicize_methods_for_debugging | |
list = private_instance_methods(false).map{|name| ":" + name.to_s}.join(", ") | |
eval("class #{self.name}; public #{list}; end") | |
end | |
end | |
# User.publicize_methods_for_debugging |
# Rails Controller Style Guide | |
## Table of Contents | |
1. [Authorizing Actions](#authorizing-actions) | |
1. [Action Patterns](#action-patterns) | |
1. [Request Formats](#request-formats) | |
1. [Response Codes](#response-codes) | |
## Authorizing Actions |
Usage: | |
class MyModel | |
include ListAttributeHelper | |
KINDS = %w( stripe paypal ) | |
scopes_and_identities :kind, KINDS | |
end | |
MyModel.paypal.size | |
=> 999 | |
MyModel.stripe.last.stripe? | |
=> true |
``` | |
skipped = 0 | |
aes = [] | |
Ahoy::Event.includes(:user).where("time > ?", 3.months.ago).find_each do |ae| | |
if ae.school_id.nil? || ae.user.nil? || (ae.user.school_id == ae.school_id) | |
skipped += 1 | |
puts "skipped: #{skipped}" | |
else | |
aes << ae.id | |
puts "added: #{aes.size}" |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
namespace RPG.FX { | |
public class CharacterFade : MonoBehaviour | |
{ | |
public static void Out(GameObject target, Materials dissolveMaterialToUse, Action callback, float duration = 1.5f) |