This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongoose = require('mongoose') | |
Schema = mongoose.Schema | |
assert = require('assert') | |
console.log '\n===========' | |
console.log ' mongoose version: %s', mongoose.version | |
console.log '========\n\n' | |
dbname = 'testing_geojsonPoint3' | |
mongoose.connect 'localhost', dbname | |
mongoose.connection.on 'error', -> | |
console.error 'connection error', arguments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# An example hook script to prepare a packed repository for use over | |
# dumb transports. | |
# | |
# To enable this hook, rename this file to "post-update". | |
# | |
# ie: git push default_test MyNewBranch | |
# $1 would equal refs/heads/MyNewBranch | |
# and $branch = MyNewBranch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// marginal support of endless scrolling | |
.scrollable-container { | |
max-height: 500px; | |
overflow-y: scroll; | |
} | |
.scrollable-inner { | |
max-height:100%; | |
} | |
@media all and (min-width: 1023px) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#AMD MODULE | |
define ["msgbus", "apps/lp/list/views", "controller/_base" ], (msgBus, Views, AppController) -> | |
class Controller extends AppController | |
initialize:-> | |
@lpEntities = msgBus.reqres.request "lp:entities" | |
heatmaps = msgBus.reqres.request "lpheatmap:entities" | |
@layout = @getLayoutView() | |
@listenTo @layout, "show", => | |
@heatMapRegion heatmaps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#AMD MODULE | |
define ['apps/lp/list/templates', 'views/_base', 'moment', 'nprogress', 'calheatmap'], (Templates, AppViews, Moment, NP, CalHeatMap) -> | |
class LPItem extends AppViews.ItemView | |
template: _.template(Templates.lpItem) | |
className: "well" | |
ui: | |
li: "li" | |
onShow: -> | |
@ui.li.tooltip() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongoose = require "mongoose" | |
Busboy = require "busboy" | |
secrets = require "../config/secrets" | |
GridStream = require "gridfs-stream" | |
Files = require "../models/files" | |
sharp = require "sharp" | |
async = require "async" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#AMD MODULE | |
define ["entities/_backbone", "msgbus", "moment"], (_Backbone, msgBus, moment) -> | |
#LP==loan processing model | |
class LP extends _Backbone.Model | |
defaults: | |
"SAPCML": null | |
"TradeID": null | |
"Savedate": null | |
"ChangeOutstanding": 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# express file upload controller | |
#Mongoose configuration. | |
mongoose = require "mongoose" | |
Busboy = require "busboy" | |
secrets = require "../config/secrets" | |
GridStream = require "gridfs-stream" | |
Files = require "../models/files" | |
sharp = require "sharp" | |
async = require "async" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp = require 'gulp' | |
gutil = require 'gulp-util' | |
coffee = require 'gulp-coffee' | |
coffeelint = require 'gulp-coffeelint' | |
less = require 'gulp-less' | |
clean = require 'gulp-clean' | |
uglify = require 'gulp-uglify' | |
runSequence = require 'run-sequence' | |
concat = require 'gulp-concat' | |
minifyCSS = require 'gulp-minify-css' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (app, config, mongoose, nodemailer) -> | |
crypto = require("crypto") | |
Status = new mongoose.Schema( | |
name: | |
first: | |
type: String | |
last: | |
type: String |
NewerOlder