This is a little trick to turn an executable Java jar.
It works on all unixy like systems including Linux, MacOS, Cygwin, and Windows Linux subsystem.
$ ls
hello.jar
import com.sun.net.httpserver.HttpServer | |
import java.io.PrintWriter | |
import java.net.InetSocketAddress | |
/** | |
* Minimal embedded HTTP server in Kotlin using Java built in HttpServer | |
*/ | |
fun main(args: Array<String>) { | |
HttpServer.create(InetSocketAddress(8080), 0).apply { |
https://www.sparkfun.com/products/8688 | |
http://bildr.org/2011/06/temt6000_arduino/ | |
http://playground.arduino.cc/Interfacing/LinuxTTY | |
http://websocketd.com/ | |
http://smoothiecharts.org/ | |
-- sensor |
license: gpl-3.0 |
#!/bin/bash | |
# Alternative to "go get" that grabs Go packages based on a fixed version. | |
# Use this to ensure consistent and repeatable builds. | |
# | |
# While there are other tools out there that do this, this is really just | |
# a very small shell script so painless to work into your existing workflow. | |
# | |
# Usage: | |
# |
Moved this post to Medium. It's easier on the eye.
MODULES := ./node_modules | |
BIN := $(MODULES)/.bin | |
.PHONY: install_modules all clean | |
all: install_modules filtrex.js filtrex.min.js | |
clean: | |
rm -f filtrex.js | |
rm -f filtrex.min.js |
// Let's look at a snippet from a React example here: http://facebook.github.io/react/ | |
// ----------------------------- | |
// This is how you build the React virtual DOM with plain JavaScript. | |
return ( | |
React.DOM.div(null, | |
React.DOM.h3(null, "TODO"), | |
TodoList({items:this.state.items}), | |
React.DOM.form({onSubmit:this.handleSubmit}, |
I hereby claim:
To claim this, I am signing this object:
"{{foo bar.baz.bam}}" | |
OPEN ID(foo) ID(bar) SEP ID(baz) SEP ID(bam) CLOSE | |
root | |
TemplateNode(statements) | |
TemplateNode([statement]) | |
TemplateNode([expression]) | |
TemplateNode([ExpressionNode(expression_contents)]) | |
TemplateNode([ExpressionNode(path param* hash?)]) | |
TemplateNode([ExpressionNode(IdNode.build(path_segments) param*)]) | |
TemplateNode([ExpressionNode(IdNode.build(id) param*)]) |