Skip to content

Instantly share code, notes, and snippets.

Avatar

Stefan Trauth funkenstrahlen

View GitHub Profile
@funkenstrahlen
funkenstrahlen / Calendar.swift
Created May 8, 2020 — forked from mecid/Calendar.swift
Calendar view in SwiftUI
View Calendar.swift
import SwiftUI
fileprivate extension DateFormatter {
static var month: DateFormatter {
let formatter = DateFormatter()
formatter.dateFormat = "MMMM"
return formatter
}
static var monthAndYear: DateFormatter {
View dwd-mosmix-stations-degrees.json
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,
View dwd-mosmix-stations.json
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,
View dwd-mosmix-stations.csv
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
View UserDefaults+PropertyWrapper.swift
//
// UserDefaults+PropertyWrapper.swift
// PodliveShared
//
// Created by Stefan Trauth on 18.06.19.
// Copyright © 2019 Stefan Trauth. All rights reserved.
//
import Foundation
View app-preview-upscale-command.sh
ffmpeg -i "Pollenflug Notifications.mp4" -acodec copy -crf 1 -vf scale=1080:1920,setsar=1:1 "Pollenflug Notifications upscaled.mp4"
View pollenflug-gebiete.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:071062e9b65a012cd3a31cf10fe7d582
javascript:location.href='https://fyyd.de/fyydify-bm/'+btoa(location.href)
View AVPlayerBug.playground.swift
//: 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 {
View SpinnerView.swift
import UIKit
@IBDesignable
class SpinnerView : UIView {
override var layer: CAShapeLayer {
get {
return super.layer as! CAShapeLayer
}
}
You can’t perform that action at this time.