A Pen by Captain Anonymous on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # (c) 2016 Mario Cruz | |
| # please credit me if you modify and/or use this code | |
| # not for commercial use | |
| # lots of help from Giles Booth @blogmywiki | |
| from random import * | |
| from printer import * | |
| from PIL import Image | |
| import os | |
| import glob | |
| import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ((nil . ((projectile-project-type . lein-test)))) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class FakeImage { | |
| function rotate($deg) { | |
| echo "Rotating $deg degrees\n"; | |
| return $this; | |
| } | |
| function mirror(){ | |
| echo "Mirroring\n"; | |
| return $this; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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?)) |