# change mirror to ubuntu.osuosl.org first
sudo apt-get update
sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
var swipeFunc = { | |
touches : { | |
"touchstart": {"x":-1, "y":-1}, | |
"touchmove" : {"x":-1, "y":-1}, | |
"touchend" : false, | |
"direction" : "undetermined" | |
}, | |
touchHandler: function(event) { | |
var touch; | |
if (typeof event !== 'undefined'){ |
@function em($target, $context: $base-font-size) { | |
@if $target == 0 { @return 0 } | |
@return $target / $context + 0em; | |
} | |
$base-font-size: 15px; | |
h1 { | |
font-size: em(21px, 15px); // Outputs 1.4em | |
} |
#import('dart:html'); | |
class SVGSamples { | |
void run() { | |
drawlines(); | |
} | |
void drawlines() { | |
final int maxY = 250; |
[ | |
{ | |
"hex": "#EFDECD", | |
"name": "Almond", | |
"rgb": "(239, 222, 205)" | |
}, | |
{ | |
"hex": "#CD9575", | |
"name": "Antique Brass", | |
"rgb": "(205, 149, 117)" |
/* | |
Dart code sample : Simple tool for HTTP server development | |
Returns contents of the HTTP request to the client | |
1. Save these files into a folder named DumpHttpRequest. | |
2. From Dart editor, File > Open Folder and select this DumpHttpRequest folder. | |
3. Run DumpHttpRequest.dart as server. | |
4. Access the DumpHttpRequest.html file from your browser such as : file:///C:/ … /DumpHttpRequest/DumpHttpRequest.html | |
5. Enter some text to the text areas and click “Submit using POST” or “Submit using GET” button. | |
6. This server will return available data from the request. This data is also available on the Dart editor’s console. | |
Ref: www.cresc.co.jp/tech/java/Google_Dart/DartLanguageGuide.pdf (in Japanese) |
Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.
var migrate = require('migrate') | |
, join = require('path').join | |
, fs = require('fs'); | |
module.exports = function(compound) { | |
var app = compound.app; | |
var options = {args: []}; | |
/** | |
* Migration template. |