- steelcase leap - http://www.steelcase.com/en/products/category/seating/task/leap/pages/overview.aspx
- humanscale freedom - http://www.humanscale.com/products/product_detail.cfm?group=FreedomTaskChairWithHeadrest
- herman miller aeron - http://www.hermanmiller.com/products/seating/performance-work-chairs/aeron-chairs.html
- herman miller setu - http://www.hermanmiller.com/products/seating/multi-use-guest-chairs/setu-chair.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include this in application controller | |
module Authentication | |
protected | |
# Inclusion hook to make #current_user and #signed_in? | |
# available as ActionView helper methods. | |
def self.included(base) | |
base.send :helper_method, :current_user, :signed_in?, :authorized? if base.respond_to? :helper_method | |
end | |
# Returns true or false if the user is signed in. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function __git_dirty { | |
git diff --quiet HEAD &>/dev/null | |
[ $? == 1 ] && echo "!" | |
} | |
function __git_branch { | |
__git_ps1 "(%s)" | |
} | |
function __my_rvm_ruby_version { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> require "digest" | |
=> true | |
irb(main):002:0> Digest::SHA256.hexdigest("asdf") | |
=> "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b" | |
irb(main):003:0> Digest::SHA256.hexdigest("asdf").to_i(16) | |
=> 108959270400061671294053818573968651411470832267186275529291850190552309358907 | |
irb(main):004:0> Digest::SHA256.hexdigest("asdf").to_i(16).to_s(16) | |
=> "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b" | |
irb(main):005:0> Digest::SHA256.hexdigest("asdf").to_i(16) % 10 | |
=> 7 |
I hereby claim:
- I am jnunemaker on github.
- I am jnunemaker (https://keybase.io/jnunemaker) on keybase.
- I have a public key whose fingerprint is 2F06 D8EA 2B19 8EAB 40C2 7379 7BF1 39D1 EC76 CA82
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('li.unread button.mute-note').each(function() { this.click() }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Kestrel | |
class Client | |
class BlockingWithCheck < Blocking | |
attr_accessor :return_check | |
def get(*args) | |
count = 0 | |
while count += 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'cassanity' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ****************************************************************************** | |
# NOTE: You will need to replace keyspace and migrations_path in the rake tasks | |
# below with whatever makes sense for your application. You will also need a | |
# task named environment that loads whatever is need to make cassanity available. | |
# ****************************************************************************** | |
namespace :db do | |
desc "Run any pending migrations." | |
task :migrate => :environment do | |
require 'cassanity/migrator' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plucky::Query.class_eval do | |
def paginate_without_total(opts={}) | |
page = (opts.delete(:page) || 1).to_i | |
limit = (opts.delete(:per_page) || per_page).to_i | |
skip = (page - 1) * limit | |
all(opts.merge(:limit => limit, :skip => skip)) | |
end | |
end |