Skip to content

Instantly share code, notes, and snippets.

View christianromney's full-sized avatar
🏠
Working from home

Christian Romney christianromney

🏠
Working from home
View GitHub Profile
(ns brave.core
(:require [clojure.core.async :as a
:refer [thread go <! >! <!! >!! put! take! chan go-loop alts! timeout close!]]))
;; -== From brave clojure ==-
(defn hotdog-machine
"A hotdog vending machine returns a vector
with two channels: input and output. Money
should be deposited into the input channel
(ns brave.core
(:require [clojure.core.async :as a
:refer [thread go <! >! <!! >!! put! take! chan go-loop alts! timeout close!]]))
;; -== From brave clojure ==-
(defn hotdog-machine
"A hotdog vending machine returns a vector
with two channels: input and output. Money
should be deposited into the input channel
((nil . ((projectile-project-type . lein-test))))
<?php
class FakeImage {
function rotate($deg) {
echo "Rotating $deg degrees\n";
return $this;
}
function mirror(){
echo "Mirroring\n";
return $this;
$ lein apraxis
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.2
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.4
Using addressable 2.3.8
Using atomic 1.1.99
Using backports 3.6.6
(defn config-files
"Returns a sequence of configuration files
that should be loaded by Immuconf."
([]
(config-files (env :environment)))
([current-env]
(let [converter (comp (map (partial str "config/"))
(map io/resource)
(remove nil?))
@christianromney
christianromney / mvp-widget-no-data.json
Created August 10, 2015 21:09
MVP widget JSON data for a user who has *NOT* yet managed MVP
{}
[azjure "1.0.0-20140814.201738-3"]
[org.clojure/math.numeric-tower "0.0.4"]
[org.ozias.cljlibs/utils "0.1.7"]
[me.raynes/conch "0.6.0"]
[org.flatland/useful "0.10.6"]
[org.clojure/tools.macro "0.1.1"]
[ch.qos.logback/logback-classic "1.1.3" :exclusions [[org.slf4j/slf4j-api]]]
[ch.qos.logback/logback-core "1.1.3"]
[cheshire "5.5.0"]
[com.fasterxml.jackson.dataformat/jackson-dataformat-cbor "2.5.3"]