Skip to content

Instantly share code, notes, and snippets.

View 0xLeif's full-sized avatar
🐦
Working on somethings

Leif 0xLeif

🐦
Working on somethings
View GitHub Profile
@tkersey
tkersey / .2026.md
Last active July 21, 2026 19:37
For future reference but maybe not.

Quick access

2026

July

  • Type Mermaid diagram source below and it is rendered as terminal-style Unicode box-drawing art — entirely in your browser, by the actual Rust renderer from xai-org/grok-build (the Grok CLI) compiled to WebAssembly. Flowcharts, sequence, state, class and ER diagrams are supported; other diagram types fall back to a framed source listing. Rust source, license and build script: grok-mermaid/.

> The software engineering methodology developed by TigerBeetle to produce safer, faster software in less time.

@mischah
mischah / z.md
Last active December 9, 2022 02:11
Installing und initializing z (https://github.com/rupa/z) with help of Homebrew.

#The power of z

Do you spend lots of time doing things like this?

cd this/is/the/path/that/i/want/so/i/type/it/all/out/to/get/whereiwant

With z, you could just do this:

@flandy84
flandy84 / gist:3183844
Created July 26, 2012 19:05
"modern Objective-C" syntax
//"modern Objective-C" syntax
//new enum-macros for better autocompletion, switch statement, more precise warnings, ...
typedef NS_ENUM(NSInteger, MyViewContentMode) {
MyViewContentModeLeft,
MyViewContentModeRight,
MyViewContentModeTopLeft,
MyViewContentModeTopRight,

Objective-C Coding Convention and Best Practices

Most of these guidelines are to match Apple's documentation and community-accepted best practices. Some are derived some personal preference. This document aims to set a standard way of doing things so everyone can do things the same way. If there is something you are not particularly fond of, it is encouraged to do it anyway to be consistent with everyone else.

This document is mainly targeted toward iOS development, but definitely applies to Mac as well.

Operators

NSString *foo = @"bar";