This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
fileprivate extension DateFormatter { | |
static var month: DateFormatter { | |
let formatter = DateFormatter() | |
formatter.dateFormat = "MMMM" | |
return formatter | |
} | |
static var monthAndYear: DateFormatter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
@IBDesignable | |
class SpinnerView : UIView { | |
override var layer: CAShapeLayer { | |
get { | |
return super.layer as! CAShapeLayer | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: 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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UserDefaults+PropertyWrapper.swift | |
// PodliveShared | |
// | |
// Created by Stefan Trauth on 18.06.19. | |
// Copyright © 2019 Stefan Trauth. All rights reserved. | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i "Pollenflug Notifications.mp4" -acodec copy -crf 1 -vf scale=1080:1920,setsar=1:1 "Pollenflug Notifications upscaled.mp4" |
NewerOlder