This file contains hidden or 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
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
.primary-nav { | |
width:1000px; | |
border:solid 1px red; | |
text-align:center; | |
} |
This file contains hidden or 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
/* modernizr-test_position_fixed_ios.js | |
* Original by Daniel Ott (https://gist.github.com/1333800) | |
* 3 March 2011 | |
* Updated by Philipp Söhnlein 3 November 2011 | |
* Custom Tests using Modernizr's addTest API | |
*/ | |
/* iOS | |
* There may be times when we need a quick way to reference whether iOS is in play or not. | |
* While a primative means, will be helpful for that. |
This file contains hidden or 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
<script> | |
(function() { | |
if (Modernizr.classlist && Modernizr.queryselector && Modernizr.localstorage && Modernizr.eventlistener) { | |
var j = document.createElement('script'); | |
j.type = 'text/javascript'; | |
j.async = true; | |
j.src = '/resources/javascript/bundle.js'; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(j, s); | |
document.documentElement.className += ' o--js'; |
This file contains hidden or 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
function gh { | |
branch="$(git rev-parse --abbrev-ref HEAD)" | |
url="$(git config --get remote.origin.url)" | |
url=${url/[email protected]:/http://github.com/} | |
url=${url/.git/} | |
if [[ $1 =~ "-c" ]]; then action="compare" | |
elif [[ $1 =~ "-p" ]]; then action="pull" | |
else action="tree"; fi | |
This file contains hidden or 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
var StreamModel = function () {} | |
prototype { | |
initFromSAPI() // takes a search string | |
initFromIds() // takes list of ids | |
initFromModels()// takes list of article models | |
} | |