Skip to content

Instantly share code, notes, and snippets.

Avatar
🎹
insert meme here.

Trevoke Trevoke

🎹
insert meme here.
View GitHub Profile
@Trevoke
Trevoke / clocktable-report-by-property.el
Last active Nov 19, 2021
org clock table data grouped by project
View clocktable-report-by-property.el
;; 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)
View 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).

View travis-evm-cask.sh
#!/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 / gist:dfa6d886f12d85d7d1d54103d4a808b5
Last active Mar 18, 2018
producer_consumer does not modify events
View gist:dfa6d886f12d85d7d1d54103d4a808b5
# Usage: mix run lib/producer_consumer.exs
#
# Hit Ctrl+C twice to stop it.
#
# This is a base example where a producer A emits items,
# which are amplified by a producer consumer B and printed
# by consumer C.
defmodule A do
use GenStage
@Trevoke
Trevoke / article.ex
Created Jan 23, 2018 — forked from slashdotdash/article.ex
Commanded multi-entity aggregates
View article.ex
defmodule Article do
defstruct [:content, comments: []]
# public commands
def execute(%Article{}, %PublishArticle{content: content}) do
%ArticlePublished{content: content}
end
def execute(%Article{}, %CommentOnArticle{} = comment) do
View adams-heroku-values.md

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

@Trevoke
Trevoke / gpg.rst
Created Mar 3, 2016 — forked from paul-schwendenman/gpg.rst
GPG Cheatsheet
View gpg.rst

GPG Cheat sheet

A small guide to little things

Create a key

View keybase.md

Keybase proof

I hereby claim:

  • I am trevoke on github.
  • I am trevoke (https://keybase.io/trevoke) on keybase.
  • I have a public key whose fingerprint is 48D1 9866 1459 C162 184F FB48 564E 4148 EBF9 21A9

To claim this, I am signing this object:

View terminals.txt
The Trouble With Terminals
Thu, 16 Dec 2010 16:43:20 -0800
Copyright 2010 Kevin Goodsell
0. License
This work is licensed under a Creative Commons
Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a