Skip to content

Instantly share code, notes, and snippets.

View franciscopreller's full-sized avatar

Francisco Preller franciscopreller

  • Sydney, Australia
View GitHub Profile
@franciscopreller
franciscopreller / gist:7e7d9cc74a8de0f3cf17
Created June 2, 2014 11:27
Sample gulpfile for a laravel project
/*****
* Dependencies
*****************/
var gulp = require('gulp'),
sass = require('gulp-sass'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
imagemin = require('gulp-imagemin'),
livereload = require('gulp-livereload');
@franciscopreller
franciscopreller / gist:8427264
Last active April 15, 2019 15:07
AngularJS authentication service which communications with an AspNet Identity Back End running Web API 2.
'use strict';
angular.module('ngApp')
.factory('AuthenticationService', ['$rootScope', '$cookieStore', 'Restangular', '$http', '$q', '$location',
function ($rootScope, $cookieStore, Restangular, $http, $q, $location) {
var UserModel = {
// Set default user state