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
git clone your-repo tmp && mv tmp/.git . && rm -rf tmp && git reset --hard |
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
_.mixin({ | |
implode: function (glue, collection) { | |
glue = glue || ''; | |
if (!_.isArray(collection)) return false; | |
if (collection.length == 1) return collection[0]; | |
var returnString = ''; |
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(); | |
}); |
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
// 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
$(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
<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
/*! | |
* [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
{ | |
"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", |