First, a few dependencies:
- Leiningen: https://leiningen.org/
- Node.js & NPM: https://nodejs.org/
- Serverless: https://serverless.com/
- An active AWS account: https://aws.amazon.com/
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDqGiNI0Co9JAKytfce4UVhEJj+HMaoZ7TFiLg8SBeRDxV+OLma9rqDVkVqrxW5rkGMco3/Xhm/uGu+rkODJD/aZD/1fpzEsNUQIKhP9VXlVx98CMYOMCXTrgXZGdNPs0CzIb0TDI3W1tOGAA0VOZL+DGb/pUFiWeADLA9GiA8qnhahQp6yCNf8zpt3ATawSOGDLttB+PQPvwwUGMozihCcn84Kbf2Q0aQEl5J0kPLQTgBTJ1pPjTqBmkBWhP1KKAEDz3ziUmFF2eoZax7B+VXYlI6nPeETqFWkke6/EVLRqOXC4nYXKUbX2HloiEGkv4ifzzuGyS2Tdiysx0dthVcv cardno:000608624146 |
#!/usr/bin/env bash | |
while [ $# -gt 0 ]; do | |
jq -nc --arg k "$1" --arg v "$2" '{($k): (try ($v|fromjson) catch $v)}' | |
shift; shift | |
done | jq -sc add |
# you need to set ZT6PLANE to match your network | |
version: '2.3' | |
networks: | |
zerotier: | |
driver: bridge | |
enable_ipv6: true | |
internal: false | |
ipam: |
First, a few dependencies:
#!/usr/bin/env bash | |
# from http://hipersayanx.blogspot.com/2012/12/object-oriented-programming-in-bash.html | |
function Vector { | |
# A pointer to this Class. (2) | |
local base=$FUNCNAME | |
local this=$1 | |
# Inherited classes (optional). (3) |
ClojureScript master now has cljs.core/eval
. This delegates to cljs.core/*eval*
which, by default throws, but you can bind it to any implementation that can compile and evaluate ClojureScript forms.
If you require the cljs.js
namespace (which is the main support namespace for self-hosted ClojureScript), then cljs.core/*eval*
is set to an implementation that uses self-hosted ClojureScript for this capability. This means that all self-hosted ClojureScript environments will now have a first-class eval
implementation that just works. For example, Planck master:
$ planck -q
cljs.user=> (eval '(+ 2 3))
5
$ clj -m cljs.main -re graaljs -r | |
Cloning: https://github.com/clojure/clojurescript | |
Checking out: https://github.com/clojure/clojurescript at 04e6bd9073daa905543d7decab95a2252c2e53e2 | |
cljs.user=> (.eval js/Polyglot "R" "sum(1:100)") | |
5050 | |
cljs.user=> (.eval js/Polyglot "ruby" "(1..100).reduce(:+)") | |
5050 |
InvalidParameterException: When specifying 'host' or 'bridge' for networkMode, values for 'containerName' and 'containerPort' must be specified from the task definition. |