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 base_path = __dirname.replace('resources/node', ''); | |
require('dotenv').config({ | |
path: base_path + '.env' | |
}); | |
var env = process.env; | |
/* Illuminate\Auth\SessionGuard@getName */ | |
var loginSHA1 = 'login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d'; |
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
<?php | |
$listOfTimeZones = [ | |
'Africa'=> [ | |
'Africa/Algiers'=>'Algeria (+01:00)', | |
'Africa/Gaborone'=>'Botswana (+02:00)', | |
'Africa/Douala'=>'Cameroon (+01:00)', | |
'Africa/Bangui'=>'Central African Republic (+01:00)', | |
'Africa/Ndjamena'=>'Chad (+01:00)', | |
'Africa/Kinshasa'=>'Democratic Republic of the Congo (+01:00)', |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
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
app.config(function($compileProvider) { | |
if (!location.host.match(/localhost/)) { | |
$compileProvider.debugInfoEnabled(false); | |
} | |
}) |
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
app.directive('datepickerLocaldate', [function () { | |
var directive = { | |
require: 'ngModel', | |
link: link | |
}; | |
return directive; | |
function link(scope, element, attr, ngModel) { | |
var converted = false; | |
scope.$watch( |
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
#!/bin/sh | |
# Laravel 5 new project setup bash script. | |
# Inspired by Mitchell van Wijngaarden | |
# Extended by John in 't Hout | |
projectname=$1 | |
git clone -o laravel -b develop https://github.com/laravel/laravel.git ${projectname} >/dev/null | |
cd ${projectname} | |
git checkout --orphan master |
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
app.directive('datepickerLocaldate', ['$parse', function ($parse) { | |
var directive = { | |
restrict: 'A', | |
require: ['ngModel'], | |
link: link | |
}; | |
return directive; | |
function link(scope, element, attr, ctrls) { | |
var ngModelController = ctrls[0]; |
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
#!/usr/bin/env runhaskell | |
-- Filter that adds the metadata block as h1, h2, h3 (title, author, date). | |
-- | |
-- Usage:: | |
-- chmod +x ./chapter.hs | |
-- | |
-- # (where each chapter is in its own md file and I want to compile them | |
-- # into one document preserving the title/author/date for each chapter): | |
-- | |
-- for f in Chapter*.md; do \ |
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
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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
#!/usr/bin/env bash | |
set -e | |
# function to easily determine if a set of programs and files are available. | |
function deploy_programs_available { | |
local programs=(npm bower grunt) | |
local files=(package.json bower.json Gruntfile.js) | |
for p in ${programs[@]}; do |