This file contains 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
import bb.cascades 1.0 | |
import bb.data 1.0 // don't forget to add "LIBS += -lbbdata" to your .pro file! | |
Page { | |
id: pgDetail | |
actions: [ | |
ActionItem { | |
title: qsTr("Refresh") | |
onTriggered: { |
This file contains 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
sudo apt-get update | |
sudo apt-get install build-essential python-dev | |
sudo apt-get install python-matplotlib | |
sudo apt-get install python-pip | |
sudo pip install ipython-sql | |
sudo pip install --upgrade jinja2 tornado jsonschema pyzmq | |
sudo apt-get install python-mysqldb | |
# let's start ipython notebook | |
ipython notebook --ip=0.0.0.0 # port-forwarding doesn't work without this --ip flag |
This file contains 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
// Docs: http://api.jquery.com/category/ajax/ | |
$.ajax({ | |
type: "GET" | |
, url: "api/locations.php" | |
, dataType: "json" //this can be json, XML, ... | |
, success: function(data){ | |
console.dir(data); | |
, error: function(err){ | |
console.dir(err); |
This file contains 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 stationSchema = new mongoose.Schema({ | |
address: String | |
, available_bike_stands: Number | |
, available_bikes: Number | |
, banking: Boolean | |
, bike_stands: Number | |
, bonus: Boolean | |
, contract_name: String | |
, last_update: Date | |
, name: String |
This file contains 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 express = require('express'); | |
var mongoose = require('mongoose'); | |
var moment = require('moment'); | |
var router = express.Router(); | |
router.get('/', function(req, res, next) { | |
req.db.StationName.find({}, {"name": 1, "number": 1, "_id": 0}, {sort: {"name": 1}}, function(err, names){ | |
if(err){ | |
next(err); | |
}else{ |
This file contains 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
<xsl:template match="row"> | |
<xsl:variable name="radius">130</xsl:variable> | |
<xsl:variable name="width">300</xsl:variable> | |
<xsl:variable name="value_min"><xsl:value-of select="row/@value_min" /></xsl:variable> | |
<xsl:variable name="value_max"><xsl:value-of select="row/@value_max" /></xsl:variable> | |
<xsl:variable name="value_target"><xsl:value-of select="row/@value_target" /></xsl:variable> | |
<xsl:variable name="red_min"><xsl:value-of select="row/@red_min" /></xsl:variable> | |
<xsl:variable name="red_max"><xsl:value-of select="row/@red_max" /></xsl:variable> | |
<xsl:variable name="orange_min"><xsl:value-of select="row/@orange_min" /></xsl:variable> | |
<xsl:variable name="orange_max"><xsl:value-of select="row/@orange_max" /></xsl:variable> |
This file contains 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
Constructor | Airplane | Fuel Consumption Per Hour | |
---|---|---|---|
Majestic | Dash-8 Q400 | 2400 lbs/hr | |
QualityWings | Avro RJ100 | 2200 kg/hr | |
PMDG | Boeing 777-300ER | 7.6 tonnes/hr |