Skip to content

Instantly share code, notes, and snippets.

View tarlepp's full-sized avatar
💭
örrr

Tarmo Leppänen tarlepp

💭
örrr
  • Pinja
  • Jyväskylä, Finland
  • 12:27 (UTC +02:00)
View GitHub Profile
async.parallel(
{
users: function(callback) {
},
count: function(callback) {
}
},
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) {
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.
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)
"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") {
HeaderController.js:
$sailsSocket
.post("/Sprint", {foo: "bar", bar: "foo")
.success(function(data){
console.log("success");
console.log(data);
console.log(foo);
})
.error(function(data) {
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:~$
$scope.testFoo = function() {
var foo = {
title: "testi",
dateStart: "2014-01-01",
dateEnd: "2014-02-01",
project: 1,
createdUser: 1,
updatedUser: 1
};
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]
"use strict";
angular.module('TaskBoardDirectives')
.directive('validationPasswordCheck',
[
"$http", "$timeout",
function($http, $timeout) {
return {
restrict: 'A',
require: 'ngModel',