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
(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
{}