Skip to content

Instantly share code, notes, and snippets.

Derek Hubbard derekhubbard

Block or report user

Report or block derekhubbard

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
View gist:9075897
#!/bin/sh
WORKING_DIR=work
# step 0 - clean up
if [ -d $WORKING_DIR ]; then
rm -rf $WORKING_DIR
fi
mkdir $WORKING_DIR
View main.css
ul {
border: 1px solid black;
}
li {
margin-top: 10px;
}
li:last-child {
margin-bottom: 10px;
View index.html
<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 Jul 5, 2013
Verify api with jasmine. Must avoid hard coding base uri and policy number.
View gist:5934928
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);
You can’t perform that action at this time.