This file contains hidden or 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
| var uploader = function(req, res) { | |
| var cntProcessing=0; | |
| var busboy = new Busboy({ headers: req.headers }); | |
| busboy.on('file', function(fieldname, stream, filename, encoding, contentType) { | |
| var pStream = pauseStream(); // use pause stream to have time to open the GridStore | |
| stream.pipe(pStream.pause()); | |
| console.log('POST ' + req.originalUrl + ' File: '+ filename + ' Field: ' + fieldname); |
This file contains hidden or 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 = function (grunt) { | |
| 'use strict'; | |
| // Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| sass: { | |
| build: { | |
| files: [{ | |
| expand: true, |
This file contains hidden or 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
| var BusBoy = require('busboy'), | |
| fs = require('fs'), | |
| path = require('path'); | |
| var RE_MIME = /^(?:multipart\/.+)|(?:application\/x-www-form-urlencoded)$/i; | |
| // options will have limit and uploadDir. | |
| exports = module.exports = function(options){ | |
| return function multipart(req, res, next) { | |
This file contains hidden or 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 = function(grunt) { | |
| // configure the tasks | |
| grunt.initConfig({ | |
| copy: { | |
| build: { | |
| cwd: 'source', | |
| src: [ '**', '!**/*.styl', '!**/*.coffee', '!**/*.jade' ], | |
| dest: 'build', |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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() |
OlderNewer