Skip to content

Instantly share code, notes, and snippets.

View jackp's full-sized avatar

Jack Parker jackp

  • Cuenca, Ecuador
View GitHub Profile
@jackp
jackp / index.md
Created April 19, 2018 17:14
Mockup list
  • DPA-5500 - Video validation (alert message, no mockup needed)
  • 5504 - Video storage full (alert message, no mockup needed)
  • 6222 - Biometrics (alert message, no mockup needed)
  • 5113 - Data retention (fill existing fields, no mockup needed)
  • 8714 - Don't show mutual (absence of an item, no mockup needed)
  • 9011 - FNOL call back time (form field, already implemented, no mockup needed)
  • 7025 - Only active policies (filter data, no mockup needed)
  • 6538 - FNOL current location (already has design)
  • 5872 - Payment amount validation (form validation, no mockup needed)
  • 5188 - Login (already completed)
var SQD = new SquadLocker({
partnerId: 7,
...,
onStoreInit: function(store) {
// If store is inactive:
store === { state: 'inactive' };
// If store is active:
store === {
id: 1,
@jackp
jackp / Gulpfile.js
Last active August 29, 2015 14:01
gulpfile
'use strict';
var gulp = require('gulp');
// load plugins
var $ = require('gulp-load-plugins')();
gulp.task('connect', function () {
var connect = require('connect');
var app = connect()
'use strict'
angular.module('taleitApp')
.factory 'ImageService', ($q, $timeout, $http, Restangular) ->
# Service logic
# ...
baseImage = Restangular.all('image')
# Create XHR Request
// Get list of all bus-stop routes from JSON
$.getJSON('cached_busroutes.json', function(routes){
// Get bus stops for Bedford Lane
var allBusStops = routes["bedford"]["lane"];
// NOTE: Assuming underscore is available
_.each(allBusStops, function(busStop){
// Declare the map, centering at desired location
@jackp
jackp / gist:6796006
Created October 2, 2013 15:58
Nodejitsu error
error: Errors occured while starting the application
error: Error returned from Nodejitsu:
error: Error: No servers available
error: at checkFree (/root/nodejitsu/lib/nodejitsu/resources/app/controller.js:655:23)
error: at AppController._provision (/root/nodejitsu/lib/nodejitsu/resources/app/controller.js:309:14)
error: at Servers.provision (/root/nodejitsu/node_modules/conservatory-api/lib/client/servers.js:58:5)
error: at Request.onComplete [as _callback] (/root/nodejitsu/node_modules/conservatory-api/lib/client/client.js:161:7)
error: at Request.init.self.callback (/root/nodejitsu/node_modules/conservatory-api/node_modules/request/main.js:127:22)
error: at Request.EventEmitter.emit (events.js:99:17)
error: at Request.<anonymous> (/root/nodejitsu/node_modules/conservatory-api/node_modules/request/main.js:767:16)
@jackp
jackp / gist:4526265
Created January 13, 2013 21:20
Nodejitsu fibers install error
error Sun, 13 Jan 2013 21:19:10 GMT Error: `/opt/haibu/apps/parkej3/TaleIt/package/node_modules/fibers/bin/sunos-x64-v8-3.11/fibers.node` is missing. Try reinstalling `node-fibers`?
at Object. (/opt/haibu/apps/parkej3/TaleIt/package/node_modules/fibers/fibers.js:13:8)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/opt/haibu/apps/parkej3/TaleIt/package/server/server.js:3:1)
@jackp
jackp / gist:4526217
Created January 13, 2013 21:06
Nodejitsu deploy error
data:
data: {
data: dependencies: { fibers: '>=0.6.9' },
data: version: '0.1.0-1',
data: name: 'TaleIt',
data: scripts: { start: 'main.js' },
data: engines: { npm: '1.1.x', node: '0.8.x' },
data: subdomain: 'parkej3.taleit'
data: }
data:
Template.story.story = function() {
var story = Stories.findOne({_id: Session.get('story_id')});
story.date = dateFormat(story.date);
return story;
};
@jackp
jackp / gist:2662804
Created May 11, 2012 22:27
Fibers Install Error
[admin@0a9006c5-8dc0-48a0-add9-4f48bbb8d13b /var/www/node_modules]$ sudo npm -g install fibers
npm http GET https://registry.npmjs.org/fibers
npm http 304 https://registry.npmjs.org/fibers
npm http GET https://registry.npmjs.org/node-gyp
npm http 304 https://registry.npmjs.org/node-gyp
npm http GET https://registry.npmjs.org/ansi
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/mkdirp/0.3.0