Start the server and send a request.
curl localhost:9000/123
The server will print:
/123/123
var USERNAME_WHITELIST = ['chrisinajar', 'ho0ber', 'fractaloop', 'n7-anthony', 'overra', 'tyrel', 'fervens']; | |
module.exports = { | |
findEnemy: findEnemy, | |
run: run | |
}; | |
/* | |
var target = findEnemy(creep); | |
*/ |
// usernames are all lowercase, we compare with to lower | |
var USERNAME_WHITELIST = ['chrisinajar', 'ho0ber', 'fractaloop', 'n7-anthony', 'overra', 'tyrel', 'fervens']; | |
module.exports = { | |
findEnemy: findEnemy | |
}; | |
/* | |
var target = findEnemy(creep); | |
*/ |
Start the server and send a request.
curl localhost:9000/123
The server will print:
/123/123
{ | |
"flow": { | |
"_id": 1001, | |
"name": "Twitter", | |
"stages": [ | |
{ | |
"_id": 2001, | |
"flow_id": 1001, | |
"name": "Reader" | |
}, |
//= require_tree ./templates | |
(function() { | |
App = Em.Application.create({ | |
rootElement: '#flow' | |
}) |
App.store = DS.Store.create({ | |
revision: 4, | |
adapter: DS.RESTAdapter.create({ | |
serializer: DS.Serializer.create({ | |
primaryKey: function(type) { return '_id'; } | |
}), | |
mappings: { | |
'flow': Flow.Flow | |
} | |
}) |
require 'sinatra' | |
require 'thin' | |
class Metaserver < Sinatra::Base | |
set server: 'thin' | |
set connections: [] | |
get '/stream', provides: 'text/event-stream' do | |
stream :keep_open do |out| | |
settings.connections << out |
Rank Currency Code USD Units Per USD | |
1 Platinum (oz.) XPT 1747 0 | |
2 Gold (oz.) XAU 1372.15 0 | |
3 Palladium (oz.) XPD 768 0 | |
4 Silver (oz.) XAG 28.9052 0.03 | |
5 Kuwaiti Dinar KWD 3.5521 0.28 | |
6 Bahraini Dinar BHD 2.6618 0.38 | |
7 Omani Rial OMR 2.6078 0.39 | |
8 Latvian Lats LVL 1.8444 0.54 | |
9 St. Helena Pound SHP 1.5588 0.64 |