Skip to content

Instantly share code, notes, and snippets.

View edward's full-sized avatar

Edward Ocampo-Gooding edward

View GitHub Profile
@edward
edward / gist:8572602
Created January 23, 2014 03:59
Running a Happy Hackfest Lessons from many Open Data hackfests

Happy Hackfests

Hi, my name is Edward. I work for an excellent company called Shopify. In my spare time, I put on hackfests with some excellent friends of mine.

Once upon a time, I went to a lot of tech-related meetups. I want to enough meetups that I started to know pretty much everyone who showed up. It was pretty much the same dudes interested in the same things every. single. time. Nice guys, but I wanted something a little different.

Fast-forward to some really awesome party I was at. There were all sorts of people from different backgrounds at this party, and they were all really smart, and really interesting. I met biologists specializing in arctic bacteria that live in semi-transparent rocks that naturally create condensation so that the bacteria can live. I met librarians who told me about the crazy political and philosophical beliefs that go into systems like the Library of Congress system of organizing books, and how you can still see the history of feminism and women’s suffrage just by lookin

@edward
edward / yep.md
Last active January 4, 2016 04:58
Culture at Shopify GTEC 2013

Shopify culture is rad and you could have it too if you did more of what you’re already doing

Talk for GTEC 2013

Hi, I'm Edward. Catch me on twitter at edwardog. I work at Shopify, down the street.

If you could not fail, how would you change the culture in the public service to be the best place to work at on the planet?

I am certain that all the pieces are there, but there's something in the way of ubiquitous innovation and growth in the organization.

Shopify is a company of motivated people who make the best stuff for building businesses on the internet. I'm not going to prescribe that you do everything that we do, but I encourage you to steal the parts that make sense for you.

@edward
edward / gist:8307972
Created January 7, 2014 22:17
Recruiter Hacker job posting

Seeking recruiting hacker.

I am looking to find and hire a software developer to join the Shopify Talent Acquisition Team. Help us build the company by optimizing, scaling, and hacking the hiring pipeline to better build and shape the next generation of Shopify. [Add more specific details here?]

Recruiting is different here. Forget every terrible interaction you have had with recruiters who pressure you to consider working for “their rapidly growing market leading client” that they can’t tell you about in any detail, let alone the people you would inevitably spend the next chapter of your life with.

Recruitment at Shopify is human. It’s a series of conversations with people from several teams across the company. The intention is to discover how you, the candidate, are going to have a good time working in a team and ultimately grow as a software developer and as a person. Considering the success of the company, how many friends of staff referrals we get, and our sub-1% annual turnover, this focus on

@edward
edward / gist:8108608
Created December 24, 2013 03:55
Example of destructuring in Ruby
class Whatever
def ohai(message: nil, times: nil)
message * times
end
end
Whatever.new.ohai({times: 3, message: 'yep'}) # => "yepyepyep"
@edward
edward / gist:7951522
Created December 13, 2013 21:20
A talk on running hackfests from Edward at Open Data Ottawa. Presented at APIUS 2013 in Sherbrooke Quebec, October 26th, 2013.

Happy Hackfests

Hi, my name is Edward. I work for an excellent company called Shopify. In my spare time, I put on hackfests with some excellent friends of mine.

Once upon a time, I went to a lot of tech-related meetups. I want to enough meetups that I started to know pretty much everyone who showed up. It was pretty much the same dudes interested in the same things every. single. time. Nice guys, but I wanted something a little different.

Fast-forward to some really awesome party I was at. There were all sorts of people from different backgrounds at this party, and they were all really smart, and really interesting. I met biologists specializing in arctic bacteria that live in semi-transparent rocks that naturally create condensation so that the bacteria can live. I met librarians who told me about the crazy political and philosophical beliefs that go into systems like the Library of Congress system of organizing books, and how you can still see the history of feminism and women’s suffrage just by lookin

@edward
edward / gist:7745814
Created December 2, 2013 06:14
Setting up Amber
➜ google-calendar-api ls -la
total 8
drwxr-xr-x 5 edward staff 170 2 Dec 01:11 .
drwxr-xr-x 4 edward staff 136 2 Dec 01:10 ..
-rw-r--r-- 1 edward staff 879 2 Dec 01:11 index.html
drwxr-xr-x 2 edward staff 68 2 Dec 01:10 js
drwxr-xr-x 2 edward staff 68 2 Dec 01:10 st
➜ google-calendar-api ../vendor/amber/bin/amber serve --base-path `pwd`
Warning: project directory does not contain index.html
Thai dishes that Oren should order, especially from Anna Thai in Ottawa:
Grilled squid (pla muk yang)
Fresh spring rolls
Panaeng Curry w/ chicken
Crispy duck (pad ped makua yao)
light red curry w/ shrimp
pad ki mow w/ shrimp
@edward
edward / gist:7214270
Created October 29, 2013 13:06
Running benchmarks of context-threaded Ruby vs. normal Ruby. ctruby build with regular ./configure and no special flags. Benchmarks performed on a MacBook Air mid-2011.
$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]
$ ./ruby -v
ruby 2.1.0dev (2013-10-23 trunk 43398) [x86_64-darwin13.0.0]
$ ruby benchmark/driver.rb --executables="normal_ruby::/opt/boxen/rbenv/shims/ruby; ctruby::/Users/edward/Code/C/ruby/ruby -Ilib:.:.ext/common:.ext/x86_64-darwin13.0.0/" --pattern='bm_' --directory=/Users/edward/Code/C/ruby/benchmark -r 5
preparing benchmark/fasta.output.100000
preparing benchmark/fasta.output.2500000
if ((rb_enc_asciicompat(to) && is_ascii_string(str)) ||
to == rb_ascii8bit_encoding()) {
if (STR_ENC_GET(str) != to) {
str = rb_str_dup(str);
rb_enc_associate(str, to);
}
return str;
}
@edward
edward / gist:6703348
Created September 25, 2013 17:49
Keyboard mapping things for OSX
Something that's bugged me about OS X's Terminal is its default key shortcuts: the home and end keys don't do what I expect, and holding ctrl+arrow keys don't skip around words (which is really useful once you get in the hang of it). Even "cmd" from Windows has these key behaviors. The fix: Check out /etc/inputrc and /etc/profile to make changes system-wide (of course, you can make this specfic to only your user account by using ~/.inputrc and ~/.bash_profile). This is my /etc/inputrc:
# Be 8 bit clean.
set input-meta on
set output-meta on
set convert-meta off
# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line