Skip to content

Instantly share code, notes, and snippets.

View dotemacs's full-sized avatar

Александар Симић dotemacs

View GitHub Profile
@dotemacs
dotemacs / build-output.log
Created May 24, 2019 19:39
Build of ClojureCLR 1.9.0 on macOS 10.14.4 with mono
>>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<
XBuild Engine Version 14.0
Mono, Version 5.20.1.19
Copyright (C) 2005-2013 Various Mono authors
Build started 24/05/2019 15:27:33.
__________________________________________________
Project "/Users/alex/dev/clr/clojure-clr/Clojure/build.proj" (Build target(s)):
IApp app = ConfigureApp
.iOS
.AppBundle("/path/to/iosapp.app")
.StartApp();
@dotemacs
dotemacs / dll-import-in-clojure-clr.md
Created May 21, 2019 14:04
How to import a DLL in Clojure CLR?

I can start the Clojure CLR REPL with the latest Clojure release I obtained from Sourceforge:

$ mono Clojure.Main.exe
Clojure 1.9.0
user=>

And then when I enter:

@dotemacs
dotemacs / looking-at-the-integration-end-to-end-testing.org
Created May 20, 2019 22:44
Looking at the integration/end to end testing for react-native

Looking at the integration/end to end testing

Calabash

Calabash http://calaba.sh/ seems to have been popular. But since it was develped by Xamarin team, who have been bought out by Microsoft, they’ve stopped further development on it and are hoping that the community picks up further maintenance & development.

The way calabash works: it installs the “server” on the

@dotemacs
dotemacs / clr-install.txt
Created May 20, 2019 10:06
CLR install issue
$ brew install nuget
$ mkdir ~/dev/clr
$ nuget install Clojure -Version 1.9.0
$ mkdir all
$ cp -r lib/net40 all
$ cp -r tools/net40/* all/net40
$ cp -r lib/net35 all/
$ cp -r tools/net35/* all/net35/

Remote meeting

Pairing

Pros:

  • Good live review
  • Mentoring & onboard
  • Prevention of getting stuck
  • The maintenance has higher cost than the initial development. In long term it’s cheaper.
(ns er-model.connectors.kafka.serde
(:require
[er-model.connectors.kafka.serializers :as k.ser]
[er-model.connectors.kafka.deserializers :as k.deser])
(:import
[org.apache.kafka.common.serialization
Serde
Serdes
Serdes$StringSerde
Serdes$WrapperSerde]))
(ns er-model.connectors.kafka.serializers
(:import (org.apache.kafka.common.serialization
LongSerializer
Serializer
IntegerSerializer
StringSerializer
ByteArraySerializer)
(java.io ByteArrayOutputStream)))
;; from https://github.com/ymilky/franzy/blob/master/src/franzy/serialization/serializers.clj
(ns er-model.connectors.kafka.deserializers
(:require
[clojure.edn :as edn])
(:import
[org.apache.kafka.common.serialization
Deserializer
StringDeserializer
LongDeserializer
IntegerDeserializer
ByteArrayDeserializer]
# -*- mode: terraform -*-
owner = "foo-bar"
dcos_version = "1.10.1"
dcos_cluster_name = "staging"
aws_region = "eu-west-1" # Ireland
aws_profile = "foo-foo"
key_name = "your-key"
num_of_masters = "x" # some number
num_of_private_agents = "y" # some number
num_of_public_agents = "z" # some number