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
$ dotnet -v watch | |
Telemetry is: Enabled | |
Running /usr/local/share/dotnet/dotnet exec --depsfile /Users/phausel/.nuget/packages/.tools/Microsoft.DotNet.Watcher.Tools/1.0.0-preview1-final/netcoreapp1.0/Microsoft.DotNet.Watcher.Tools.deps.json --additionalprobingpath /Users/phausel/.nuget/packages /Users/phausel/.nuget/packages/Microsoft.DotNet.Watcher.Tools/1.0.0-preview1-final/lib/netcoreapp1.0/dotnet-watch.dll | |
Process ID: 2013 | |
[DotNetWatcher] info: Running dotnet with the following arguments: run | |
[DotNetWatcher] info: dotnet process id: 2019 | |
Project asp (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing | |
/Users/phausel/workspace/asp/bin/Debug/netcoreapp1.0/asp.dll | |
/Users/phausel/workspace/asp/bin/Debug/netcoreapp1.0/asp.pdb | |
/Users/phausel/workspace/asp/bin/Debug/netcoreapp1.0/asp.deps.json |
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
/** @jsx React.DOM */ | |
/** | |
* Our component structure will look like the following: | |
* - WikiBox | |
* -- AutoCompleteBox | |
* --- AutoComplete | |
*/ | |
// this component renders a single entity coming from wikipedia |
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 sys = require("sys"), | |
my_http = require("http"); | |
my_http.createServer(function(request,response){ | |
sys.puts("yay"); | |
response.writeHeader(200, {"Content-Type": "text/plain"}); | |
response.write("Hello World"); | |
response.end(); | |
}).listen(8080); | |
sys.puts("Server Running on 8080"); |
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 avatar = require("org/glassfish/avatar"); | |
var getTime = function() { | |
var result = new Date(); | |
return { | |
time: result.toISOString(), | |
h: result.getHours(), | |
m: result.getMinutes(), | |
s: result.getSeconds(), | |
d: result.getDate(), |
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> | |
<html> | |
<head> | |
<title>Demo</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"/> | |
</head> | |
<body> | |
<script data-model="rest"> | |
var Server = function() { this.name = ''; }; | |
</script> |
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
//imports excluded for brevity | |
var websocket = new BaseWebSocketHandler() { | |
connectionCount: 1, | |
//note: webbit is single-threaded | |
//you may need to change this to ConcurrentHashMap | |
//if `connections` is accessed from worker threads | |
connections: new HashMap(), | |
onOpen: function (connection) { |
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
<html> | |
<body> | |
<!-- Send text to websocket --> | |
<input id="userInput" type="text"> | |
<button onclick="ws.send(document.getElementById('userInput').value)">Send</button> | |
<h1>Websockets demo</h1> | |
<!-- Results --> |
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
class B { | |
boo: string = "yay!"; | |
foo(): string { | |
return this.boo; | |
} | |
} | |
var b = new B(); | |
console.log(b.foo()); // prints boo | |
var ref = b.foo; |
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 scala.xml._ | |
import java.io._ | |
/** | |
* based on https://gist.github.com/388334 | |
*/ | |
object mvn2sbt { | |
private def printToFile(f: java.io.File)(op: java.io.PrintWriter => Unit) { |
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
package boo { | |
object Iteratee { | |
import Implicits.internal | |
//clientAPI does not take an implicit, so the closest in scope is resolved | |
def clientAPI(): Unit = println(Future.future) | |
} | |
object Future { | |
def future(implicit ex: String): String = ex |
NewerOlder