After you have downloaded and installed node-webkit,
create a directory on your hard-drive named myapp
.
Place all files of this gist inside the created directory:
- myapp/
- app.js
- index.html
angular.module('phonecatFilters', []) | |
.filter('checkmark', function() { | |
return function(input) { | |
return input ? '\u2713' : '\u2718'; | |
}; | |
}) | |
.filter('foobar', function() { | |
return function(input) { | |
return 'foobar'; | |
}; |
// See http://flatuicolors.com/ | |
$alizarin = #e74c3c | |
$amethyst = #9b59b6 | |
$asbestos = #7f8c8d | |
$belize-hole = #2980b9 | |
$carrot = #e67e22 | |
$clouds = #ecf0f1 | |
$concrete = #95a5a6 | |
$emerald = #2ecc71 | |
$green-sea = #16a085 |
"use strict"; | |
// Module Dependencies & Initializations | |
var createServer = require("http").createServer; | |
var qs = require("querystring"); | |
var server = createServer(); | |
server.on("request", function onRequest(req, res) { | |
var params = qs.parse(req.url); |
After you have downloaded and installed node-webkit,
create a directory on your hard-drive named myapp
.
Place all files of this gist inside the created directory: