Skip to content

Instantly share code, notes, and snippets.

☀️
Enjoying the summer

Daniel Compton danielcompton

☀️
Enjoying the summer
Block or report user

Report or block danielcompton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View j.clj
(ns gol.core
(:refer-clojure :exclude [* - + == /])
(:require [clojure.core.matrix :refer :all]
[clojure.core.matrix.operators :refer :all]))
(def start [[0 0 0 0 0]
[0 0 0 0 0]
[0 0 1 0 0]
[0 0 0 0 0]
[0 0 0 0 0]]
View non_idiomatic.cljs
(defn checkbox [short-name takes-place? word k]
^{:key (str k "takes-place")}
[:div.col.s2
[:input.filled-in {:type "checkbox"
:id (str "weekdays-" short-name)
:checked takes-place?}]
[:label.black-text {:for (str "weekdays-" short-name)
:style {:height "auto"
:line-height "normal"}}
word (when-not takes-place? (str " nicht" (when (= k :sun) ".")))]])
@danielcompton
danielcompton / gist:6882330
Created Oct 8, 2013
Get diff stats for a commit, don't use a pager and send to a text file.
View gist:6882330
git --no-pager diff --stat HEAD b5f7df2 > diffstat.txt
@danielcompton
danielcompton / gist:7259186
Created Nov 1, 2013
Azure Recovery Services
View gist:7259186
The certificate specified is not associated with any Backup Vaults.Try a different certificate.
Verify that the public key of the certificate you want to use has been uploaded to the Windows Azure Backup Vault.
ID: 34508
View gist:7652031
Could not find artifact net.sf.josql:josql:jar:1.5 in central (http://repo1.maven.org/maven2/)
Could not find artifact net.sf.josql:josql:jar:1.5 in clojars (https://clojars.org/repo/)
Could not find artifact net.sf.josql:josql:jar:1.5 in restlet.org (http://maven.restlet.org)
Could not find artifact net.sf.josql:josql:jar:1.5 in fusesource.m2 (http://repo.fusesource.com/maven2)
Could not find artifact net.sf.josql:gentlyweb-utils:jar:1.5 in central (http://repo1.maven.org/maven2/)
Could not find artifact net.sf.josql:gentlyweb-utils:jar:1.5 in clojars (https://clojars.org/repo/)
Could not find artifact net.sf.josql:gentlyweb-utils:jar:1.5 in restlet.org (http://maven.restlet.org)
Could not find artifact net.sf.josql:gentlyweb-utils:jar:1.5 in fusesource.m2 (http://repo.fusesource.com/maven2)
@danielcompton
danielcompton / jstack 8048
Last active Dec 29, 2015
Skuld test on mbp
View jstack 8048
(master *)$lein test
Compiling 1 source files to /Users/Daniel/Developer/clojure/skuld/target/classes
lein test skuld.claim-test
2013-11-27 07:43:47,282 INFO org.apache.zookeeper.server.ZooKeeperServerMain: Starting server
2013-11-27 07:43:47,301 INFO org.apache.zookeeper.server.ZooKeeperServer: Server environment:zookeeper.version=3.4.5-1392090, built on 09/30/2012 17:52 GMT
2013-11-27 07:43:47,301 INFO org.apache.zookeeper.server.ZooKeeperServer: Server environment:host.name=daniels-13-mbp
2013-11-27 07:43:47,301 INFO org.apache.zookeeper.server.ZooKeeperServer: Server environment:java.version=1.6.0_45
2013-11-27 07:43:47,301 INFO org.apache.zookeeper.server.ZooKeeperServer: Server environment:java.vendor=Apple Inc.
2013-11-27 07:43:47,301 INFO org.apache.zookeeper.server.ZooKeeperServer: Server environment:java.home=/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home
@danielcompton
danielcompton / gist:7699946
Created Nov 29, 2013
Meitner deps count-queue
View gist:7699946
(pprint (unfold deps 'count-queue))
{count-queue
{clojure.core/update-in
{clojure.core/apply
{clojure.core/cons {},
clojure.core/list*
{clojure.core/cons {},
clojure.core/spread
{clojure.core/cons {},
clojure.core/first {},
View cloverage release notes.md

From: https://clojurians.slack.com/archives/announce-to-everyone/p1472044031000606

There’s a new release of Cloverage out at [lvh/cloverage "1.0.7"] (It’s under my org on clojars, because I’m the new release manager — see https://github.com/lshift/cloverage/issues/103 for details). New features:

  • Features
  • Add codecov.io support with the --codecov flag (*78)
  • Add lcov (e.g. coverlay) support with the --lcov flag (#114)
  • Improvements
  • Coverage fn (internal hot loop) optimization (#90)
  • Dependency upgrades, including running tests on OpenJDK 8 (#105)
View keybase.md

Keybase proof

I hereby claim:

  • I am danielcompton on github.
  • I am danielcompton (https://keybase.io/danielcompton) on keybase.
  • I have a public key ASCV7Ro3qdiNLyJRnwPaDJtimVdy4UC-IcQHL1_7rxFpWgo

To claim this, I am signing this object:

@danielcompton
danielcompton / .block
Last active Nov 14, 2016
re-frame trace
View .block
license: mit
border: yes
scrolling: no
You can’t perform that action at this time.