Skip to content

Instantly share code, notes, and snippets.


Tomohiro Imaizumi imaizume

View GitHub Profile
imaizume / meet.rb
Created Jun 3, 2020
A simple Ruby script to open google meet URL from CLI. Thankfully inspied by miyagawa's perl script (
View meet.rb
#!/usr/bin/env ruby
require 'date'
require 'pp'
calendar = ''
regex = /^https?:\/\/meet\\/[\w-]+$/i
now =
ends = now + Rational(1, 24) # within 1h
imaizume / pod_updatable_info.awk
Last active May 18, 2020
A simple awk script which parse output from "pod outdated" and format into markdown table so that you can easily have a grasp of update availability for libraries you use.
View pod_updatable_info.awk
# pod_updatable_info.awk
# Created by Tomohiro Imaizumi on 5/18/20.
# Copyright © 2017 Tomohiro Imaizumi. Licensed under MIT.
print "| Library | Current | Podfile Latest | Global Latest | `pod update` | Podfile Specification |"
print "|:---:|:---:|:---:|:---:|:---:|:---:|"
imaizume / index.html
Created Feb 2, 2020
View index.html
<!DOCTYPE html>
<html lang="ja">
<meta charset="UTF-8">
// .hidden { display: none; } // [A] 用
.hidden2 { display: none; } // [B] 用
#content {
imaizume /
Last active Sep 2, 2019
Simple ruby script to generate screen shot preview as markdown files from snapshot testing result.


For iOSSnapshotTestCase (screenshots-preview-generator-for-ios-snapshot-testcase.rb)

This scripts works under the condition that your test case

  • includes .OS, .screenSize to fileNameOptions at least.
  • specifies folderName which will be the markdown file name.
  • specifies identifier for each FBSnapshotVerifyView call which will be the header of columns.
imaizume / RemoteConfigManager.swift
Last active Jun 16, 2019
How to manage parameters for Firebase Remote Config in Swift easily.
View RemoteConfigManager.swift
// MARK:- definition
/// Constraint for Parameter Type Definition.
protocol ParameterProtocol {
/// Parameter name in Firebase console. e.g. "beta_test_1"
var name: String { get }
/// Default value to be set to Remote Config object.
var defaultValue: [String: NSObject] { get }
imaizume /
Last active Jan 9, 2019 — forked from radioboo/



井戸端iOSとは、昼休み1時間+MTG分の30分の計1時間30分を利用して、 NBFオフィスのコラボのプロジェクターとスクリーンを利用して、 最新のスマホアプリ開発技術に関する動画を見ながらご飯を食べて、 交流する場です。


s3_movies=($(aws s3 ls --profile=s3-admin s3:// | awk '{print $4 " " $5}'))
local_movies=($(ls -1 *.mp4))
for s in "${s3_movies[@]}"; do
imaizume / post-checkout
Last active Jun 6, 2017
新規にブランチを作成したら自動で空コミットを作成するgit hook
View post-checkout
#!/usr/bin/env ruby
before, after, switch = ARGV
exit 0 unless before == after
exit 0 unless switch.to_i == 1
branch = `git rev-parse --abbrev-ref HEAD`
msg = "Created new branch #{branch}"
system(%(git commit --allow-empty -m "#{msg}"))
imaizume / izm.svg
Created May 2, 2017
source of my icon
View izm.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
imaizume / replace-commas-and-periods.rb
Created Feb 5, 2017
View replace-commas-and-periods.rb
#!/usr/bin/env ruby
# Tex files to be committed
tex_files_changed = `git diff --cached --name-only HEAD | grep -E '.*\.tex$'`
# Replace into commas and periods
THE_ENCODING = 'utf-8'
tex_files_changed.each_line do |texname|
puts "Replace into commas and periods in #{texname}"
You can’t perform that action at this time.