Skip to content

Instantly share code, notes, and snippets.

View ken0nek's full-sized avatar

Ken Tominaga ken0nek

  • San Francisco, CA
View GitHub Profile
diff --git a/DemoBots/GeometryExtensions.swift b/DemoBots/GeometryExtensions.swift
index 5c5f97c..e5dc712 100644
--- a/DemoBots/GeometryExtensions.swift
+++ b/DemoBots/GeometryExtensions.swift
@@ -30,12 +30,6 @@ extension float2 {
}
}
-/*
- Extend `float2` to declare conformance to the `Equatable` protocol.
import UIKit
postfix operator °
protocol IntegerInitializable: ExpressibleByIntegerLiteral {
init (_: Int)
}
extension Int: IntegerInitializable {
postfix public static func °(lhs: Int) -> CGFloat {
@noppefoxwolf
noppefoxwolf / FaceDetector.swift
Last active August 13, 2019 12:29
Easy use CIDetector.
//
// FaceDetector.swift
//
// Created by Tomoya Hirano on 2016/05/21.
// Copyright © 2016年 Tomoya Hirano. All rights reserved.
//
import UIKit
struct Face {
import UIKit
enum Currency{
case USD
case EUR
case AUD
case CAD
case HKD
case INR
@YusukeHosonuma
YusukeHosonuma / ValidationViewController.swift
Created April 11, 2016 16:32
RxSwift - Validation sample
import UIKit
import RxSwift
import RxCocoa
let requiredUserNameLength = 5
let requiredPasswordLength = 5
let limitUserNameLength = 20
class ValidationViewController: UIViewController {
@michaeldorner
michaeldorner / gist:746c659476429a86a9970faaa6f95ec4
Last active January 4, 2024 10:34 — forked from rgcottrell/gist:5b876d9c5eea4c9e411c
An FM Synthesizer in Swift using AVAudioEngine
import AVFoundation
import Foundation
// The single FM synthesizer instance.
private let gFMSynthesizer: FMSynthesizer = FMSynthesizer()
public class FMSynthesizer {
//: Types for currency conversion
// https://www.natashatherobot.com/swift-money-phantom-types/
import Foundation
struct Money {
enum Currency {
case GBP, EUR, USD
}
@tzmartin
tzmartin / ios.settings.schemes.md
Created January 13, 2016 18:27
iOS Settings URL Scheme List

Settings URL schemes:

Note: < i=OS 5.1 use prefs:. > 5.1 use app-settings:

  • app-settings:root=General&path=About
  • app-settings:root=General&path=ACCESSIBILITY
  • app-settings:root=AIRPLANE_MODE
  • app-settings:root=General&path=AUTOLOCK
  • app-settings:root=General&path=USAGE/CELLULAR_USAGE
  • app-settings:root=Brightness

Oh My Fish Plugins

ansible: Ansible development package for Oh My Fish

apt: Short and friendly command wrapper for APT

battery: OS X and Linux compatible battery utilities

brew: Oh My Fish plugin to integrate Homebrew paths into shell.

@corosukeK
corosukeK / gist:f5fc72d472d930991067
Created September 10, 2015 07:23
Syncで使われているライブラリ(ライセンス表記から抽出した)
・Cocoapods
AF+Image+Helper
ARChromeActivity
Aspects
Bolts
CocoaSecurity
Colours
Crashlytics
DACircularProgress