Skip to content

Instantly share code, notes, and snippets.

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

Tatsuya Arai cutmail

🏠
Working from home
View GitHub Profile
@sys1yagi
sys1yagi / kotlin.md
Last active June 7, 2017 08:50
object, companion object, top level(package level)の使い分け

object

シングルトンの代替え (Dagger通さなくてもいいやつ)

companion object

staticの代替え

例えばHogeActivity.createIntent()など あと定数とかね

企業理念

進化し続けるプロフェッショナル集合体

全体行動指針

変化追従 | 自考自走 | 先義後利 | 自他共栄



チームとして

@rmanzoku
rmanzoku / puma_readme_ja.md
Last active March 24, 2021 09:50
Puma readme

Puma ドキュメント

2017/05/16 v3.8.2 READMEの翻訳。

Description

Pumaは、シンプルで、速くて、マルチスレッド、そして高い並列性を持ったRuby/RackアプリケーションのHTTP1.1サーバです。 Pumaは、開発とプロダクション環境どちらにも使えます。 ベストなスループットを得るために、スレッド実装のあるRubiniusもしくはJRubyの使用を強く勧めます。

Built For Speed & Concurrency

@candostdagdeviren
candostdagdeviren / Dangerfile
Last active February 1, 2023 10:40
Sample Dangerfile for iOS Project
# PR is a work in progress and shouldn't be merged yet
warn "PR is classed as Work in Progress" if github.pr_title.include? "[WIP]"
# Warn when there is a big PR
warn "Big PR, consider splitting into smaller" if git.lines_of_code > 500
# Ensure a clean commits history
if git.commits.any? { |c| c.message =~ /^Merge branch '#{github.branch_for_base}'/ }
fail "Please rebase to get rid of the merge commits in this PR"
end
//
// UIAlertController+Rx.swift
//
import Foundation
import RxSwift
protocol RxAlertActionType {
associatedtype Result
@gbitaudeau
gbitaudeau / Int+Extenstion.swift
Created March 3, 2017 09:44
iOS solution to convert large numbers to smaller format. See : http://stackoverflow.com/a/35504720/1661338
extension Int {
func formatUsingAbbrevation () -> String {
let numFormatter = NSNumberFormatter()
typealias Abbrevation = (threshold:Double, divisor:Double, suffix:String)
let abbreviations:[Abbrevation] = [(0, 1, ""),
(1000.0, 1000.0, "K"),
(100_000.0, 1_000_000.0, "M"),
(100_000_000.0, 1_000_000_000.0, "B")]
@JosiasSena
JosiasSena / DeCryptor.java
Last active September 15, 2025 01:58
Encryptor and Decryptor for data encryption.decryption using the Android KeyStore.
/**
_____ _____ _
| __ \ / ____| | |
| | | | ___| | _ __ _ _ _ __ | |_ ___ _ __
| | | |/ _ \ | | '__| | | | '_ \| __/ _ \| '__|
| |__| | __/ |____| | | |_| | |_) | || (_) | |
|_____/ \___|\_____|_| \__, | .__/ \__\___/|_|
__/ | |
|___/|_|
*/
@timakin
timakin / go-job-worker.md
Last active June 6, 2024 07:06
Go製ジョブワーカーライブラリの比較

ライブラリ検索するときに便利 -> https://golanglibs.com

  • benmans/goworker(1584 stars)
    • redis-backed
    • Go製のジョブワーカーでは一番メジャーぽい
    • 当初Enqueueがなかったようだが、2015/12に追加されてる: 参考
    • リポジトリ自体は4年前からあって、7か月前にも更新はされてる
  • rallison/go-workers(816 stars)
    • redis-backed  - 機能的にはgoworkerとほぼ変わらなさそう
@haruair
haruair / pre-commit-swiftlint.sh
Created December 5, 2016 13:25
Git Client-side pre-commit hook for SwiftLint
#!/bin/bash
#
# hook script for swiftlint. It will triggered when you make a commit.
#
# If you want to use, type commands in your console.
# $ ln -s ../../pre-commit-swiftlint.sh .git/hooks/pre-commit
# $ chmod +x .git/hooks/pre-commit
LINT=$(which swiftlint)
@sys1yagi
sys1yagi / fabfile.py
Last active November 14, 2016 00:51 — forked from shikajiro/fabfile.py
Script to perform the build of Android on another machine
# Script Name : fabfile.py
# Author : shikajiro
# Created : 2016-11-03
# Last Modified : 2016-11-03
# Version : 1.0.0
# Modifications :
# Description :
# Script to perform the build of Android on another machine
# By performing such a build of severely time on another machine,
# it is possible to ensure the CPU resources of the development machine,