Skip to content

Instantly share code, notes, and snippets.

View jasoncastellano's full-sized avatar

Jason Castellano jasoncastellano

  • Virginia Beach, VA
View GitHub Profile
@jasoncastellano
jasoncastellano / nodejs_installer.ps1
Created February 27, 2018 18:45 — forked from nweldev/nodejs_installer.ps1
Powershell script installing nodejs (with git) and some npm packages
write-host "`n ## NODEJS INSTALLER ## `n"
### CONFIGURATION
# nodejs
$version = "4.4.7-x64"
$url = "https://nodejs.org/dist/latest-v4.x/node-v$version.msi"
# git
$git_version = "2.9.2"
@jasoncastellano
jasoncastellano / browsersync.js
Created May 2, 2017 17:44 — forked from tristanisfeld/browsersync.js
Gulp 4 - Multifile tasks w/ external config. Basic gulpfile template for use with multiple task files, using gulp-load-plugins
// =========================================================
// Gulp Task: browsersync
// NOTE: Using gulp v4
// Description: Sync sass, typescript, html, and browser
// using external config or add modify src
// npm install --save-dev browser-sync gulp-typescript gulpjs/gulp.git#4.0 gulp-load-plugins
// Options: node-sass gulp-sass || gulp-ruby-sass
// =========================================================
var config = require('../config.js');
var browserSync = require('browser-sync').create();
@jasoncastellano
jasoncastellano / onBeforePrint.js
Last active March 22, 2017 15:09 — forked from angel-vladov/onBeforePrint.js
AngularJS 1 on before print directive
/**
* AngularJS example directive.
* Allows you to modify the page DOM and CSS styles before printing by exexuting the passed expression.
* Will force a $digest phase before the print operation.
*
* Example: <div ng-class="{printed: isPrinted}" on-before-print="printed = true" />
*/
module.directive('onBeforePrint', ['$window', '$rootScope', '$timeout', function onBeforePrint($window, $rootScope, $timeout) {
var beforePrintDirty = false;
var listeners = [];