Skip to content

Instantly share code, notes, and snippets.

View yargalot's full-sized avatar

Steven Miller yargalot

  • Everlab
  • Melbourne
View GitHub Profile
@yargalot
yargalot / gist:3bd3a621b90316f15708
Created March 31, 2015 01:00
Grunt-contrib-connect working with proxy-middleware cause grunt-connect-proxy is shit
var url = require('url');
var proxy = require('proxy-middleware');
module.exports.tasks = {
connect: {
options: {
port: 9001,
hostname: 'localhost',
base: '<%= location.frontEnd %>/dist',
livereload: true
@yargalot
yargalot / gist:6418427
Created September 3, 2013 00:24
Angular Display Service
/* Display Services */
angular.module('Display.services', [ 'ngResource' ])
.factory('ResolutionService', ['$window', '$rootScope', function(win, rootScope) {
// Init Object
var displayOptions = {};
// Resolution breakpoints
displayOptions.tinyScreen = 480;