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
var gulp = require('gulp'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
stylish = require('jshint-stylish'), | |
uglify = require('gulp-uglify'), | |
usemin = require('gulp-usemin'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
concat = require('gulp-concat'), |
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
# GitHub Automation | |
gitAll() { | |
git add . | |
git commit -m "$1" | |
git push | |
} | |
alias git-all=gitAll | |
gitPages() { | |
git checkout gh-pages |
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 build is used for live-reload development purposes. You MUST | |
## mount a volume back to your working directly upon creation. | |
FROM ubuntu:16.04 | |
MAINTAINER Duane Leem <duaneleem@alumni.ggu.edu> | |
## Making a random directory to -v mount the container to later. | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app |
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
REM Forces a Windows PC to reboot automatically. | |
shutdown /r /t 0 |
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
[alias] | |
# Pushes to gh-pages then switches back to master | |
pagespush = "!git add . && git commit -m 'Updated content.' && git push && git checkout gh-pages && git merge master && git push origin gh-pages && git checkout master" | |
# Update local/remote repo; delete gh-pages; and push dist folder to gh-pages. Great for Angular projects. | |
distpush = "!git add . && git commit -m 'Updated content.' && git push && git push origin --delete gh-pages && git subtree push --prefix dist origin gh-pages" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
export class TryCatchExample { | |
mtdExample() { | |
try { | |
for (editIndex = 0; editIndex < partner.objProjects.length; editIndex++) | |
{ | |
if (partner.objProjects[editIndex].id == req.body.projectId) {found = true; break;} | |
} | |
if (!found) | |
{ |
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
/** Class representing a point. */ | |
class Point { | |
/** | |
* Create a point. | |
* @param {number} x - The x value. | |
* @param {number} y - The y value. | |
*/ | |
constructor(x, y) { | |
// ... | |
} |
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
::Make sure registry commands are not disabled or windows is damaged | |
reg /? | |
if errorlevel 1 ( | |
GOTO SYSTEMREPAIR | |
) | |
if errorlevel 0 ( | |
GOTO HI | |
) |
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
var services = '/services/...'; // Update this with your Slack service... | |
var channel = "#aws-deployments" // And this with the Slack channel | |
var https = require('https'); | |
var util = require('util'); | |
var formatFields = function(string) { | |
var | |
message = JSON.parse(string), | |
fields = [], |
OlderNewer