Skip to content

Instantly share code, notes, and snippets.

View hisaac's full-sized avatar
👨‍💻
Just Typin'

Isaac Halvorson hisaac

👨‍💻
Just Typin'
View GitHub Profile
@hisaac
hisaac / git-orphan.fish
Last active September 2, 2021 20:46
This is a little script I wrote for creating a new, empty default branch for personal forks of a repo. This is to reduce confusion, so that `main`/`master` always points to the upstream version, never your fork's.
function git-orphan --description "Creates an orphan branch and a README.md file"
# Create an orphan branch named "default"
git checkout --orphan default
# Delete everything in the directory that is tracked by git
git rm -rf .
# Delete everything in the directory that is NOT tracked by git
git clean -dfx
// The bookmarklet does a couple things:
// If the current page in the browser is a YouTube page, it will open that video in `invidious.xyz`
// If the current page in the browser is _not_ a YouTube page, it will open the `invidious.xyz` homepage
//
// To use: Copy/Paste the code below into the bookmark's address:
javascript:location.hostname.includes("youtube.com")?location.assign("https://invidious.xyz"+location.pathname+location.search+location.hash):location.assign("https://invidious.xyz");
@hisaac
hisaac / get-public-ip.swift
Created August 27, 2020 02:33
A quick and dirty playground/script to get the current device's public IP address, validate it, and print it
import Foundation
import Network
/// A quick and dirty playground/script to get the current device's public IP address, validate it, and print it
let url = URL(string: "https://checkip.amazonaws.com")!
var publicIPAddress: IPAddress?
URLSession.shared.dataTask(with: url) { (data, response, error) in
guard let data = data,
@hisaac
hisaac / Playlist Album Artists to Feedbin Action List.applescript
Last active June 3, 2020 03:04
A hyper-specific AppleScript for putting on the clipboard a list of album artists in the currently selected playlist in Music.app in a format used for an "Action" in Feedbin.
(*
This script, like most, was created to scratch a very particular itch.
I am a lover of RSS, and a lover of music, so I follow a few blogs that post about new music releases.
Most of the releases I'm not interested in, but I am interested in releases by artists that I'm already familiar with.
I've got a playlist in Music containing the artists I'm most interested in, and these are the ones I want to follow.
I use Feedbin as my RSS feed aggregator (highly recommended by the way).
Feedbin has the ability to perform "Actions" on feed items as they arrive.
I have a custom action built that marks any item as "read" that does not contain an artist that I want.
@hisaac
hisaac / fishFunctions.sh
Last active April 15, 2020 03:37
Some fish shell functions that I use
# A few simple fish functions I use in my config.fish file
function gcd -d "Switches to the develop or development branch, depending on which one is used in this repo"
if git show-ref --verify --quiet refs/heads/develop
git checkout develop
else
git checkout development
end
end
@hisaac
hisaac / SemVer.swift
Last active April 30, 2021 13:35
SemVer struct for Swift
/********************
WARNING:
There are issues with this implementation (see [@toshi0383's comment below](https://gist.github.com/hisaac/292bfe673d026817e3e1b52408cdf97c#gistcomment-3726069).
Feel free to use this how you wish, but know that it's not 100% accurate. This was just a little experimentation I did while learning Swift, so there are bound to be issues.
********************/
//
// SemVer.swift
//
@hisaac
hisaac / hisaa.css
Last active November 15, 2017 17:44
A simple library of CSS snippets that I like to use on my projects
/**
"hisaa.css" by Isaac Halvorson
A simple library of CSS snippets that I like to use on my projects.
*/
/*********************************** Reset ***********************************/
/******************************* Accessibility *******************************/
/**
@hisaac
hisaac / all-emoji.md
Last active November 2, 2017 12:50
All emoji available on iOS 11.1 and macOS 10.13.1

These are all of the emoji available on iOS and Mac as of iOS 11.1 and macOS 10.13.1. This does not include any of the skin tone modifiers.

iOS 11.0.3 version

Note: If you aren't seeing all of the emoji correctly, click the "Raw" button in the top right.

😀😃😄😁😆😅😂🤣☺️😊😇🙂🙃😉😌😍😘😗😙😚😋😛😝😜🤪🤨🧐🤓😎🤩😏😒😞😔😟😕🙁☹️😣😖😫😩😢😭😤😠😡🤬🤯😳😱😨😰😥😓🤗🤔🤭🤫🤥😶😐😑😬🙄😯😦😧😮😲😴🤤😪😵🤐🤢🤮🤧😷🤒🤕🤑🤠😈👿👹👺🤡💩👻💀☠️👽👾🤖🎃😺😸😹😻😼😽🙀😿😾🤲👐🙌👏🤝👍👎👊✊🤛🤜🤞✌️🤟🤘👌👈👉👆👇☝️✋🤚🖐🖖👋🤙💪🖕✍️🙏💍💄💋👄👅👂👃👣👁👀🧠🗣👤👥👶👧🧒👦👩🧑👨👱‍♀️👱‍♂️🧔👵🧓👴👲👳‍♀️👳‍♂️🧕👮‍♀️👮‍♂️👷‍♀️👷‍♂️💂‍♀️💂‍♂️🕵️‍♀️🕵️‍♂️👩‍⚕️👨‍⚕️👩‍🌾👨‍🌾👩‍🍳👨‍🍳👩‍🎓👨‍🎓👩‍🎤👨‍🎤👩‍🏫👨‍🏫👩‍🏭👨‍🏭👩‍💻👨‍💻👩‍💼👨‍💼👩‍🔧👨‍🔧👩‍🔬👨‍🔬👩‍🎨👨‍🎨👩‍🚒👨‍🚒👩‍✈️👨‍✈️👩‍🚀👨‍🚀👩‍⚖️👨‍⚖️👰🤵👸🤴🤶🎅🧙‍♀️🧙‍♂️🧝‍♀️🧝‍♂️🧛‍♀️🧛‍♂️🧟‍♀️🧟‍♂️🧞‍♀️🧞‍♂️🧜‍♀️🧜‍♂️🧚‍♀️🧚‍♂️👼🤰🤱🙇‍♀️🙇‍♂️💁‍♀️💁‍♂️🙅‍♀️🙅‍♂️🙆‍♀️🙆‍♂️🙋‍♀️🙋‍♂️🤦‍♀️🤦‍♂️🤷‍♀️🤷‍♂️🙎‍♀️🙎‍♂️🙍‍♀️🙍‍♂️💇‍♀️💇‍♂️💆‍♀️💆‍♂️🧖‍♀️🧖‍♂️💅🏻🤳💃🕺👯‍♀️👯‍♂️🕴🚶‍♀️🚶‍♂️🏃‍♀️🏃‍♂️👫👭👬💑👩‍❤️‍👩👨‍❤️‍👨💏👩‍❤️‍💋‍👩👨‍❤️‍💋‍👨👪👨‍👩‍👧👨‍👩‍👧‍👦👨‍👩‍👦‍👦👨‍👩‍👧‍👧👩‍👩‍👦👩‍👩‍👧👩‍👩‍👧‍👦👩‍👩‍👦‍👦👩‍👩‍👧‍👧👨‍👨‍👦👨‍👨‍👧👨‍👨‍👧‍👦👨‍👨‍👦‍👦👨‍👨‍👧‍👧👩‍👦👩‍👧👩‍👧‍👦👩‍👦‍👦👩‍👧‍👧👨‍👦👨‍👧👨‍👧‍👦👨‍👦‍👦👨‍👧‍👧🧥👚👕👖👔👗👙👘👠👡👢👞👟🧦🧤🧣🎩🧢👒🎓⛑👑👝

@hisaac
hisaac / all-emoji.md
Last active November 2, 2017 12:50
All emoji available on iOS 11.0.3

These are all of the emoji available on iOS as of ios 11.0.3. This does not include any of the skin tone modifiers.

iOS 11.1 / macOS 10.13.1 version

Note: If you aren't seeing all of the emoji correctly, click the "Raw" button in the top right.

😀😃😄😁😆😅😂🤣☺️😊😇🙂🙃😉😌😍😘😗😙😚😋😜😝😛🤑🤗🤓😎🤡🤠😏😒😞😔😟😕🙁☹️😣😖😫😩😤😠😡😶😐😑😯😦😧😮😲😵😳😱😨😰😢😥🤤😭😓😪😴🙄🤔🤥😬🤐🤢🤧😷🤒🤕😈👿👹👺💩👻💀☠️👽👾🤖🎃😺😸😹😻😼😽🙀😿😾👐🙌👏🙏🤝👍👎👊✊️🤛🤜🤞✌️🤘👌👈👉👆👇☝️✋️🤚🖐🖖👋🤙💪🖕✍️🤳💅🏻💍💄💋👄👅👂👃👣👁👀🗣👤👥👶👦👧👨👩👱‍♀️👱👴👵👲👳‍♀️👳👮‍♀️👮👷‍♀️👷💂‍♀️💂🕵️‍♀️🕵️👩‍⚕️👨‍⚕️👩‍🌾👨‍🌾👩‍🍳👨‍🍳👩‍🎓👨‍🎓👩‍🎤👨‍🎤👩‍🏫👨‍🏫👩‍🏭👨‍🏭👩‍💻👨‍💻👩‍💼👨‍💼👩‍🔧👨‍🔧👩‍🔬👨‍🔬👩‍🎨👨‍🎨👩‍🚒👨‍🚒👩‍✈️👨‍✈️👩‍🚀👨‍🚀👩‍⚖️👨‍⚖️🤶🎅👸🤴👰🤵👼🤰🙇‍♀️🙇💁💁‍♂️🙅🙅‍♂️🙆🙆‍♂️🙋🙋‍♂️🤦‍♀️🤦‍♂️🤷‍♀️🤷‍♂️🙎🙎‍♂️🙍🙍‍♂️💇💇‍♂️💆💆‍♂️🕴💃🕺👯👯‍♂️🚶‍♀️🚶🏃‍♀️🏃👫👭👬💑👩‍❤️‍👩👨‍❤️‍👨💏👩‍❤️‍💋‍👩👨‍❤️‍💋‍👨👪👨‍👩‍👧👨‍👩‍👧‍👦👨‍👩‍👦‍👦👨‍👩‍👧‍👧👩‍👩‍👦👩‍👩‍👧👩‍👩‍👧‍👦👩‍👩‍👦‍👦👩‍👩‍👧‍👧👨‍👨‍👦👨‍👨‍👧👨‍👨‍👧‍👦👨‍👨‍👦‍👦👨‍👨‍👧‍👧👩‍👦👩‍👧👩‍👧‍👦👩‍👦‍👦👩‍👧‍👧👨‍👦👨‍👧👨‍👧‍👦👨‍👦‍👦👨‍👧‍👧👚👕👖👔👗👙👘👠👡👢👞👟👒🎩🎓👑⛑🎒👝👛👜💼👓🕶🌂🐶🐱🐭🐹🐰🦊🐻🐼🐨🐯🦁🐮🐷🐽🐸🐵🙈🙉🙊🐒🐔🐧🐦🐤🐣🐥🦆🦅🦉🦇🐺🐗🐴🦄🐝🐛🦋🐌🐚🐞🐜🕷🕸🐢🐍🦎🦂🦀🦑🐙🦐🐠🐟🐡🐬🦈🐳🐋🐊🐆🐅🐃🐂🐄🦌🐪🐫🐘🦏🦍🐎🐖🐐🐏🐑🐕🐩🐈🐓🦃🕊🐇🐁🐀🐿🐾🐉🐲🌵🎄🌲🌳🌴🌱🌿☘️🍀🎍🎋🍃🍂🍁🍄🌾💐🌷🌹🥀🌻🌼🌸🌺🌎🌍🌏🌕🌖🌗🌘🌑🌒🌓🌔🌚🌝🌞🌛🌜🌙💫⭐️🌟✨⚡️🔥💥☄️☀

@hisaac
hisaac / things-to-do-in-seattle.md
Last active July 26, 2017 12:31
A list of things to do in Seattle that I made for a friend of mine

Things to do in Seattle

  • Westward - Excellent seafood.
  • Homegrown Sandwiches - Yummy sandwiches! I usually get breakfast here most days when I visit Seattle.
  • Starbucks Reserve Roastery - A coffee "experience" Sounds hoity toity, but it's actually pretty cool.
  • Bill Speidel's Underground Tour - A surprisingly interesting historic tour of downtown Seattle.
  • Ada's Technical Books - A bookstore of only technical books, and also a restaurant / coffee shop. I didn't buy anything here, but it was still fun to check out.
  • Amazon Bookstore - Amazon has a brick & mortar store that's worth checking out. Not super interesting, but kinda cool. Funny story: I bought a Kindle at Amazon's physical store so that I could leave the store and buy digital books from them.
  • [Seattle Go Center](http://www