Skip to content

Instantly share code, notes, and snippets.

View kiliankoe's full-sized avatar
👩‍💻

Kilian Koeltzsch kiliankoe

👩‍💻
View GitHub Profile
@2xlink
2xlink / gist:b61d953865126727cd26838c81edd102
Last active January 30, 2024 22:02
mineclonia list of items (incomplete)
mcl_amethyst:amethyst_shard
mcl_anvils:anvil
mcl_armor:boots_chain
mcl_armor:boots_diamond_enchanted
mcl_armor:boots_iron
mcl_armor:boots_leather
mcl_armor:chestplate_chain
mcl_armor:chestplate_diamond
mcl_armor:chestplate_diamond_enchanted
mcl_armor:chestplate_iron
@helje5
helje5 / servedocc.swift
Last active July 16, 2022 22:24
Small Swift Script to serve `.doccarchive`s to the browser
#!/usr/bin/swift sh
import MacroExpress // @Macro-swift
// MARK: - Parse Commandline Arguments & Usage
func usage() {
let tool = path.basename(process.argv.first ?? "servedocc")
print(
"""
@oliverepper
oliverepper / LinePublisher.swift
Last active February 14, 2021 09:29
LinePublisher
import Foundation
import Combine
class LinePublisherSubscription<S: Subscriber>: Subscription where S.Input == String, S.Failure == LinePublisher.Error {
let url: URL
let linesToRead: Int?
var subscriber: S?
var openDemand = Subscribers.Demand.none
@DreamingInBinary
DreamingInBinary / Best in Class iOS Checklist
Last active January 29, 2024 18:18
This is a public checklist updated every year after the latest version of iOS and iPadOS are shipped. It's a boiled down version of a "Best in Class" app checklist created by Jordan Morgan.
# A Best in Class Checklist
A boiled down checklist adapted from this [post](https://www.swiftjectivec.com/a-best-in-class-app/), created by @jordanmorgan10.
> To use this, create a Github Issue in your own repo, and simply copy and paste this text.
## iOS Core Technology
_Things any iOS app can benefit from_
- [ ] iCloud Sync
- [ ] Focus Filter Support
import SwiftUI
import PlaygroundSupport
// constants
let cardWidth: CGFloat = 343
let cardHeight: CGFloat = 212
let spacing = 36
let animation = Animation.spring()
let cardColors = [
Color(UIColor.systemRed),
@Lavmint
Lavmint / EditingView+MultilineTextField.swift
Last active September 22, 2021 14:05
SwiftUI EditingView + MultilineTextField
import SwiftUI
import Combine
struct ContentView: View {
struct _State {
var text = ""
}
@State var state = _State()
@robbi5
robbi5 / mi.md
Last active January 4, 2020 17:12
mobility inside api documentation

mobility inside is a new app, built by mobimeo, currently in its beta phase, that wants to solve the hassle of booking tickets for german public transport. the app - other than its competitors - is build on a relatively nice api that enables booking tickets even without using the app itself.

this is an unofficatial documentation for this api. feedback and improvements welcome.

hosts:

tenant URL
DING https://ding-mi.mobimeo.io
AVG https://avg-mi.mobimeo.io
MVG https://mvg-mi.mobimeo.io
@simonbs
simonbs / Find Nearby Scooter.js
Last active August 17, 2023 17:56
Scriptable script for finding nearby scooterers from the Lime and Bird rental companies.
// You must generate and insert your own API key for Google Maps + Directions JS SDK.
// The script uses Google Maps to display the scooters on a map as well as the route to the nearest scooter. Follow the guide on the link below to obtain an API key.
// https://developers.google.com/maps/documentation/javascript/get-api-key
let googleApiKey = ""
// Choose the enabled rental companies. Set to true to enable the rental company and false to disable it.
let COMPANIES = {
bird: true,
lime: true
}
@2xlink
2xlink / watermark.sh
Last active April 24, 2019 12:17
Watermarks photos of your personal documents using ImageMagick
#!/bin/bash
set -euo pipefail
if [[ $# -ne 2 ]]; then
echo "Usage: $0 IMAGE WATERMARK-TEXT"
exit 1
fi
FILE=$1
TEXT=$2
TARGET_FILE=${FILE%.*}-watermark.${FILE##*.}
@florianschmidt1994
florianschmidt1994 / custom_history.md
Last active July 23, 2019 17:24
Using custom fzf history with ctrl-r in zsh
function fh() {
   command=$(fc -ln 0|               # show history without line numbers
     tail -r         |               # reverse the order
     awk '!x[$0]++'  |               # drop duplicates (https://unix.stackexchange.com/a/193331)
     fzf -e +s \
         --color=light \
         --height=20 \
         --inline-info \
         --border \