This file contains 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 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
// | |
// longestIncreasingSequence | |
// --- | |
// | |
// Javascript function for finding the longest increasing subsequence within a sequence of numbers | |
// | |
// @param {Array} arr The array containng the sequence | |
// @param {Boolean} strict Boolean specifying whether to use strict (`<`) inequality (default is to use `<=`) | |
// @return {Array} | |
// |
This file contains 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 Template = function() { | |
var pattern = /\{{([\w-]+)\}}/g, | |
replacements = { | |
"\\" : "\\\\", | |
"\\r\\n": "\n", | |
"'": "\'", | |
"\"":"\\\"" | |
}, | |
cleanupRX = function() { |
This file contains 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
Show hidden characters
{ | |
"node": true, | |
"browser": true, | |
"es5": true, | |
"bitwise": true, | |
"camelcase": true, | |
"curly": true, | |
"eqeqeq": true, | |
"immed": true, | |
"indent": 4, |
This file contains 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
(^\s+[a-z\-]+\s?\:[a-z0-9#\s\-,\'"%\(\)]+;\n?\r?)+ |
This file contains 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 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
.overlay-mask { | |
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */ | |
display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */ | |
display: -ms-flexbox; /* TWEENER - IE 10 */ | |
display: -webkit-flex; | |
display: flex; | |
-webkit-box-align: center; | |
-webkit-flex-align: center; | |
-ms-flex-align: center; |
This file contains 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($) { | |
// Add inner and outer width to zepto (adapted from https://gist.github.com/alanhogan/3935463) | |
var ioDim = function(dimension, includeBorder) { | |
return function (includeMargin) { | |
var sides, size, elem; | |
if (this) { | |
elem = this; | |
size = elem[dimension](); | |
sides = { | |
width: ["left", "right"], |
This file contains 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
//Keybindings | |
[ | |
{ "keys": ["ctrl+e"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} } | |
] |
This file contains 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'; |
OlderNewer