Skip to content

Instantly share code, notes, and snippets.

@jeremy-w
jeremy-w / Project.h
Last active June 3, 2020 19:20
Rigging up versioning for iOS, the fun way
#import <UIKit/UIKit.h>
//! Project version number for Proj.
FOUNDATION_EXPORT double ProjVersionNumber;
//! Project version string for Proj.
FOUNDATION_EXPORT const unsigned char ProjVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <Proj/PublicHeader.h>
import Foundation
@propertyWrapper
struct OrString<Wrapped>: Decodable where Wrapped: Decodable, Wrapped: LosslessStringConvertible {
var wrappedValue: Wrapped
init(wrappedValue: Wrapped) {
self.wrappedValue = wrappedValue
}
@tuirgin
tuirgin / electric_bastionland-bookmarks.txt
Last active October 5, 2023 22:45
Bookmarks for Electric Bastionland using pdftk, see https://superuser.com/a/1044429
InfoBegin
InfoKey: Creator
InfoValue: Serif Affinity Publisher 1.8.2
InfoBegin
InfoKey: Title
InfoValue: EBL Draft Sept 18th
InfoBegin
InfoKey: Producer
InfoValue: PDFlib+PDI 9.1.2p1-i (Win32)
InfoBegin
@AlainODea
AlainODea / README.md
Last active March 25, 2024 23:39
Terragrunt config to auto-generate provider and backend config so you can apply library modules directly in infrastructure-live without an adapter module in infrastructure-modules

Using Terragrunt generate for extra DRY Terraform

Terragrunt config to auto-generate provider and backend config so you can apply library modules directly in infrastructure-live without an adapter module in infrastructure-modules.

Data structures in Go with maps and slices

Sets:

set := make(map[string]bool)

// add to set
set["a"] = true 
@romkatv
romkatv / Advent of Code 2019.md
Last active December 31, 2019 16:48
Advent of Code 2019
@jeremy-w
jeremy-w / jira-prepare-commit-msg
Last active August 23, 2023 17:44
A git hook to tag your commits with the JIRA issue ID. Requires a git client that runs the hook like Git Fork, Git Kraken, or anything TUI/CLI.
#!/bin/bash
#
# jira-prepare-commit-msg: Easy commit tagging for Jira
#
# https://gist.github.com/jeremy-w/818b2980f0d9768da83249458aa67678
#
# If you name your branch to include the Jira issue key,
# this hook will automatically add the issue key to your commit messages.
# This makes it easy to trace work back to Jira, and it also means
# your commits show up in the Activity tab for that issue.
@laynemoseley
laynemoseley / deploy.sh
Last active October 1, 2019 19:16
Zork deploy script
#!/bin/bash
echo "You enter a dark dungeon. A sign in front of you says: Choose wisely or you'll probably die."
read -p 'staging or production: ' ENV
if [ $ENV != "staging" ] && [ $ENV != "production" ]
then
echo "You go into the wrong hallway, a skeleton comes out and decapitates you. The End."
exit 1
fi

A proposal to improve the speed at which reliable knowledge about software development is created

Extracted from a talk at NewCrafts Paris 2019, titled "Learning From How Science and Philosophy Progress".

Contents

  • Interaction rituals, the scene, and scenius
  • Science and reliable knowledge
  • Software and reliable knowledge
  • Scenes have places