Skip to content

Instantly share code, notes, and snippets.

View bradens's full-sized avatar
🖥️
Working from home

Braden Simpson bradens

🖥️
Working from home
View GitHub Profile
@FradSer
FradSer / iterm2_switch_automatic.md
Last active April 23, 2024 02:40
Switch iTerm2 color preset automatic base on macOS dark mode.

The latest beta (3.5) includes separate color settings for light & dark mode. Toggling dark mode automatically switches colors.

Vist iTerm2 homepage or use brew install iterm2-beta to download the beta. Thanks @stefanwascoding.


  1. Add switch_automatic.py to ~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch with:
@JofArnold
JofArnold / Login.m
Last active October 26, 2022 13:31
Using promises in React Native modules with Swift
// Created by react-native-create-bridge
// import RCTBridgeModule
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#elif __has_include(“RCTBridgeModule.h”)
#import “RCTBridgeModule.h”
#else
#import “React/RCTBridgeModule.h” // Required when used as a Pod in a Swift project
#endif
@justinvdm
justinvdm / index.html
Created September 8, 2012 16:28
Balloon Tree Layout
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
margin: 0;
}
.link {
fill: none;
stroke: #cc3333;