Skip to content

Instantly share code, notes, and snippets.

@bhouse044
bhouse044 / gist:9769186
Created March 25, 2014 19:21
Jasmine Notes
# [http://jasmine.github.io/](Jasmine)
## Suites describe your tests
- Global Jasmine function `describe` accepts 2 parameters: `string`, `function`. String is name or title for a spec suite, usually what is being tested. Function is block of code that implements the suite.
## Specs
- Specs are defined by calling the global Jasmine function `it`, which accepts a `string` and `function`. String is a title for this spec and the function is the spec or test. A spec contains one more more expectations that test the state of the code under test.
## Expectations
-
@bhouse044
bhouse044 / optimizely-variant-testing-homepage
Last active August 29, 2015 14:06
Variant Testing for New Homepage
//
// Optimizely
// Variant Testing for New Homepage
//
//-----------------------------------------------------------------------------
// 1. 3 Circle DM Consult A (Sign Up Beginning)
//-----------------------------------------------------------------------------
// Toggle module
@bhouse044
bhouse044 / monokai-best-brian-theme
Created October 20, 2014 13:04
Monokai Best Brian Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- Created by: Shakeel Mohamed ShakeelMohamed.com -->
<!-- Based on Monokai vivid with: Monokai's selection color, Monokai Gray's background color, and colored JSON. -->
<plist version="1.0">
<dict>
<key>name</key>
@bhouse044
bhouse044 / git-magic
Created December 2, 2014 16:20
Git Magic
Git
1. I'm on master
2. git fetch
3. git pull origin master
4. git checkout -b BRANCH_NAME origin/master
5. git push -u origin BRANCH_NAME
git remote show origin
vim ~/.gitconfig
<label class="item item-icon-right">
<select style="opacity:0; width:100%; position:absolute; z-index=100" ng-options="option for option in question.options">
<option value="">Select...</option>
</select>
<span class="input-label">Input Label:</span>
<span class="item-note">Your answer was {{ question.responses[0] }}</span>
<i class="icon ion-ios7-arrow-down"></i>
</label>