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"}
@SinisterMinister
SinisterMinister / q.md
Last active November 12, 2018 06:33
JS Interview questions

Javascript Interview Questions

General interview questions for a front-end JS developer.

Questions

  • What is the spec Javascript implements and what versions of it are you most current with?

  • Does JavaScript support the use of classes?

#################################
# 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: | |

/**
* 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;
var _ = require('underscore');
var EmberWrapper = Intaglio.wrappers.abstract.extend({
init: function (object) {
this._object = object;
},
unknownProperty: function (key) {
return this._object.get(key);
},
var _ = require('underscore');
Kumo.AppsAppController = Ember.ObjectController.extend({
branches: null,
_refreshContainer: null,
_active: false,
init: function () {
var self = this;
Kumo.AppsNewController = Ember.ObjectController.extend(Ember.PromiseProxyMixin, {
projects: null,
selectedProject: null,
repositories: null,
repositoriesGetter: function () {
var self = this;
return ORM.factory('repository').where('projectId').isEqual(this.get('selectedProject.id')).findAll().then(function (data) {
self.set('repositories', data);
var Kumo = require('./../../kumo');
Kumo.AppsNewRoute = Ember.Route.extend({
model: function () {
var self = this;
return Em.RSVP.hash({
projects: ORM.factory('project').orderBy('name').findAll(),
application: ORM.factory('application').create()
});
},