This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(() => { | |
TestBed.configureTestingModule({ | |
declarations: [ | |
AppComponent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Daily programmer weekly challenge http://www.reddit.com/r/dailyprogrammer/comments/2a3pzl/weekly_1_handling_console_input/ | |
*/ | |
package main | |
import ( | |
"bufio" | |
"log" | |
"os" | |
"strconv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shortcuts | |
import pprint | |
printer = pprint.PrettyPrinter(indent=4) | |
pp = printer.pprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
morseAlphabet ={ | |
"A" : ".-", | |
"B" : "-...", | |
"C" : "-.-.", | |
"D" : "-..", | |
"E" : ".", | |
"F" : "..-.", | |
"G" : "--.", | |
"H" : "....", | |
"I" : "..", |
NewerOlder