Skip to content

Instantly share code, notes, and snippets.

View oliverhu's full-sized avatar
👓
solving problems

Keqiu Hu oliverhu

👓
solving problems
View GitHub Profile
let test = testA
if test.failed {
test.failedReason = on-call.investigate()
if (test.failedReason != badCode) {
on-call.disableTest(test)
}
}
let reasonForFail = testA.failedReason
if testA failed && reason != app code && .. {
on-call.disable(testA)
@oliverhu
oliverhu / highlight.py
Last active December 19, 2015 15:29
highlight
class Foo:
from abc import ABCMeta, abstractmethod, abstractproperty
class Foo: # In Python 3, you use the syntax
_ _metaclass_ _ = ABCMeta # class Foo(metaclass=ABCMeta)
@abstractmethod
def spam(self,a,b):
pass
@abstractproperty
def name(self):
pass
@oliverhu
oliverhu / gist:2978788
Created June 23, 2012 15:57
careercup 5.7
We couldn’t find that file to show.
@oliverhu
oliverhu / gist:2978423
Created June 23, 2012 14:13
careercup 6.1
(3+1)/3*6=8