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
{"title": "Fire and Ice",
"author": "Robert Frost",
"text": ["Some say the world will end in fire,",
"Some say in ice.",
"From what I've tasted of desire,",
"I hold with those who favor fire.",
"But if I had to perish twice,",
"I think I know enough of hate",
"To say that for destruction ice",
"Is also great",
# (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
import os
import glob
import json
import random
import printer
{"title": "Fire and Ice"
"author": "Robert Frost"
"text": ["Some say the world will end in fire,",
"Some say in ice.",
"From what I've tasted of desire,",
"I hold with those who favor fire.",
"But if I had to perish twice,",
"I think I know enough of hate",
"To say that for destruction ice",
"Is also great",
# (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
(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;