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
| async.parallel( | |
| { | |
| users: function(callback) { | |
| }, | |
| count: function(callback) { | |
| } | |
| }, |
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
| Orkkis: | |
| angular.module('angular-bootstrap-select', []) | |
| .directive('selectpicker', function () { | |
| return { | |
| restrict: 'CA', | |
| require: '?ngModel', | |
| compile: function (tElement, tAttrs, transclude) { | |
| tElement.selectpicker(); | |
| return function (scope, element, attrs, ngModel) { |
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 includeAll = require('sails/node_modules/include-all') | |
| , path = require('path'); | |
| /** | |
| * Gruntfile | |
| * | |
| * By default, the Gruntfile in new Sails projects comes with a `linker` | |
| * task, which will automatically inject client-side scripts, styles, and templates | |
| * from your `assets` folder into specific regions of certain EJS and HTML files | |
| * specified below. This behavior is completely optional, but here for convenience. |
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
| My projectId cookie contains "NaN" and this happens. | |
| var projectId = $cookieStore.get("projectId"); | |
| SyntaxError: Unexpected token N | |
| at Object.parse (native) | |
| at Object.fromJson (http://wunder.sytes.net:1338/bower_components/angular/angular.js:1078:14) | |
| at Object.get (http://wunder.sytes.net:1338/bower_components/angular-cookies/angular-cookies.js:162:34) | |
| at new <anonymous> (http://wunder.sytes.net:1338/js/controllers/BoardController.js:53:46) |
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("TaskBoardServices") | |
| .factory('TaskboardSocketInterceptor', | |
| [ | |
| "$rootScope", "$q", | |
| function($rootScope, $q) { | |
| return { | |
| request: function(config) { | |
| if (config.method == "POST" || config.method == "PUT" || config.method == "DELETE") { |
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
| HeaderController.js: | |
| $sailsSocket | |
| .post("/Sprint", {foo: "bar", bar: "foo") | |
| .success(function(data){ | |
| console.log("success"); | |
| console.log(data); | |
| console.log(foo); | |
| }) | |
| .error(function(data) { |
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
| wunder@wunder-VirtualBox:~$ ps aux | grep sails | |
| wunder 2698 0.4 2.3 1016284 96712 pts/1 Sl+ 18:07 0:24 node /usr/bin/sails lift | |
| wunder 4652 0.0 0.0 12964 936 pts/2 S+ 19:39 0:00 grep --color=auto sails | |
| wunder@wunder-VirtualBox:~$ |
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
| $scope.testFoo = function() { | |
| var foo = { | |
| title: "testi", | |
| dateStart: "2014-01-01", | |
| dateEnd: "2014-02-01", | |
| project: 1, | |
| createdUser: 1, | |
| updatedUser: 1 | |
| }; |
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
| wunder@wunder-VirtualBox:~/projects/test$ npm list | grep connect | |
| npm WARN unmet dependency /home/wunder/projects/test/node_modules/sails-disk/node_modules/waterline-criteria requires lodash@'~2.4.1' but will load | |
| npm WARN unmet dependency undefined, | |
| npm WARN unmet dependency which is version undefined | |
| │ ├── [email protected] | |
| │ ├─┬ [email protected] | |
| │ ├─┬ [email protected] | |
| │ │ ├─┬ [email protected] | |
| │ │ ├─┬ [email protected] | |
| │ │ │ ├── [email protected] |
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('TaskBoardDirectives') | |
| .directive('validationPasswordCheck', | |
| [ | |
| "$http", "$timeout", | |
| function($http, $timeout) { | |
| return { | |
| restrict: 'A', | |
| require: 'ngModel', |