Skip to content

Instantly share code, notes, and snippets.

View headwinds's full-sized avatar
📈

brandon flowers headwinds

📈
View GitHub Profile
@headwinds
headwinds / gist:7643781
Created November 25, 2013 16:07
a sample from my tutorial on the Marionette CollectionView
// see https://github.com/headwinds/tutorials/tree/master/marionettejs/marionettejs-collection-view
define([
'underscore',
'backbone',
'marionette',
'views/user/UserItemView',
'models/user/UserModel',
'collections/user/UserCollection'
], function(_, Backbone, Marionette, UserItemView, UserModel, UserCollection ) {
@headwinds
headwinds / gist:8015959
Created December 18, 2013 01:37
FileUploadService - Formidable module for nodejs which you can use instead of the integrated version in Express
var formidable = require('formidable'),
http = require('http'),
util = require('util');
var FileUploadService = {};
FileUploadService.purpose = function(){
console.log("\n");
console.log("-----------------------------------------------");
@headwinds
headwinds / RoutesController.js
Last active January 2, 2016 10:29
EventEmitter inheritance - how you can a pass the handle to a module within an Expressjs request and hang onto to its scope so that it will listen and respond to events
/*
this file has been simplified to show only the event pattern
*/
'use strict';
var util = require("util");
var events = require("events");
var _ = require("underscore");
@headwinds
headwinds / GlobalService.js
Last active January 2, 2016 20:29
Global service involving multiple routes - you may wish to get another model beside the main user without using global variables
// this is building on top of the excellent work by
// https://github.com/linnovate/mean/compare/no-window-user
// I simply added error handling and the ability to access multiple routes
'use strict';
//Global service for global variables
angular.module('mean.system').factory("Global", ['$http',
function($http) {
@headwinds
headwinds / .block
Last active April 26, 2016 16:43
Slinky Chained Transitions
license: gpl-3.0
@headwinds
headwinds / .block
Last active October 11, 2018 14:34
Arc Tween Percent Rings
license: gpl-3.0
@headwinds
headwinds / .block
Last active August 18, 2016 18:51
Arc Sentiment Canvas
license: gpl-3.0
@headwinds
headwinds / .block
Last active August 18, 2016 18:49
Arc Sentiment SVG
license: gpl-3.0
@headwinds
headwinds / .block
Last active August 19, 2016 02:29
delete me
license: gpl-3.0