I hereby claim:
- I am jenrzzz on github.
- I am jenrzzz (https://keybase.io/jenrzzz) on keybase.
- I have a public key whose fingerprint is B598 9E66 2182 C4FA 74E6 A5AB F423 CA23 8536 8436
To claim this, I am signing this object:
try | |
if !empty($LIGHT_MODE) | |
set background=light | |
colorscheme PaperColor | |
let g:airline_theme='papercolor' | |
else | |
set background=dark | |
colorscheme jellybeans | |
let g:airline_theme = 'jellybeans' | |
endif |
require 'forwardable' | |
class RecordRelation | |
extend Forwardable | |
include Enumerable | |
attr_reader :records | |
def_delegators :@records, :each | |
def initialize(records_array) |
describe 'test' do | |
it 'locks stuff' do | |
ActiveRecord::Base.connection.execute <<-SQL | |
BEGIN; | |
SELECT pg_advisory_lock(420); | |
SQL | |
Thread.new do | |
res = ActiveRecord::Base.connection.execute <<-SQL | |
SELECT pg_try_advisory_lock(420); |
# Public: A fancy class for doing complicated group-bys. | |
# Construct it with a strategy object that responds to #key_for, #set, and | |
# #default_accumulator. | |
class Aggregator | |
attr_reader :strategy | |
# Public: Create a new Aggregator. | |
# | |
# strategy - An aggregation strategy object that responds to the following: | |
# #key_for(item) - takes an item from the collection and returns the key to use for it. |
#include <stdio.h> | |
#ifdef __APPLE__ | |
/* /System/Library/Frameworks/GSS.framework/GSS should be statically linked */ | |
#include <GSS/GSS.h> | |
#else | |
#include <gssapi/gssapi.h> | |
#include <gssapi/gssapi_krb5.h> | |
#endif | |
var quotes = new Array; | |
quotes.push("Avuncular at best in a church of new things<br>He traded the records for rings<br>As I sat back and watched what I thought would ensue not ensue"); | |
quotes.push("If you don't believe in recompense, who will fix the fence for you?"); | |
quotes.push("What is it about music that lends itself so well to business as fucking usual?"); | |
quotes.push("I am a tastemaker, and I kill things<br>I am not a tastemaker and I kill things"); | |
quotes.push("Jennifer, your halter top: a consecrated altar<br>But I've wrung my hands and knees in shame there one too many times"); | |
quotes.push("Girls are great<br>Grated on my plate<br>And boys are best<br>Served with a stake through the chest"); | |
quotes.push("There are no wills, there are no keys<br>Only executors and executees"); | |
quotes.push("One might say we've lost the space race<br>Another one might say we've won"); | |
quotes.push("The pedagogue in me asked "What have you read lately?"<br>A pleasantry the blonde in you responded to"); |
class iTunesPlayerSegment(PlayerSegment): | |
def get_player_status(self, pl): | |
status_delimiter = '-~`/=' | |
ascript = ''' | |
tell application "System Events" | |
set process_list to (name of every process) | |
end tell | |
if process_list contains "iTunes" then | |
tell application "iTunes" |
I hereby claim:
To claim this, I am signing this object:
class Like < ActiveRecord::Base | |
belongs_to :likeable, polymorphic: true | |
belongs_to :user | |
end | |
class Project < ActiveRecord::Base | |
has_many :likes, as: :likeable | |
end | |
class Source < ActiveRecord::Base |
sudo rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-7.noarch.rpm |