- Create folder
~/yourapp
- Create folder
~/yourapp/tmp
- Create file
~/yourapp/config.ru
with the following content:
# encoding: UTF-8
require './appmain'
sts = require('../stsplatform'); | |
// Create a Client. | |
var client = new sts.Client(); | |
// Create a sensor object, referencing the client/ | |
var sensor = new sts.Sensors(client, 'calderonroberto.demo'); | |
// Get the sensor information (print the response code) | |
sensor.get(null, function(error,response){ |
"""An example of how to perform a multi-threaded unit test of a web service. | |
The particulars of this example make use of some conventions used when | |
developing a web service when using the Flask microframework, but can be | |
modified to fit most needs. | |
""" | |
import json | |
import threading | |
import time |
jQuery(function($) { | |
$('form[data-async]').live('submit', function(event) { | |
var $form = $(this); | |
var $target = $($form.attr('data-target')); | |
$.ajax({ | |
type: $form.attr('method'), | |
url: $form.attr('action'), | |
data: $form.serialize(), |