Skip to content

Instantly share code, notes, and snippets.

View colinrymer's full-sized avatar

Colin Rymer colinrymer

View GitHub Profile
@colinrymer
colinrymer / to_convert
Created December 11, 2013 19:32
to convert to coffee
▾ aux/
advertisepage.js
▾ common/
ag-utils.js
comscore-beacon.js
debug.js
dynamic-kilo.js
ellipsis.js
email-a-friend.js
events.js
@colinrymer
colinrymer / january_coding_challenge.rb
Created January 28, 2014 17:32
The included code is dedicated to the public domain by the author, Colin L Rymer, in accordance with CC0 1.0 Universal Public Domain Dedication - http://creativecommons.org/publicdomain/zero/1.0/
class String
def palindrome?
!!(self =~ /\A(?<p>| \w | (?: (?<l>\w) \g<p> \k<l+0> ))\z/x)
end
end
def palindrome_count_value(int)
int.to_s(2).palindrome? ? 1 : 0
end
@colinrymer
colinrymer / 0_reuse_code.js
Created January 29, 2014 19:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
  1. Snapshots ============
  • deployed to CI/QA
  • built when commit added to dev branch
  • short lifetime
    • prior snapshots purged on promotion to release candidate
    • removed if QA verification failed
  1. Release Candidates =====================
#!/usr/bin/env bash
set -o errtrace
set -o errexit
facter_version=$1
puppet_version=$2
target_volume=$3
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>Looks like you finally found your phone</Say>
</Response>
require 'yaml'
require 'erb'
require 'fileutils'
require 'primedia/rpm_defaults'
module Primedia
class RpmHelper
include Rake::DSL if defined? Rake::DSL
class GradeCalc
def initialize
@@total_grade ||= 0.0
@@total_percent_given ||= 0
@assingment_num = nil
@percent_of_total = nil
@sum = 0
@avg = 0
end

Keybase proof

I hereby claim:

  • I am colinrymer on github.
  • I am colinrymer (https://keybase.io/colinrymer) on keybase.
  • I have a public key whose fingerprint is 515F 7CE2 8935 C425 F8A3 9C85 3BCF 496F A788 06C1

To claim this, I am signing this object:

@colinrymer
colinrymer / instructions.md
Last active November 3, 2015 17:47
Ikea Kallax/Expedit Standing Desk

fully assembled Expedit standing desk An Expedit standing desk.

This is a tall desk; shorter people may want to consider cutting two 1x4 units into 1x2 units (since a top and bottom panel are needed for each 1x2 unit) to replace the 2x2 units and adding legs or casters, but I'm not sure if the internal construction of the Kallax units would support that. Or, you know, stand on a platform. Don't forget your anti-fatigue mat!

Parts Needed

  • 2x 1x4 Kallax Unit - 1x5 Expedit units can be used for a wider desk
  • 2x 2x2 Kallax Unit - 2x2 Expedit units must be used if and only if using 1x5 Expedit units
  • 4x 1x2 flat braces, e.g. these
  • 2x 2x2 flat braces, e.g. these