Skip to content

Instantly share code, notes, and snippets.

View riscait's full-sized avatar

Ryunosuke Muramatsu riscait

View GitHub Profile
@Gab-km
Gab-km / github-flow.ja.md
Last active October 29, 2024 10:17 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@hiroakit
hiroakit / LeapYear.swift
Last active June 28, 2017 01:31
指定した年の範囲で閏年を算出 (Swift 3, Playground)
import UIKit
/// 閏年か判断する
///
/// - parameter year: 年
///
/// - returns: 閏年の場合にtrue、それ以外はfalse
func isLeapYear(year: Int) -> Bool {
// 4以上ではない場合は弾く
guard year >= 4 else {
@riscait
riscait / .bashrc
Last active July 7, 2019 11:05
ホームディレクトリ用のMy .bashrc
# .bashrcを編集する
alias vibash='vi ~/.bashrc'
# .bashrcを更新する
alias rebash='source ~/.bashrc'
# Git
alias gst='git status'
alias gdf='git diff --staged'
alias gcm='git commit -m'
alias gcma='git commit --amend'
@yoshimana
yoshimana / BrewBundleの使い方.md
Created October 29, 2019 07:23
Brew Bundleの使い方

Brew Bundle

インストール

$ brew tap Homebrew/bundle
@uhooi
uhooi / Makefile
Last active July 17, 2023 02:18
Makefile for iOS App development
PRODUCT_NAME := Foo
SCHEME_NAME := ${PRODUCT_NAME}
WORKSPACE_NAME := ${PRODUCT_NAME}.xcworkspace
UI_TESTS_TARGET_NAME := ${PRODUCT_NAME}UITests
TEST_SDK := iphonesimulator
TEST_CONFIGURATION := Debug
TEST_PLATFORM := iOS Simulator
TEST_DEVICE ?= iPhone 11 Pro Max
TEST_OS ?= 13.3
@riscait
riscait / .Brewfile
Last active April 17, 2021 20:49
HomeBrewで管理したいアプリのリストファイル。ホームディレクトリに置いた場合は `brew bundle --global`
# https://github.com/Homebrew/homebrew-bundle
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
cask_args appdir: "/Applications"
# ----------------------------------------
# brew
# ----------------------------------------
@craiglabenz
craiglabenz / chat_message_render_box.dart
Last active October 19, 2024 17:28
Demonstrates a custom RenderObject that draws chat messages like WhatsApp, where the `sentAt` timestamp is tucked into the last line if it fits
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override