Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
'use strict' | |
@App = Ember.Application.create | |
LOG_TRANSITIONS: true | |
ready: -> | |
console.log "app ready, starting server" | |
@set 'server', App.EventedServer.create | |
url: '192.168.1.101:8888/game' | |
delegateType: App.FixtureWebSocket |
"use strict"; | |
function notifyMessage(message) { | |
return new Promise(function (resolve, reject) { | |
if (Notification.permission === "granted") { | |
var notification = new Notification(message); | |
return resolve(notification); | |
} else if (Notification) { | |
Notification.requestPermission(function (status) { | |
if (Notification.permission !== status) { | |
Notification.permission = status; |
body{ | |
background-color: #2C3E50; | |
} | |
#clock{ | |
display: block; | |
width: 600px; | |
height: 600px; | |
margin: 0 auto; | |
} |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |