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
| 'use strict'; | |
| var app = module.exports = require('express')(), | |
| request = require('request'), | |
| session = require('../../../lib/session'), | |
| zip = require('../../../lib/zip'), | |
| archiver = require('archiver'), | |
| settingsManager = require('../../lib/settings'), | |
| fs = require('fs'); |
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
| 'use strict'; | |
| // dependencies | |
| var express = require('express'), | |
| app = module.exports = express(), | |
| request = require('request'), | |
| session = require('../../../lib/session'), | |
| zip = require('../../../lib/zip'), | |
| archiver = require('archiver'), | |
| fs = require('fs'), |
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
| 'use strict'; | |
| // dependencies | |
| var zipstream = require('zipstream'); | |
| var fs = require('fs'); | |
| var util = require('util'); | |
| var _ = require('lodash'); | |
| var async = require('async'); | |
| var __bind = function (fn, me) { | |
| return function () { |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.berkshelf.enabled = true #uncomment to install recipes from Berkshelf-file | |
| # install debian | |
| config.vm.box = "debian7.2-zipper" |
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
| fs.lstat(path, function (err, stats) { | |
| if (err) { | |
| // move it into separate util class which provide recursive creation | |
| fs.mkdir(path); | |
| } | |
| var filePath = util.format('%s/%s', path, urlParser.basename(testFile)); | |
| var fileWriteStream = fs.createWriteStream(filePath); | |
| var response = request.get(testFile) |
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
| 'use strict'; | |
| var util = require('util'); | |
| /** | |
| * @constructor | |
| */ | |
| function KernelAwareError(message, options, err) { | |
| if (err) { | |
| this._extend(message, options, err); |
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
| upstream zipper { | |
| server 127.0.0.1:3000; | |
| } | |
| server { | |
| listen 80; | |
| server_name ~^([\w-]+)?\.([\w-]+)\.zipper\.dev$; | |
| access_log /var/log/nginx/zipper-access.log; | |
| error_log /var/log/nginx/zipper-error.log; |
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
| 'use strict'; | |
| var express = require('express'); | |
| var config = require('./config'); | |
| var logger = require('./middleware/logger'); | |
| var api = require('./api'); | |
| // init express | |
| var app = module.exports = express(); |
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
| 'use strict'; | |
| var appConfig = require('../../config'); | |
| var constants = require('../../lib/constants'); | |
| var log4js = require('log4js'); | |
| function Logger(config) { | |
| this.config = config; | |
| } |
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
| 'use strict'; | |
| angular.module('TumitakApp') | |
| /** | |
| * Main App controller | |
| */ | |
| .controller('AppCtrl', | |
| ['$scope', '$filter', '_', 'AppSettingManager', '$rootScope', 'moment', '$state', '$timeout', 'EventManager', function ($scope, $filter, _, AppSettingManager, $rootScope, moment, $state, $timeout, EventManager) { | |
| AppSettingManager.all().then(function (response) { | |
| $scope.app = response.data; |