Skip to content

Instantly share code, notes, and snippets.

View Trevoke's full-sized avatar
🎹
insert meme here.

Trevoke Trevoke

🎹
insert meme here.
View GitHub Profile
#!/bin/sh
# This script will setup Evm (Emacs Version Manager) and Cask on
# Travis to use for Emacs Lisp testing.
#
# In .travis.yml, add this:
#
# - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
#
# Emacs 24.3 is installed in the above script because Cask requires
@Trevoke
Trevoke / clocktable-report-by-property.el
Last active November 19, 2021 18:05
org clock table data grouped by project
;; generates something like this
;; #+begin: clockreport-by-project
;; | | 2021-11-15.org | 2021-11-16.org |
;; |------------+----------------+----------------|
;; | EA | 0.18 | |
;; | internal | 0.83 | |
;; | management | 0.47 | 1.70 |
;; #+end:
(defun org-dblock-write:clockreport-by-project (params)
@Trevoke
Trevoke / movie.md
Last active January 12, 2022 21:31 — forked from laser/movie.md

Movie Ticket Kata

What Are We Building?

Write a program that calculates purchase price for movie tickets using any language you like. It should not be a full-blown web app; it can be a simple class or collection of methods invokable by your test suite. We'll provide you with some requirements, test-cases, and even a sample interface - all you have to do is give us some software.

Base Admission Rate

The Base Admission Rate cover movies to be viewed on a regular weekday (see "Special Movie Day" below), in 2D, with a length of <= 120 minutes, viewed from the main seating area (there is also a balcony seating area, which is much fancier).

@Trevoke
Trevoke / gist:5745869
Created June 10, 2013 00:32
Some money nicknames for Discworld MUD
nickname every ankh-morpork penny & every ten-pence & every half-dollar & every dollar & every ten-dollar & every royal & every ankh-morpork crown as amoney
nickname every saveloy-rhinu & every quarter-rhinu & every half-rhinu & every rhinu & every ten-rhinu & every fifty-rhinu as bmoney
nickname every ptascp & every talon & every toon & every talent & every ra & every thanra as dmoney
nickname every cent & every livre & every forin & every ducat as gmoney
nickname every derechmus & every hemiobolus & every obolus & every drachma & every stater & every decadrachma & every mina & every tyrant as emoney
nickname every farthing & every ha'penny & every lancre penny & every tuppence & every thruppence & every sixpence & every shilling & every lancre crown & every tencrown & every sovereign & every hedgehog as lmoney
nickname every para & every two para & every five para & every ten para & every fifty para & every dinar & every two dinar & every five dinar & every ten dinar & every fifty dinar & every hundred dina
@Trevoke
Trevoke / adams-heroku-values.md
Created September 14, 2017 16:18 — forked from adamwiggins/adams-heroku-values.md
My Heroku values

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style