Skip to content

Instantly share code, notes, and snippets.

View moaible's full-sized avatar

Hiromi Motodera moaible

View GitHub Profile
// 多変数の型パラ持ちのprotocolでtype-erasureを書く時に、共変性をサポートしたいが
// 素直なtype-erasureでは引数にバラバラにpropertyを渡すことでしか共変な型消しをinitできなかった。
class Animal {}
class Cat: Animal {}
protocol A {
associatedtype X
var x: X { get }
@jetmind
jetmind / ini.swift
Last active April 17, 2024 16:07
Parsing .ini file in Swift
import Foundation
typealias SectionConfig = [String: String]
typealias Config = [String: SectionConfig]
func trim(_ s: String) -> String {
let whitespaces = CharacterSet(charactersIn: " \n\r\t")
return s.trimmingCharacters(in: whitespaces)
@voluntas
voluntas / erlang.rst
Last active February 2, 2023 12:00
Erlang/OTP (仮)

Erlang/OTP (仮)

日時:2016-09-21
作:@voluntas
バージョン:1.0.1
url:https://voluntas.github.io/

2016 年 6 月 24 日に行われる BPStudy の発表資料です

@fukamachi
fukamachi / hubotify.ros
Created December 24, 2015 14:35
Generate a Hubot script (.js file) from the given Roswell script.
#|-*- mode:lisp -*-|#
#|
exec ros -Q -- $0 "$@"
|#
#|
Generate a Hubot script (.js file) from the given Roswell script.
Usage:
$ hubotify <roswell script>
@mizchi
mizchi / フロントエンドを楽にするために.md
Last active June 21, 2025 08:07
フロントエンドを楽にするために

フロントエンドを楽にするために

Qiitaを支えたい技術 at 時雨祭

About

  • HN: mizchi
  • Qiitaの方からきました(入社半年たったらしい)
  • Reactオジサンはそろそろ飽きてきた
  • Angularに興味が無いのでこっちにきた
@Inferis
Inferis / ViewController.swift
Last active December 1, 2019 23:27
Beginnings of a GCD wrapper in swift
import UIKit
import QuartzCore
class ViewController: UIViewController {
@IBOutlet weak var label: UILabel
@IBOutlet weak var counter: UILabel
override func viewDidLoad() {
super.viewDidLoad()