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
--- | |
version: '3.8' | |
services: | |
zookeeper-1: | |
image: confluentinc/cp-zookeeper:5.5.1 | |
ports: | |
- '32181:32181' | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 32181 | |
ZOOKEEPER_TICK_TIME: 2000 |
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
------------------------------------------------------------------- | |
--Hammerspoon config to replace Cinch & Size-up (Microsoft Windows style) window management for free | |
--By Jayden Pearse (spartanatreyu) | |
--Sort of messy, forgive me. Never scripted in lua before | |
------------------------------------------------------------------- | |
------------------------------------------------------------------- | |
--Options, feel free to edit these | |
------------------------------------------------------------------- |
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
doc""" | |
`gen_code` rejigs the standard julia `@generate` macro so that it creates a `code` | |
expression variable that can be extended using the `@code` macro. At the end of | |
the function it automatically outputs the result. | |
""" | |
macro gen_code(f) | |
#make sure this macro precedes a function definition. | |
isa(f, Expr) || error("gen_code macro must precede a function definition") | |
(f.head == :function) || error("gen_code macro must precede a function definition") |
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
# Minimal Dockerfile for downloading and running | |
# generic Linux Julia binaries on Ubuntu 14.04 | |
# Or pick any other distribution and adjust the apt-get lines | |
FROM ubuntu:14.04 | |
MAINTAINER Tony Kelman <tony@kelman.net> | |
RUN apt-get update && \ | |
apt-get install git curl -y && \ | |
mkdir -p /home/user/julia && \ | |
curl -s -L https://status.julialang.org/stable/linux-x86_64 | \ |