I hereby claim:
- I am quantisan on github.
- I am quantisan (https://keybase.io/quantisan) on keybase.
- I have a public key ASCTfbD8h3Tj6_1bYqRUF9QnMOkuiy3UL0DJFjohnqRlHQo
To claim this, I am signing this object:
| # I had trouble provisioning AlgoVPN to EC2 with the included Docker image. The stdin | |
| # isn't reading my AWS credentials correctly. So I'm running the ansible | |
| # playbook directly to bypass entering the secrets. This is a record of my | |
| # shell commands to get it provisioning an AlgoVPN server. | |
| # First follow the instruction at https://github.com/trailofbits/algo/blob/master/docs/Docker.md | |
| # to setup your config.cfg | |
| # On the host machine, inside the algo repository folder, build the Docker image from source. |
I hereby claim:
To claim this, I am signing this object:
| (def articles | |
| [{:title "3 Langs" :author "boris" :tags #{:java :clojure :haskell}} | |
| {:title "mylangs" :author "rocky" :tags #{:ruby :clojure :haskell}} | |
| {:title "2 Langs" :author "boris" :tags #{:java :haskell}}]) |
| FROM clojure | |
| ADD . /usr/src/app | |
| WORKDIR /usr/src/app | |
| RUN lein deps |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type rectPointer struct { | |
| width int | |
| height int | |
| } |
| ;; https://scott.mn/2014/01/26/first_thoughts_on_liberator_clojure/ | |
| (defn blog-post-resource [request id] | |
| {:authorized? | |
| (fnk [logged-in-user request] | |
| (or logged-in-user | |
| (= (:method request) :get))) | |
| :allowed? | |
| (fnk [logged-in-user author request] |
| (defproject something "0.0.1" | |
| :dependencies [[org.clojure/core.typed.core "0.x"]] ;; with minimal trace | |
| :profiles {:dev {:dependencies [[org.clojure/core.typed "0.x"]]}}) ;; with full |
| 'use strict'; | |
| // Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %> | |
| var gulp = require('gulp'); | |
| var open = require('open'); | |
| var wiredep = require('wiredep').stream; | |
| // Load plugins | |
| var $ = require('gulp-load-plugins')(); |
| (ns etl.field | |
| "Cascalog field name and variable functions." | |
| (:refer-clojure :exclude (replace)) | |
| (:use [clojure.string :only (replace)])) | |
| (defn replace-field [coll match replacement] | |
| (let [idx (.indexOf coll match)] | |
| (assoc coll idx replacement))) | |
| (defn- agg-replace [suffix] |