Skip to content

Instantly share code, notes, and snippets.

View Pajn's full-sized avatar

Emma Pajn

  • Sweden
View GitHub Profile
@Pajn
Pajn / gist:9263f0d1802fe5f9ec1a
Created May 3, 2014 14:34
openshift-cartridge-dart
Name: dart
Cartridge-Short-Name: DART
Display-Name: Dart Cartridge
Description: A dart cartridge
Version: 0.6.3
License: MIT
Vendor: google
Cartridge-Version: 0.0.1
Cartridge-Vendor: filirom1
Categories:
Future<Response> helloPost(HttpRequest request) {
return request.toList().then((List<List<int>> buffer) {
var name = new String.fromCharCodes(buffer.expand((i) => i).toList());
name = name.isNotEmpty ? name : 'World';
return new Response("Hello, $name!");
});
}
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
#px {
width: 37.8px;
height: 37.8px;
background: red;
}
#cm {