Skip to content

Instantly share code, notes, and snippets.

Codey Whitt SinisterMinister

  • VisualGuruz
  • Remote
Block or report user

Report or block SinisterMinister

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View helpers.sh
#################################
# 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 Jun 22, 2016
Chicken Carbonara Recipe
View chicken-carbonara.md

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 Dec 5, 2015
Redesign notes for Intalgio
View redesign.md

Intaglio Redesign

Concepts

Make Fewer Assumptions on Data

One mistake we made with the prior veri

View es_v3.js
{
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());
});
View elevator_saga.js
{
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 Aug 29, 2015
My Backpacking List
View backpack.md

My Backpacking Item List

  • Backpack
  • Day bag
  • Water Reservior
  • Compass
  • Map
  • Sunscreen
  • Rain jacket
  • Head lamp - $60
View intaglio.js
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({
View gist:10034655
#!/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:
View gist:8699907
Kumo.AppsNewApplicationRoute = Ember.Route.extend({
setupController: function (controller) {
// Doesn't work
controller.set({
model: controller.get('controllers.appsNewIndex.model'),
projects: controller.get('controllers.appsNewIndex.projects')
});
// Works fine
controller.set('model', controller.get('controllers.appsNewIndex.model')).set('projects', controller.get('controllers.appsNewIndex.projects'));
View hotpotato.js
/**
* Decorates the model with a new method that has access to original methods
* @param model
* @param name
* @param method
*/
function decorateModel (model, name, method) {
var originalMethod = model[name],
decorator = function () {
var returnVal;
You can’t perform that action at this time.