Skip to content

Instantly share code, notes, and snippets.

@hmaurer
hmaurer / datomic-erasing-data-migration.clj
Created April 28, 2018 11:43 — forked from vvvvalvalval/datomic-erasing-data-migration.clj
Erasing data from Datomic via a manual data migration
;; # EMULATING DATOMIC EXCISION VIA MANUAL DATA MIGRATION
;; *************************************
;; ## Introduction
;; *************************************
;; This Gist demonstrates a generic way to migrate an entire Datomic database
;; from an existing 'Origin Connection' to a clean 'Destination Connection',
;; while getting rid of some undesirable data and otherwise preserving history.
> boot -d http-kit:2.2.0 -s ./ aot -n hello target
> cd ./target
... copy the clojure standard lib in clojure/
> java hello
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.base/java.lang.Class.forName0(Native Method)
@hmaurer
hmaurer / proxychains.rb
Created June 1, 2018 21:30 — forked from allenhuang/proxychains4_formula.rb
Unofficial brew formula for proxychains 4
# Unofficial brew formula for proxychains 4
# Instruction:
# $ git clone git://gist.github.com/3792521.git gist-3792521
# $ brew install --HEAD gist-3792521/proxychains4_formula.rb
#
# The default config file will be located in /usr/local/etc/proxychains.conf
#
require 'formula'
class Proxychains < Formula
@hmaurer
hmaurer / SketchSystems.spec
Created June 19, 2018 01:17
My Awesome Sketch
My Awesome Sketch
First State
some event -> Second State
Second State
@hmaurer
hmaurer / SketchSystems.spec
Created June 19, 2018 21:27
My Awesome Sketch
My Awesome Sketch
First State
some event -> Second State
Second State
@hmaurer
hmaurer / 0 - data.md
Created August 4, 2018 18:28 — forked from sundarj/0 - data.md
data: towards enlightenment

data

towards enlightenment

‘It is a capital mistake to theorize before one has data. Insensibly one begins to twist facts to suit theories, instead of theories to suit facts.’

name: hello-haskell-serverless
version: 0.1.0.0
github: "githubuser/hello-haskell-serverless"
license: BSD3
author: "Author name here"
maintainer: "[email protected]"
copyright: "2018 Author name here"
extra-source-files:
- README.md
@hmaurer
hmaurer / keys_plus.cljc
Created October 22, 2018 23:55 — forked from favila/keys_plus.cljc
s/keys+, an s/keys variant that allows inline respec-ing of a key to narrow the range of its type
(ns com.breezeehr.specs.keys-plus
"Variants of clojure.spec/keys and keys* that allow additional inline spec-ing."
(:refer-clojure :exclude [keys])
(:require [clojure.core :as c]
[clojure.spec.alpha :as s]
[clojure.spec.gen.alpha :as gen]
[clojure.walk :as walk])
#?(:cljs (:require-macros [com.breezeehr.specs.keys-plus]))
#?(:clj (:import (java.util UUID))))

Haskell, Stack and Intellij IDEA IDE setup tutorial how to get started

Upon completion you will have a sane, productive Haskell environment adhering to best practices.

Basics

  • Haskell is a programming language.
  • Stack is tool for Haskell projects. (similar tools for other languages include Maven, Gradle, npm, RubyGems etc)
  • Intellij IDEA IDE is a popular IDE.

Install required libraries

sudo apt-get install libtinfo-dev libghc-zlib-dev libghc-zlib-bindings-dev

(ns ucv.ui.pos-config.tax-master-detail
(:require
[fulcro-css.css :as css]
[fulcro.client.dom :as dom :refer [div]]
[fulcro.client.mutations :as m]
[fulcro.client.primitives :as prim :refer [defsc]]
[fulcro.client.routing :as r :refer [defsc-router]]
[fulcro.incubator.ui-state-machines :as uism :refer-macros [defstatemachine]]
[fulcro.ui.form-state :as fs]
[taoensso.timbre :as log]