Skip to content

Instantly share code, notes, and snippets.

View floriankrueger's full-sized avatar
🏠
Working from home

Florian Krüger floriankrueger

🏠
Working from home
View GitHub Profile
@floriankrueger
floriankrueger / html-editors.md
Created November 12, 2021 13:09 — forked from manigandham/rich-text-html-editors.md
Rich text / HTML editors and frameworks

Strictly Frameworks

Abstracted Editors

These use separate document structures instead of HTML, some are more modular libraries than full editors

@floriankrueger
floriankrueger / script.js
Last active December 14, 2020 15:18
Yael
// Yael.js
// Family
//
// Created by Galia & Arad
// on Nov 30th 2020
//
// Copyright © 2020 Family. All rights reserved
import { seroussi_daube as family } from './families'
import FamilyMember from './FamilyMember'
@floriankrueger
floriankrueger / Reachability+NetworkType.swift
Created April 30, 2018 10:25
Getting the current network connection type through Reachability and CoreTelephony (based on https://stackoverflow.com/a/36451194/766873)
import Reachability
import CoreTelephony
enum NetworkType {
case unknown
case noConnection
case wifi
case wwan2g
case wwan3g
case wwan4g
#!/usr/bin/env xcrun swift -F Carthage/Build/Mac
import Foundation
import Markingbird
protocol Streamable {
var title: String { get }
var body: String { get }
}
@floriankrueger
floriankrueger / NSDate+Decodable.swift
Created April 5, 2016 07:11
Decoding NSDate using Himotoki before 2.0 (-beta)
import Foundation
import Himotoki
enum ISO8601DateError: ErrorType {
case WrongFormat(string: String)
}
private let iso8601DateFormatter = NSDate.createIso8601DateFormatter()
extension NSDate: Decodable {
@floriankrueger
floriankrueger / generics_in_swift_2.swift
Last active October 30, 2015 16:00
specialized subclass of generic superclass
import Foundation
struct Something {}
class Base<T> {
let something: T
init(something: T) {
self.something = something
}
@floriankrueger
floriankrueger / bump_build_number.sh
Created July 22, 2014 07:10
Xcode Build Configuration
echo "Bumping build number..."
plist=${PROJECT_DIR}/${INFOPLIST_FILE}
# increment the build number (ie 115 to 116)
buildnum=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${plist}")
if [[ "${buildnum}" == "" ]]; then
echo "No build number in $plist"
exit 2
fi

Keybase proof

I hereby claim:

  • I am floriankrueger on github.
  • I am xcuze (https://keybase.io/xcuze) on keybase.
  • I have a public key whose fingerprint is A8F9 C2E3 2499 87C1 22DB 1278 6E1B 6980 6A6A 183B

To claim this, I am signing this object:

@floriankrueger
floriankrueger / XQCView.m
Last active December 29, 2015 11:59
Cocoa (Touch) templates for common subclasses
#import "XQCView.h"
@interface XQCView ()
@end
@implementation XQCView
#pragma mark - Memory Management