This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Action<string,string,string,string> sendData_Raw = | |
(app,token, area, data)=> | |
{ | |
ThreadPool.QueueUserWorkItem((o)=> | |
{ | |
var url = "https://{0}.firebaseio.com/{1}.json?auth={2}".format(app, area, token); | |
var now = DateTime.Now.ToShortTimeString(); // DateTime.Now. TimeOfDay; | |
var postData = "\"{0}: {1}\"".format(now, data.replace("\"", "'")); | |
url.POST(postData); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h5>Current messages:</h5> | |
<table class="table table-striped"> | |
<thead> | |
<tr> | |
<th>message</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr ng-repeat="message in messages" > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.nio.file.*; | |
import com.sun.nio.file.* | |
import java.nio.file.attribute.*; | |
def editorTitle = "index.html" | |
def refreshBrowser = { path -> | |
eclipse.log("Opening browser with: " + path); | |
def view = eclipse.views.create("Synced WebBrowser"); | |
if (view.controls().size() == 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var msgSent = 1; | |
var errors = 0; | |
Action<string,string,string,string> sendMessage = | |
(app,token, area, message)=> | |
{ | |
ThreadPool.QueueUserWorkItem((o)=> | |
{ | |
var url = "https://{0}.firebaseio.com/{1}.json?auth={2}".format(app, area, token); | |
var now = DateTime.Now. TimeOfDay; //DateTime.Now.ToShortTimeString(); | |
var data = "\"[{0}] {1}\"".format(now, message.replace("\"", "'")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eclipse.views.create("Karma Runner") | |
.clear() | |
.add.browser() | |
.open("http://localhost:9879/__karma/") | |
eclipse.views.create("Website") | |
.clear() | |
.add.browser() | |
.open("http://localhost:9879/index.html") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8" > | |
<title>WebSocket Test></title> | |
<script language="javascript" type="text/javascript"> | |
var wsUri = "ws://echo.websocket.org/"; | |
var output; |
NewerOlder