Skip to content

Instantly share code, notes, and snippets.

@kvnsmth
kvnsmth / example-subtree-usage.md
Last active March 5, 2023 21:58
A real world usage for git subtrees.

Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?

With submodules

Add the project to your repo:

git submodule add git@github.com:AFNetworking/AFNetworking.git Vendor/AFNetworking

or something to that effect.

### Keybase proof
I hereby claim:
* I am kvnsmth on github.
* I am kvnsmth (https://keybase.io/kvnsmth) on keybase.
* I have a public key whose fingerprint is C682 85C0 CA4A EDC7 D57E 271C CF79 7B08 1946 98D5
To claim this, I am signing this object:
@kvnsmth
kvnsmth / AppDelegate.swift
Last active August 29, 2015 14:20
Quick hack to animate launch xib on launch
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
var showOverlay = true // whatever you want
@kvnsmth
kvnsmth / cloudSettings
Last active July 30, 2020 01:29
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-30T01:28:59.299Z","extensionVersion":"v3.4.3"}
@kvnsmth
kvnsmth / roam-export-jq-examples.sh
Last active June 4, 2020 08:04
JQ recipes to use with Roam Export JSON
##########################################################################
## List Page Titles
##########################################################################
# list in same order as export
jq ".[].title" export.json
# sort by title
jq "sort_by(.title) | .[].title" export.json