Skip to content

Instantly share code, notes, and snippets.

View derekhubbard's full-sized avatar

Derek Hubbard derekhubbard

View GitHub Profile
#!/bin/sh
WORKING_DIR=work
# step 0 - clean up
if [ -d $WORKING_DIR ]; then
rm -rf $WORKING_DIR
fi
mkdir $WORKING_DIR
ul {
border: 1px solid black;
}
li {
margin-top: 10px;
}
li:last-child {
margin-bottom: 10px;
<div class="hero-unit">
<p>Game of Thrones Selector Fun</p>
<ul>
<li>Tyrion</li>
<li>Jaime</li>
<li>Cersei</li>
<li>Daenerys</li>
</ul>
</div>
@derekhubbard
derekhubbard / gist:5934928
Created July 5, 2013 14:30
Verify api with jasmine. Must avoid hard coding base uri and policy number.
describe("GetPolicyTerm", function () {
var policyTerm;
beforeEach(function () {
policyTerm = new PolicyTerm();
});
it("should be able to retrieve a policy by policy number", function () {
var callback = jasmine.createSpy();
policyTerm.getPolicyTermByPolicyNumber("http://localhost:17186", "2013061401", callback);