Skip to content

Instantly share code, notes, and snippets.

View gwright's full-sized avatar

Gary Wright gwright

  • CivicPlus
  • New Haven, CT
View GitHub Profile
@gwright
gwright / devops-project.md
Last active August 9, 2019 18:44
Devops/Backend Coding Project

Backend/Devops Engineer

We appreciate your interest in joining SeeClickFix's development team. As an exercise to base our conversation moving forward, please complete and submit the following command line app.

For this project, please use the programming language that you think will best illustrate your skills. For reference SeeClickFix uses Javascript, Ruby, Kotlin, Swift, and Java but you aren't required to use one of our languages.

@gwright
gwright / gist:5bfcc80b3843bd1f94ba92af027f3a31
Created September 19, 2017 16:02
Google Geocode Failures
root@localhost:~# curl -v https://maps.googleapis.com/maps/api/geocode/json?address=portsmouth+nh
* Hostname was NOT found in DNS cache
* Trying 2607:f8b0:4006:81a::200a...
* Connected to maps.googleapis.com (2607:f8b0:4006:81a::200a) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
@gwright
gwright / android-project.md
Last active September 12, 2017 19:44
Android Programming Example

Android Developers

We appreciate your interest in joining SeeClickFix's development team.

As an exercise to base our conversation moving forward, please complete and submit the following small app to demonstrate your programming skills and familiarity with Android development.

Description

The SeeClickFix engineering team would like to keep track of various events happening in its repos.

@gwright
gwright / ios-developer.md
Last active May 13, 2021 19:09
Programming Exercise for SeeClickFix iOS Developers

iOS Developer

We appreciate your interest in joining the CivicPlus mobile development team.

As an exercise to base our conversation moving forward, please complete and submit the following small app:


The CivicPlus mobile engineering team would like to keep track of various events happening in its repos. The team has asked you to create an app which shows selected events types from the Github events api https://api.github.com/repos/:owner/:repo/events.

Full Stack Developers

We appreciate your interest in joining SeeClickFix's development team.

As an exercise to base our conversation moving forward, please complete and submit the following small app. Our tech stack is Rails and Ember, but you may implement this using any Ruby or Javscript framework (Rails, Sinatra, Node, etc.), as a Javascript single page app (Ember, Angular, React, ...), or some combination.

We are interested in your Ruby and/or Javascript skills, but if you think some other language or

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gwright
gwright / features
Created April 3, 2014 19:35
ruby script to summarize local branch status relative to origin
#!/usr/bin/env ruby
#require 'pry'
#require 'pry-byebug'
def branch(group:nil)
case group
when :remote
flag = "-r"
when :all
3.2.12 - 3.2.16
Scopes that are
-- combined via #merge AND
-- are simple column/value equality tests
will be MERGED, last equality test wins.
Chained scopes don't always use merge:
-- explicit where clauses don't use merge (=> AND)
-- class methods (vs scopes) don't use merge ( => AND)
@gwright
gwright / latency.txt
Created June 1, 2012 00:33 — forked from jboner/latency.txt
Latency numbers every programmer should know
L1 cache reference 0.5 ns 1 sec
Branch mispredict 5 ns 10 sec
L2 cache reference 7 ns 14 sec
Mutex lock/unlock 25 ns 50 sec
Main memory reference 100 ns 3.3 min
Compress 1K bytes with Zippy 3,000 ns 1.7 hr
Send 2K bytes over 1 Gbps network 20,000 ns 11.0 hr
Read 1 MB sequentially from memory 250,000 ns 5.8 days
Round trip within same datacenter 500,000 ns 11.6 days
Disk seek 10,000,000 ns 7.7 months