Skip to content

Instantly share code, notes, and snippets.

interface GameRulesInputBoundary
void moveSouth()
end
interface GameRulesOutputBoundary
void moveSouthSucceed()
end
class GameRules implements GameRulesInputBoundary
def init(GameRulesOutputBoundary outputBoundary)
@joebew42
joebew42 / elixir-tdd-outside-in-material.md
Last active February 15, 2020 20:37
Some of the material for the tdd outside in hands-on session in Elixir

Materials for the TDD Outside-in hands-on session in Elixir

Writing a failing test first encourages the programmer to articulate clearly what they intend to build before building it. This extra awareness gives the programmer more opportunities to notice going in the wrong direction.

Source: Sooner, Not Faster Revisited

Where is my business?

@joebew42
joebew42 / ffmpeg.md
Last active February 17, 2019 23:33

How I edit my own video 🎥

Speed up the video and the audio of 10%, because I am bit slow:

ffmpeg -i 2019-02-17_19-01-22.flv -c:v libx264 -crf 20 -filter_complex "[0:v]setpts=0.9*PTS[v];[0:a]atempo=1.1111111111111112[a]" -map "[v]" -map "[a]" output.mp4

See How to speed up / slow down a video for more detailed information.