Skip to content

Instantly share code, notes, and snippets.

View funkenstrahlen's full-sized avatar

Stefan Trauth funkenstrahlen

View GitHub Profile
@funkenstrahlen
funkenstrahlen / Calendar.swift
Created May 8, 2020 07:17 — forked from mecid/Calendar.swift
Calendar view in SwiftUI
import SwiftUI
fileprivate extension DateFormatter {
static var month: DateFormatter {
let formatter = DateFormatter()
formatter.dateFormat = "MMMM"
return formatter
}
static var monthAndYear: DateFormatter {
import UIKit
@IBDesignable
class SpinnerView : UIView {
override var layer: CAShapeLayer {
get {
return super.layer as! CAShapeLayer
}
}
//: Playground - noun: a place where people can play
import UIKit
import AVFoundation
// keep it running forever so it plays audio
import XCPlayground
XCPSetExecutionShouldContinueIndefinitely(true)
class AVPlayerTest {
//
// UserDefaults+PropertyWrapper.swift
// PodliveShared
//
// Created by Stefan Trauth on 18.06.19.
// Copyright © 2019 Stefan Trauth. All rights reserved.
//
import Foundation
@funkenstrahlen
funkenstrahlen / PrintDataAsString.swift
Created March 10, 2021 14:22 — forked from jkereako/PrintDataAsString.swift
LLDB commands to print a Data object as a String. It only works if the underlying data is actually a String.
// See: http://stackoverflow.com/questions/11531353/viewing-nsdata-contents-in-xcode#25097265
po String(data: data, encoding: .utf8)
// Objective-C equivalent.
// See: http://stackoverflow.com/questions/11531353/viewing-nsdata-contents-in-xcode#19626815
// p (char *)[buffer bytes]
@funkenstrahlen
funkenstrahlen / sshuttle helpers
Created January 26, 2013 10:21
some aliases for sshuttle
# sshuttle helpers
#
# To load, you can add a line in ~/.bashrc:
# source ~/.bashrc.d/sshuttle_helpers
#
# or add a few lines to load all files in ~/.bashrc.d
# for f in ~/.bashrc.d/*; do
# source $f;
# done
#
This file has been truncated, but you can view the full file.
[
{
"clu": 99803,
"CofX": 8,
"id": "EW002",
"ICAO": "",
"name": "Beveringen",
"nb": 53.016666666666666,
"el": 12.216666666666667,
"elev": 71,
This file has been truncated, but you can view the full file.
[
{
"clu": 99803,
"CofX": 8,
"id": "EW002",
"ICAO": "",
"name": "Beveringen",
"nb": 53.1,
"el": 12.13,
"elev": 71,
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
clu;CofX;id;ICAO;name;nb.;el.;elev;Hmod-H;type
99803;8;EW002;;Beveringen;53.10;12.13;71;;LAND
99804;8;EW003;;Calvoerde;52.25;11.19;55;;LAND
99805;8;EW004;;Dahlem-Berg;50.23;6.28;600;;LAND
99806;8;EW005;;Delitzsch;51.30;12.23;99;;LAND
99807;8;EW006;;Emden;53.20;7.09;0;;KUES
99808;8;EW007;;Foehr;54.44;8.35;0;;KUES
99809;8;EW008;;Freiamt;48.10;7.38;678;;LAND
99810;8;EW009;;Goosefeld;54.25;9.49;45;;LAND
99811;8;EW010;;Hagen-Dahl;51.18;7.34;409;;LAND
ffmpeg -i "Pollenflug Notifications.mp4" -acodec copy -crf 1 -vf scale=1080:1920,setsar=1:1 "Pollenflug Notifications upscaled.mp4"