Skip to content

Instantly share code, notes, and snippets.

View ggrumbley's full-sized avatar

Gary Grumbley ggrumbley

View GitHub Profile
#
# This is a minimalist ZSH theme for use with Prezto. It uses three colors, supports git users, and looks great in a solarized dark terminal.
#
# Authors:
# Gary Grumbley <[email protected]>
#
# Screenshots:
# https://raw.github.com/stumblingrumblin/theme-gary/master/gary_min.png
#
@ggrumbley
ggrumbley / clink.lua
Last active March 15, 2018 18:19
[WINDOWS] My PS1 Theme for Cmder (/cmder/vendor/clink.lua) | Git BASH (~/.config/git/git-prompt.sh) | Mintty theme goes in ~/.mintty/themes
@ggrumbley
ggrumbley / .bashrc
Last active September 26, 2017 17:00
Some useful bash aliases
alias jsS="live-server --port=9000"
alias bs='browser-sync start --server --directory --files "**"'
function jsonS() {
if [ $1 ]; then
json-server --watch $1
else
json-server --watch db.json
fi
}
@ggrumbley
ggrumbley / Update-branch.md
Created September 15, 2017 14:33 — forked from santisbon/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

<head>
</head>
<body>
<button>Click!</button>
<script>
function startGame() {
let counter = 0;
document.querySelector('button').addEventListener('click', () => {
++counter;
<input type="checkbox"
id="checked"
class="cbx hidden"
ng-model="vm.selectedWidget.Settings.ShowLegend"
ng-change="vm.legendVBalueChanged(value)">
<label for="checked" class="lbl"></label>
@ggrumbley
ggrumbley / sql-mongo_comparison.md
Created October 2, 2017 17:03 — forked from aponxi/sql-mongo_comparison.md
MongoDb Cheat Sheets

SQL to MongoDB Mapping Chart

SQL to MongoDB Mapping Chart

In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.

Executables

The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.

@ggrumbley
ggrumbley / gist:3b6d840ba6cf43963ff39e5e922655b4
Created October 3, 2017 17:05 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@ggrumbley
ggrumbley / gist:de52a8d36ec3bfae17eb8cd0297f318e
Created October 3, 2017 17:05 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream

Array<T>

Legend:

  • ✏️ method changes this.
  • 🔒 method does not change this.

Array<T>.prototype.*:

  • concat(...items: Array): T[] 🔒 ES3