Skip to content

Instantly share code, notes, and snippets.

View conan's full-sized avatar

Conan conan

View GitHub Profile
@conan
conan / .git-prompt.sh
Created August 7, 2019 13:10
PS1 script for git; put this in your Linux home directory
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@conan
conan / calva-keybindings.json
Created August 7, 2019 12:07
Keybindings to replace Calva's default chain-start of CTRL+ALT+V with ALT+V. (Originally from WebWitch, retrieved from Google cache)
[
{
"key": "alt+v shift+c",
"command": "calva.toggleCLJCSession"
},
{
"key": "ctrl+alt+v alt+c",
"command": "-calva.toggleCLJCSession"
},
{
2018-10-17 16:15:00,759 [1022547] WARN - #org.jetbrains.idea.maven - Failed to update Maven indices for: [local] file:/C:/Users/conan/dev/citadels/repo
org.jetbrains.idea.maven.server.MavenServerIndexerException: java.lang.RuntimeException: java.io.FileNotFoundException: Resource nexus-maven-repository-index.properties does not exist
at org.jetbrains.idea.maven.server.Maven3ServerIndexerImpl.updateIndex(Maven3ServerIndexerImpl.java:221)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
@conan
conan / lein-cljs-lambda-deploy
Created September 28, 2018 11:39
lein cljs-lambda deploy output
java.util.concurrent.ExecutionException: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('X' (code 88)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@634aa81e; line: 1, column: 2]
at java.util.concurrent.FutureTask.report (FutureTask.java:122)
java.util.concurrent.FutureTask.get (FutureTask.java:192)
sun.reflect.NativeMethodAccessorImpl.invoke0 (NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke (Method.java:498)
clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:93)
clojure.lang.Reflector.invokeNoArgInstanceMember (Reflector.java:313)
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;)V, compiling:(figwheel_sidecar/repl.clj:1:1)
at clojure.lang.Compiler.load(Compiler.java:7526)
at clojure.lang.RT.loadResourceScript(RT.java:379)
at clojure.lang.RT.loadResourceScript(RT.java:370)
at clojure.lang.RT.load(RT.java:460)
at clojure.lang.RT.load(RT.java:426)
at clojure.core$load$fn__6548.invoke(core.clj:6046)
at clojure.core$load.invokeStatic(core.clj:6045)
at clojure.core$load.doInvoke(core.clj:6029)
at clojure.lang.RestFn.invoke(RestFn.java:408)
2018-04-16 18:14:13,063 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2018-04-16 18:14:13,090 [ 27] INFO - #com.intellij.util.ui.JBUI - User scale factor: 1.5
2018-04-16 18:14:13,090 [ 27] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.5 (IDE-managed HiDPI)
2018-04-16 18:14:13,113 [ 50] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-172.3968.16, 21 Aug 2017 22:13)
2018-04-16 18:14:13,113 [ 50] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2018-04-16 18:14:13,113 [ 50] INFO - #com.intellij.idea.Main - JRE: 1.8.0_152-release-915-b11 (JetBrains s.r.o)
2018-04-16 18:14:13,114 [ 51] INFO - #com.intellij.idea.Main - JVM: 25.152-b11 (OpenJDK 64-Bit Server VM)
2018-04-16 18:14:13,122 [ 59] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:Rese
@conan
conan / url-spec.clj
Last active December 30, 2019 16:32
(require
'[cemerick.url :as url]
'[clojure.spec.alpha :as s]
'[clojure.spec.gen.alpha :as sgen])
(defn non-empty-string-alphanumeric
[]
(sgen/such-that #(not= "" %)
(sgen/string-alphanumeric)))
@conan
conan / url-gen.clj
Created October 4, 2017 14:13
Clojure.spec URL and email specs with generators
(require '[cemerick.url :as url]
'[clojure.spec.alpha :as s]
'[clojure.spec.gen.alpha :as gen]
'[clojure.string :as string])
(def non-empty-string-alphanumeric
"Generator for non-empty alphanumeric strings"
(gen/such-that #(not= "" %)
(gen/string-alphanumeric)))

The Tech

We're building Style.com to be the most sophisticated ecommerce platform in the world. We use the latest technology, not just because it's fun (although it is!), but because the best tools help us put together the best team and deliver a great experience for our customers worldwide.

Here's a taste of the tech you'll be working with:

  • Single-page frontend applications based on a ClojureScript/Reagent/React stack
  • Neural net-driven recommendation and search systems in Clojure
  • Automatic curation tools using tag hierarchies in Datomic
  • Containerised deployments on AWS/Docker/Kubernetes

The Tech

We're building Style.com to be the most sophisticated ecommerce platform in the world. We use the latest technology, not just because it's fun (although it is!), but because the best tools help us put together the best team and deliver a great experience for our customers worldwide.

Here's a taste of the tech you'll be working with:

  • Single-page frontend applications based on a ClojureScript/Reagent/React stack
  • Neural net-driven recommendation and search systems in Clojure
  • Automatic curation tools using tag hierarchies in Datomic
  • Containerised deployments on AWS/Docker/Kubernetes