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
//------------------ Option A: Use if else to avoid execution of bad data | |
// panelData = { | |
// title: "a title for the panel (optional)" | |
// subtitle: "subtitle for the panel (optional)" | |
// contents: "panel contents (required)" | |
// } | |
_addPanel = function (panelData) { | |
var $panel | |
, panelPos |
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
#!/usr/bin/env ruby | |
# Aside from removing Ruby on Rails specific code this is taken verbatim from | |
# mislav's git-deploy (http://github.com/mislav/git-deploy) and it's awesome | |
# - Ryan Florence (http://ryanflorence.com) | |
# | |
# Install this hook to a remote repository with a working tree, when you push | |
# to it, this hook will reset the head so the files are updated | |
if ENV['GIT_DIR'] == '.' |
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
/* | |
* QtWebKit-powered headless test runner using PhantomJS | |
* | |
* PhantomJS binaries: http://phantomjs.org/download.html | |
* Requires PhantomJS 1.6+ (1.7+ recommended) | |
* | |
* Run with: | |
* phantomjs runner.js [url-of-your-qunit-testsuite] | |
* | |
* e.g. |
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
Date.prototype.addHours = (h) -> | |
date = new Date @ | |
date.setHours @getHours() + h | |
date | |
Date.prototype.isWeekday= -> | |
weekdays = [1..5] # Javascript days are integers from 0-6 starting at Sunday | |
debugger | |
_.contains weekdays, @.getDay() |
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
define( | |
[] | |
() -> | |
_analyticsSites = | |
DEMO: 1 | |
LOCALHOST: 2 | |
_libUrl = (server) -> | |
'js!' + server + '/js/piwik.js' |
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
// brandcolors.net | |
$colorFacebook: #3b5998 | |
$colorFitbit: #48c1c4 | |
$colorLinkedIn: #0e76a8 | |
$colorGoogle: #db4a39 | |
$colorTwitter: #00acee |
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
$colorGood: lawngreen | |
.circle | |
background: $colorGood | |
.circle.yay | |
+animation( blammo .5s ) | |
+keyframes(blammo) |
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
$sizePhone: 603px | |
$sizeTablet: 1024px | |
@mixin phone | |
@media (max-width: $sizePhone) | |
@content | |
@mixin tablet | |
@media (min-width: $sizePhone+1) and (max-width: $sizeTablet) | |
@content |
OlderNewer