Skip to content

Instantly share code, notes, and snippets.

View SinisterMinister's full-sized avatar

Codey Whitt SinisterMinister

  • VisualGuruz
  • Remote
View GitHub Profile
@SinisterMinister
SinisterMinister / cloudSettings
Last active June 3, 2020 20:49
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-03T20:49:48.150Z","extensionVersion":"v3.4.3"}
@SinisterMinister
SinisterMinister / cloudSettings
Last active June 3, 2020 17:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-03T17:56:23.661Z","extensionVersion":"v3.4.3"}
#################################
# Functions #
#################################
function aws {
/usr/local/bin/aws "$@" | ppj
}
function ppj {
pygmentize -f terminal256 -l json -O style=monokai
@SinisterMinister
SinisterMinister / chicken-carbonara.md
Last active June 22, 2016 05:15
Chicken Carbonara Recipe

Chicken Carbonara Recipe

Makes 5 servings @ 900 calories or 6 servings @ 775 calories

Delicious chicken carbonara that's super simple to make.

Nutritional Information for 5 servings

|Nutritional Info: | |

@SinisterMinister
SinisterMinister / redesign.md
Created December 5, 2015 23:57
Redesign notes for Intalgio

Intaglio Redesign

Concepts

Make Fewer Assumptions on Data

One mistake we made with the prior veri

{
init: function (elevators, floors) {
var DS = this.api.instances.DispatchServiceInstance = new this.api.services.DispatchService(this.api, floors),
ES = this.api.instances.ElevatorServiceInstance = new this.api.services.ElevatorService(this.api, elevators);
DS.on("new_task", function () {
console.info("New task", this);
// if (ES.idleElevatorsAvailable())
// ES.processTask(DS.nextTask());
});
{
init: function(elevators, floors) {
var queue = [],
self = this;
for (var i = floors.length - 1; i >= 0; i--) {
floors[i].on("up_button_pressed", self.api.handlers.onUpButton);
floors[i].on("down_button_pressed", self.api.handlers.onDownButton);
floors[i].api = self.api;
@SinisterMinister
SinisterMinister / backpack.md
Last active August 29, 2015 14:24
My Backpacking List

My Backpacking Item List

  • Backpack
  • Day bag
  • Water Reservior
  • Compass
  • Map
  • Sunscreen
  • Rain jacket
  • Head lamp - $60
var Intaglio = require('intaglio'),
repository = new Intaglio.repositories.mysql({
host: 'localhost',
database: 'database',
user: 'username',
password: 'password'
});
Intaglio.ORM.create(repository).then(function (ORM) {
ORM.factory('user').create({
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE: