Skip to content

Instantly share code, notes, and snippets.

@akuraru
akuraru / memo.md
Last active February 20, 2024 02:55
rbenvでinstallがうまくいかないかも?

intel macである。

  • 3.2.2 はインストールできる。
    • Xcode.app はできる
    • Xcode 15.2.app はできる
  • 3.2.3 はインストールできない場合がある。
    • Xcode.app はできる
    • Xcode_15.2.app はできる
    • Xcode .app はできる
  • Xcode 15.app はできる
@akuraru
akuraru / calendar.log
Created March 13, 2020 16:00
カレンダーの調査
gregorian Saturday, March 14, 2020 at 12:55:29 AM Japan Standard Time
buddhist Saturday, March 14, 2563 BE at 12:55:29 AM Japan Standard Time
chinese Saturday, Second Month 21, 2020(geng-zi) at 12:55:29 AM Japan Standard Time
coptic Saturday, Baramhat 5, 1736 ERA1 at 12:55:29 AM Japan Standard Time
ethiopicAmeteMihret Saturday, Megabit 5, 2012 ERA1 at 12:55:29 AM Japan Standard Time
ethiopicAmeteAlem Saturday, Megabit 5, 7512 ERA0 at 12:55:29 AM Japan Standard Time
hebrew Saturday, 18 Adar 5780 at 12:55:29 AM Japan Standard Time
iso8601 Saturday, March 14, 2020 at 12:55:29 AM Japan Standard Time
indian Saturday, Phalguna 24, 1941 Saka at 12:55:29 AM Japan Standard Time
islamic Saturday, Rajab 20, 1441 AH at 12:55:29 AM Japan Standard Time
@akuraru
akuraru / git.md
Last active December 20, 2019 01:46
ユビレジでのgit、githubの使い方

ubiregiの情報共有システムからコピペして少し加工したものです

思想

スクラムでは透明性・検査・適応の三つの柱からなっている。 自分の作業を透明性を上げ、レビュー(検査)をして、修正(適応)していくのを素早く行なっていくために今の方法を取っている。より良い方法があれば改善していきたい。

git

意味のある単位で細かくコミットする

  • 自分のやったことをわかりやすくする
  • レビューしやすくする
@akuraru
akuraru / alphabet.swift
Created October 14, 2018 14:43
a〜zまで何かやりたいが為に毎回こんな感じのコードを書かないといけなくてしんどい
for val in UnicodeScalar("a").value...UnicodeScalar("z").value {
let x = String(UnicodeScalar(val)!)
print(x)
}
import Foundation
Date.timeIntervalSinceReferenceDate
Date.timeIntervalBetween1970AndReferenceDate
Date().timeIntervalSince1970
Date().timeIntervalSinceReferenceDate
Date().addingTimeInterval(-Date().timeIntervalSinceReferenceDate)
978307200 / 60 / 60 / 24 / 365
print(String(554378506, radix: 2))
@akuraru
akuraru / HeiseiTests.swift
Last active April 13, 2018 08:32
そのうち壊れるテスト書いた
import XCTest
class HeiseiTests: XCTestCase {
func test平成じゃない() {
let calendar = Calendar(identifier: .japanese)
let component = DateComponents(
calendar: calendar,
timeZone: nil,
era: 235, // 平成
year: 31,
@akuraru
akuraru / 休日一覧.md
Last active August 18, 2017 04:57
祝日についての覚書
休日 期日 適用開始年 適用終了年
元日 1月1日 1948年7月20日 -
元始祭 1月3日 1873年10月14日 1948年7月20日
新年宴会 1月5日 1873年10月14日 1948年7月20日
成人の日 1月15日 1948年7月20日 2000年1月1日
成人の日 1月の第2月曜日 2000年1月1日 -
孝明天皇祭 1月30日 1873年10月14日 1912年
紀元節 2月11日 1873年10月14日 1948年7月20日
struct MyStruct<T: Equatable>: Equatable {
let x: T;
}
func ==<T>(x: MyStruct<T>, y: MyStruct<T>) -> Bool {
return x.x == y.x
}
let s1 = MyStruct(x: 1)
let s2 = MyStruct(x: 2)
@akuraru
akuraru / gist:7388c5f93080d38f3d96749bae820325
Last active May 31, 2016 02:07
Arrayを逆順に評価する
let array = [1, 2, 3, 4, 5]
for num in array.reverse() {
print("num: \(num)");
}
for (index, num) in array.enumerate().reverse() {
print("num: \(num)");
print("inde: \(index)\n");
}
Pod::Spec.new do |s|
s.name = "AMoAd"
s.version = "3.9.7"
s.summary = "AMoAdネイティブ広告(SDK for iOS)"
s.homepage = "https://github.com/amoad/amoad-ios-sdk"
s.ios.deployment_target = '7.0'
s.license = { :type => 'o', :file => 'LICENSE' }
s.author = { "amoad" => "amoad@github.com" }
s.source = {
:tag => "v3.9.7",