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
// Compatibility override - Backbone 1.1 got rid of the 'options' binding | |
// automatically to views in the constructor - we need to keep that. | |
// http://stackoverflow.com/questions/19325323/backbone-1-1-0-views-reading-options | |
Backbone.View = (function(View) { | |
return View.extend({ | |
constructor: function(options) { | |
this.options = options || {}; | |
View.apply(this, arguments); | |
} | |
}); |
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
.entry-title { | |
text-transform: none; | |
} | |
.site-header, | |
.site { | |
max-width: 100%; | |
} | |
.site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content { |
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
{ | |
"name": "[enter-your-project-name]", | |
"version": "0.0.0", | |
"description": "[Your project description.]", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"repository": { | |
"type": "git", |
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
/*! | |
* [Enter your project name] Gruntfile | |
* http://example.com | |
* @author Shane Perera | |
*/ | |
'use strict'; | |
/** | |
* Grunt Module |
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
<phpunit bootstrap="vendor/autoload.php" | |
colors="true" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
processIsolation="false" | |
stopOnFailiure="false" | |
syntaxCheck="false"> | |
<testsuites> |
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
$(document).ready(function() { | |
window.offerTimer = {}; | |
offerTimer.offerEndTime = new Date(0); | |
offerTimer.offerEndTime.setUTCSeconds(#getEpoch(offerEndTime)#); | |
function formatNumber(number) { | |
number = number.toString(); | |
if (number.length === 1) { | |
return '0' + number; | |
} else { |
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
// this will look for an Attribute with 'em-checklist' | |
cix.directive('emChecklist', function() { | |
return { | |
// use Element, Attribute, Class or a combination | |
restrict: 'A', | |
// = both ways | |
// @ attribute | |
// & |
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 paramReplace(name, string, value) { | |
// Find the param with regex | |
// Grab the first character in the returned string (should be ? or &) | |
// Replace our href string with our new value, passing on the name and delimeter | |
var re = new RegExp("[\\?&]" + name + "=([^&#]*)"); | |
var matches = re.exec(string); | |
var newString; | |
if (matches === null) { |
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
// require the file | |
require('./gulp_tasks/watch'); | |
// Call the new task in Laravel Elixir file | |
elixir(function(mix)) { | |
mix.watch(); | |
}); |
OlderNewer