Skip to content

Instantly share code, notes, and snippets.

@kennethlynne
kennethlynne / angular-mock-backend.js
Last active February 19, 2019 10:41
High fidelity prototyping using a mock back-end. Include angular-mocks in your script includes after angular. Demo: http://codepen.io/kennethlynne/pen/lJbce
'use strict';
angular.module('yourApp')
.constant('Config', {
viewDir: 'views/',
API: {
useMocks: true,
fakeDelay: 2000,
protocol: window.location.protocol.split(':')[0],
host: window.location.hostname,
anonymous
anonymous / gist:5097458
Created March 6, 2013 07:42
foscam ip cameras behind nginx
server {
listen 443;
server_name cameras.example.com;
root /web/cameras;
ssl on;
@jrmoran
jrmoran / app.js
Created October 27, 2012 21:58
AngularJS - Charting with Flot
var App = angular.module('App', []);