View gist:20657c99c0d51ddd82f47f51e14e2b3e
seta r_mode "-1"
seta r_customwidth "1920"
seta r_customheight "1080"
r_swapInterval "1"
View hash-table-skel.js
/**
* Represents a hash table implemented on top of an array where each bucket is
* also an array.
*/
class HashTable {
// Create a new hash table instantiated with the table size, the size of
// the the array
constructor(tableSize) {}
View node.js
class Node {
constructor( value = null, adjacents = [] ) {
this.value = value;
this.adjacents = adjacents;
}
toString ( ) {
return JSON.stringify( this );
}
}
View quotes.txt
If you want to achieve greatness stop asking for permission. ~Anonymous
Things work out best for those who make the best of how things work out. ~John Wooden
To live a creative life, we must lose our fear of being wrong. ~Anonymous
If you are not willing to risk the usual you will have to settle for the ordinary. ~Jim Rohn
Trust because you are willing to accept the risk, not because it's safe or certain. ~Anonymous
Take up one idea. Make that one idea your life - think of it, dream of it, live on that idea. Let the brain, muscles, nerves, every part of your body, be full of that idea, and just leave every other idea alone. This is the way to success. ~Swami Vivekananda
All our dreams can come true if we have the courage to pursue them. ~Walt Disney
Good things come to people who wait, but better things come to those who go out and get them. ~Anonymous
If you do what you always did, you will get what you always got. ~Anonymous
Success is walking from failure to failure with no loss of enthusiasm. ~Winston Chu
View auto-prepend-jira-id-to-git-commit-msg.md

Automatically Prepend a Jira Issue ID to Git Commit Messages

Use a git hook to match a Jira issue ID from the current branch, and prepend it to every commit message

Assuming the current branch contains a Jira issue ID, you can use a git hook script to prepend it to every commit message.

  1. Create an empty commit-msg git hook file, and make it executable. From your project's root directory:

     install -b -m 755 /dev/null .git/hooks/commit-msg
    
  2. Save the following script to the newly-created .git/hooks/commit-msg file:

View small-batch-coldbrew-coffee-recipe.md
View term-dash.md

Terminal Dashboard Notes

A few notes for creating a terminal-based dashboard

Example

function _dash_init () {
    tput civis
}
View query-string.js
/*!
query-string
Parse and stringify URL query strings
https://github.com/sindresorhus/query-string
by Sindre Sorhus
MIT License
*/
(function () {
'use strict';
var queryString = {};
View osbridge-2015-notes.md
View Timer.getTotalTime.js
/**
* Get the total time for the specified timers, counting parallel time only
* once if no timers match the filter, return 0.
* @param {String} filter - 'contains'-filter by name
*/
Timer.getTotalTime = function ( filter ) {
// Sort timers by start time, ascending
var sortedTimers = _.sortBy( Timer.getTimers( filter ), 'startTime' );