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
/base | |
/header | |
_header.scss | |
/footer | |
_footer.scss | |
/modules | |
_my-module.scss | |
/mixins | |
_new-mixin.scss | |
/sections |
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 clientNow = moment(), | |
serverNow; | |
$.ajax('/gettime', function (resp) { | |
serverNow = moment(resp); | |
}); | |
function syncedMoment(i, f) { | |
return moment(i, f).subtract('milliseconds', clientNow - serverNow); | |
} |
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
{ | |
"bold_folder_labels": true, | |
"highlight_modified_tabs": true, | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"draw_white_space": "all", | |
"font_options": | |
[ | |
"no_bold", | |
"no_round", | |
"subpixel_antialias" |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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
/** | |
* Scrolling shadows by @kizmarh and @leaverou | |
* Only works in browsers supporting background-attachment: local; & CSS gradients | |
* Degrades gracefully | |
*/ | |
html { | |
background: white; | |
font: 120% sans-serif; | |
} |
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
/** | |
* Scrolling shadows by @kizmarh and @leaverou | |
* Only works in browsers supporting background-attachment: local; & CSS gradients | |
* Degrades gracefully | |
*/ | |
html { | |
background: white; | |
font: 120% sans-serif; | |
} |
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 pad(input) { | |
if (input < 10) { | |
return '0' + input; | |
} | |
return input; | |
} | |
moment.duration.fn.formatCountdown = function() { | |
var output = [ | |
pad(this.years()), |
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 now = new Date(); | |
var birth = new Date(1986, 6, 10); // remember that we're using zero indexed months... | |
var yearDiff = now.getFullYear() - birth.getFullYear(); | |
var monthDiff = now.getMonth() - birth.getMonth(); | |
var dayDiff = now.getDate() - birth.getDate(); | |
var hourDiff = now.getHours() - birth.getHours(); | |
var minuteDiff = now.getMinutes() - birth.getMinutes(); | |
var secondDiff = now.getSeconds() - birth.getSeconds(); | |
var millisecondDiff = now.getMilliseconds() - birth.getMilliseconds(); |
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(){ | |
var oldcal = moment.calendar; | |
var newcal = { | |
sameDay : '[Today]', | |
nextDay : '[Tomorrow]', | |
nextWeek : 'dddd', | |
lastDay : '[Yesterday]', | |
lastWeek : '[last] dddd', | |
sameElse : 'L' | |
}; |