Skip to content

Instantly share code, notes, and snippets.

OPTIONS http://api.lelylan.com/devices/50c61ff1d033a9b610000001 411 (Length Required)
// Testacular configuration
// base path, that will be used to resolve files and exclude
basePath = '';
// list of files / patterns to load in the browser
files = [
JASMINE,
JASMINE_ADAPTER,
// Testacular configuration
files = [
'test/e2e/**/*.js'
];
autoWatch = true;
browsers = ['Chrome'];
@andreareginato
andreareginato / app.js
Created April 15, 2013 10:48
Express static server for angular apps
var express = require("express");
var app = express();
app.configure(function(){
app.use(express.static(__dirname + '/dist'));
});
app.all('/*', function(req, res) {
res.sendfile('index.html', { root: __dirname + '/dist' });
});
{
"name": "types-dashboard",
"version": "0.1.0",
"author": {
"name": "Andrea Reginato"
},
"dependencies": {
},
"devDependencies": {
"grunt": "~0.4.1",
{
"name": "types-dashboard",
"version": "0.1.0",
"author": {
"name": "Andrea Reginato"
},
"dependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.0",
"grunt-contrib-concat": "~0.1.3",
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
<!DOCTYPE html>
<html ng-app="app">
<head>
<meta charset="utf-8">
<title>Lelylan</title>
<link rel="stylesheet" href="styles/main.css">
</head>
<body>
<!-- build:js type-component-ng.js -->
@andreareginato
andreareginato / .test.js
Last active December 17, 2015 10:18
node .test.js
/* * * * * * * * * * * * * * * * * * *
* Example file to live test the API *
* *
* > node .test.js *
* *
* * * * * * * * * * * * * * * * * * */
/*
* Set a valid access token
@andreareginato
andreareginato / .test.rb
Last active December 17, 2015 10:18
ruby -I lib/ .test.rb
# * * * * * * * * * * * * * * * * * * #
# Example file to live test the API #
# #
# > ruby -I lib/ .test.rb #
# #
# * * * * * * * * * * * * * * * * * * #
#
# Set a valid access token