Skip to content

Instantly share code, notes, and snippets.

View koishi's full-sized avatar
⌨️
Now assembling keyboard

Koichiro Oishi koishi

⌨️
Now assembling keyboard
View GitHub Profile
@koishi
koishi / VideoCardsLifetimeList.md
Last active February 4, 2024 13:55
ビデオカード購入履歴
No. ビデオカード 備考
1 Matrox Millennium 初めてのビデオカード, 2D最強
2 VooDoo1 PURE 3D(Canopus)
3 RIVA 128 PWR128P(Canopus)
4 VooDoo2 PURE3D II(Canopus)
5 Matrox G400
6 ATI Rage 128 詳細不明
7 GeForce 256 DDR ERAZOR X2(ELSA)
8 VooDoo 5 5500
@koishi
koishi / gist:97696cb6bdf9624afcf37450df2b625b
Last active October 1, 2019 03:28
Xcode copy DeviceSupport Files
cp -r /Applications/Xcode_11.1_GM_Seed.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.* /Applications/Xcode_10.3.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
@koishi
koishi / Preferences.sublime-settings.json
Last active June 9, 2019 02:25
SublimeText Preferemces.sublime-settings
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
"draw_white_space": "all",
"font_size": 18,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"theme": "Default.sublime-theme",
@koishi
koishi / custom.json
Last active September 13, 2019 03:56
Karabiner Elements Custgom Json ~/.config/karabiner/assets/complex_modifications
{
"title": "カスタム",
"rules": [
{
"description": "左option: 英数/右command: かな",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_option",
@koishi
koishi / RegularExpressionZIPCode.swift
Last active June 21, 2017 00:20
Regular Expression for ZIPCode
extension String {
func isZIPCode() -> Bool {
do {
// let zipcodeRgx = "^\\d{7}$"
let zipcodeRgx = "^\\d{4}-\\d{3}$"
let regxp = try NSRegularExpression(pattern: zipcodeRgx, options: [])
let matches = regxp.matches(in: self, options:[],
range:NSMakeRange(0, (self as NSString).length))
return (matches.count > 0)
} catch {
@koishi
koishi / SwiftRational.swift
Last active August 9, 2017 08:28
SwiftRational
import Foundation
struct Rational {
let numerator: Int
let denominator: Int
init(numerator: Int, denominator: Int) throws {
if denominator == 0 {
throw NSError(domain: "denominator must not be null", code: -1, userInfo: nil)
}
@koishi
koishi / settings.json
Created May 12, 2017 03:02
Visual Studio Code settings.json
// 既定の設定を上書きするには、このファイル内に設定を挿入します
{
"editor.fontSize": 16,
"workbench.colorTheme": "Monokai",
"editor.renderWhitespace": "all"
}
@koishi
koishi / SwiftPremiumFriday.swift
Created March 1, 2017 10:57
SwiftPremiumFriday
import Foundation
func lastMonthDate(year: Int, month: Int) -> Date? {
let formatter = DateFormatter()
formatter.dateFormat = "yyyyMMd"
guard let date = formatter.date(from: "\(year)\(String(format: "%02d", month))1") else {
return nil
}
var comps = DateComponents()
@koishi
koishi / gist:255746b82b6f62b92bf0
Created November 15, 2015 22:51
Swift関連スライドまとめ
Swift : クラス継承とプロトコル拡張を比べてみる #yidev
http://www.slideshare.net/tomohirokumagai54/swift-yidev
Swift 2.0 で変わったところ「前編」 #cswift
http://www.slideshare.net/tomohirokumagai54/swift-20-cswift?related=1
Swift 2.0 で変わったところ「後編」 #cswift
http://www.slideshare.net/tomohirokumagai54/swift-20-cswift-53225022?related=2
Xcode 7 の新しいところ #cm_ios9
http://aesencryption.net
http://www.appcove.com/tool/aes