Skip to content

Instantly share code, notes, and snippets.

View zombieleet's full-sized avatar
💭
Learning never exhausts the mind

Victory Osikwemhe zombieleet

💭
Learning never exhausts the mind
View GitHub Profile
@zombieleet
zombieleet / go-project-layout.md
Created April 20, 2023 13:25 — forked from candlerb/go-project-layout.md
Suggestions for go project layout

If someone asked me the question "what layout should I use for my Go code repository?", I'd start by asking back "what are you building: an executable, or a library?"

Single executable

Stage 1: single source file

Create a directory named however you want your final executable to be called (e.g. "mycommand"), change into that directory, and create the following files:

@zombieleet
zombieleet / encoding-video.md
Created October 2, 2017 21:41 — forked from Vestride/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@zombieleet
zombieleet / export-syntax.js
Created September 15, 2016 00:09 — forked from caridy/export-syntax.js
ES6 Module Syntax Table
// default exports
export default 42;
export default {};
export default [];
export default foo;
export default function () {}
export default class {}
export default function foo () {}
export default class foo {}