Skip to content

Instantly share code, notes, and snippets.

View landonepps's full-sized avatar
👨‍💻
💻✈️🎙

Landon Epps landonepps

👨‍💻
💻✈️🎙
View GitHub Profile
@auramagi
auramagi / ReadMore.swift
Last active June 25, 2024 23:06
SwiftUI read more component. Requires iOS 16.
import SwiftUI
struct ContentView: View {
var text = "long text"
@State private var lines = 3.0
var body: some View {
ScrollView {
ReadMore(lineLimit: Int(lines)) {
@0xstragner
0xstragner / UIButton+SUI.m
Created March 11, 2024 21:35
Trigger UIMenu programmatically
//
// Created by Anton Spivak
//
#import "UIButton+SUI.h"
@import Objective;
@import ObjectiveC.runtime;
@import ObjectiveC.message;
@jkufver
jkufver / ipstocrash.pl
Last active May 16, 2024 15:35 — forked from hecht1962/ipstocrash.pl
Convert an IPS crash report (.ips) to the legacy crash report format (.crash)
#!/usr/bin/perl
##
## This script converts an IPS crash report (.ips) to the legacy crash report format.
##
## The .ips file (JSON) is read from STDIN and the legacy crash report is written to
## STDOUT.
##
use strict;
@Lessica
Lessica / fetch-libimobiledevice.sh
Created May 13, 2023 15:11
Fetch libraries and executables for macOS from libimobiledevice artifacts. This script will make executables runnable without install them to specific paths.
#!/bin/sh
set -e
if ! test -x "`which ldid`"; then
echo "Cannot find ldid, you may install it via Homebrew."
exit 1
fi
if [ ! -d "$(xcode-select -p)" ]; then
import SwiftUI
// This is an example of how to keep the ObservableObjects near the root of the view hierarchy
// and dispatch actions from any view easily without having to pass too many things down. This
// helps keep the views simple and makes previews a lot easier.
//
// This is inspired from what Apple is doing with `DismissAction`, `OpenURLAction`, `OpenWindowAction`, etc...
// The following is a very simple example with only two view-levels and we could pass closures directly,
@daxav
daxav / $My Anki Wanikani Ultimate 2 Changes
Created February 27, 2021 16:33
My Anki Wanikani Ultimate 2 Changes
Changes for the scripts of the Anki Wanikani Ultimate 2 deck, feel free to use them how you like.
Features:
- Automatic Romaji to Kana conversion in reading input using WanaKana.
- Multiple input support (separated by a space for readings and by a comma for meanings,
eg: "axe, loaf bread counter" or "あめ あま").
- Shows each right and wrong answer from your input.
- Automatic resizing of characters for small screens.
- Reordered the Back template of the cards to be more similar to the Wanikani site (reading related things come first in reading cards,
same for meaning).
@hishnash
hishnash / ExampleWindowReaderApp.swift
Created December 21, 2020 05:59
Access to the underlying UIWindow & NSWindow in swiftUI gives access to window methods and attributes.
//
// ExampleWindowReaderApp.swift
// Shared
//
// Created by Matthaus Woolard on 21/12/2020.
//
import SwiftUI
@main
@IsaacXen
IsaacXen / README.md
Last active July 29, 2024 08:28
(Almost) Every WWDC videos download links for aria2c.