Skip to content

Instantly share code, notes, and snippets.

BEFORE TRIM DOTS ["..","..","..","src","remoteStorage-modules"] require.js:258
AFTER TRIM DOTS ["..","..","..","src","remoteStorage-modules"] require.js:280
BEFORE TRIM DOTS ["..","..","..","src",".","remoteStorage"] require.js:258
AFTER TRIM DOTS ["..","..","..","src",".","remoteStorage"] require.js:280
BEFORE TRIM DOTS ["..","..","..","src",".","modules","root"] require.js:258
AFTER TRIM DOTS ["..","..","..","src",".","modules","root"] require.js:280
BEFORE TRIM DOTS ["..","..","..","src",".","modules","calendar"] require.js:258
AFTER TRIM DOTS ["..","..","..","src",".","modules","calendar"] require.js:280
BEFORE TRIM DOTS ["..","..","..","src",".","modules","contacts"] require.js:258
AFTER TRIM DOTS ["..","..","..","src",".","modules","contacts"] require.js:280
http://pastebin.com/ypk5JucZ
privateClient.delareType('video', {
"description" : "a reference to a place you'd like to return to at some point.",
"type" : "object",
"properties": {
"title": {
"type": "string",
"description": "the title of the place the video points to",
"required": true
}
privateClient.delareType('video', {
"description" : "a reference to a place you'd like to return to at some point.",
"type" : "object",
"properties": {
"title": {
"type": "string",
"description": "the title of the place the video points to",
"required": true
},
diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
index 4c9b90c..faff2dd 100644
--- a/lib/tasks/assets.rake
+++ b/lib/tasks/assets.rake
@@ -16,6 +16,7 @@ begin
require "jsmin"
require "./config/directories"
+
def clean_dir(dir)
var server = require('./server/nodejs-example').server;
// BEFORE EACH TEST
server.resetState();
server.addToken('dummy-token', [':rw']); // gives read-write access on the root path
@nilclass
nilclass / gist:4500881
Created January 10, 2013 09:57
proposal: promises for teste
// WITHOUT PROMISES:
tests: [
{
desc: "My async test",
run: function(env) {
var _this = this;
doSomethingThatReturnsAPromise().
then(
@nilclass
nilclass / gist:5152051
Created March 13, 2013 13:32
This script compares the performance of constructing an object with a bunch of methods from within a function and returning it, versus using a constructor with a prototype and the 'new' keyword.
//
// This script compares the performance of constructing an object
// with a bunch of methods from within a function and returning it,
// versus using a constructor with a prototype and the 'new' keyword.
//
// My results:
//
// node, v0.8.9:
// N = 1000000
@nilclass
nilclass / gist:5269677
Created March 29, 2013 09:04
Combining Ember and remoteStorage.js
var CONNECTED_INDEX_ROUTE = "index";
var CONNECTED_INDEX_ROUTE = "main";
// a function to initialize remoteStorage.js.
// I would call this from the "redirect" hook of each route,
// example see below.
function initializeRemoteStorage(route) {
return remoteStorage.claimAccess({
// <module> : <mode>
#include <math.h>
int offsetX = 514, offsetY = 504;
float minX = -270, maxX = 264;
float minY = -271, maxY = 278;
void setup() {
Serial.begin(9600);
}