Skip to content

Instantly share code, notes, and snippets.

@stoyan-scava
stoyan-scava / gist:d88c47fdb6ee757092f1f315df5aaa61
Last active October 5, 2022 07:37
The common tongue of cloud typescript - an opinionated style guide
Casing:
Long: easier to read throug in lists
MACRO_CASE: constants, enums
kebap-case: file names, paths
Short: less characters allow us to fit more meaning; e.g. when we extend or scope an entity (both good practices) the name tends to grow
camelCase: variables, function/method names, function/method attributes, GraphQL actions, API I/O, object properties
PascalCase for classes and interfaces, cloud infrastructure resource names
@nrk
nrk / command.txt
Created April 2, 2012 19:19
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"