Skip to content

Instantly share code, notes, and snippets.

Ersin Buckley ebuckley

Block or report user

Report or block ebuckley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ebuckley / goodtest.component.spec.ts
Last active Oct 2, 2017
Fast tests are the best
View goodtest.component.spec.ts
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { By } from '@angular/platform-browser';
import { NO_ERRORS_SCHEMA } from '@angular/core';
describe('AppComponent', () => {
beforeEach(async(() => {
declarations: [
View gist:ed9321e9e1c796eae9bc6134e364b1c2
Code Review Checklist
Understand the change
Read Pull Request description and Ticket
Functional Test
Does it work from a clean install?
Does it solve the problem and satisfy the AC?
(Green Path) Does everything work if you go through the intended steps?
(Red Path) Does the application help you and make sense when things go wrong?
View gist:fe86d02552fd487c0829
* Daily programmer weekly challenge
package main
import (
View property_scrape.rb
require 'net/http'
require 'json'
#hamilton RegionId
hamilton = 16
waikato = 14
# make a query to the Residential endpoiint of the trademe search api
# @param argument_hash Hash
View gist:6254978
set nocompatible
set list nolist
inoremap jj <esc>
runtime bundle/pathogen.vim
silent! call pathogen#helptags()
silent! call pathogen#runtime_append_all_bundles()
filetype plugin indent on
syntax on
ebuckley / gist:6254097
Created Aug 16, 2013
Template for nz programming competition
View gist:6254097
# template for starting a programming contest question
# shortcuts
import pprint
printer = pprint.PrettyPrinter(indent=4)
pp = printer.pprint
def do_work(data):
""" after reading a file data is passed into this function"""
ebuckley / prettyprintpythonchortcut
Last active Dec 20, 2015
Just a handy little pattern
View prettyprintpythonchortcut
# shortcuts
import pprint
printer = pprint.PrettyPrinter(indent=4)
pp = printer.pprint
ebuckley / gist:1842461
Created Feb 16, 2012
python code to encode/decode morse code
View gist:1842461
morseAlphabet ={
"A" : ".-",
"B" : "-...",
"C" : "-.-.",
"D" : "-..",
"E" : ".",
"F" : "..-.",
"G" : "--.",
"H" : "....",
"I" : "..",
You can’t perform that action at this time.