Skip to content

Instantly share code, notes, and snippets.

@imaizume
imaizume / azusa_colors.scss
Last active March 21, 2023 13:24
Color codes with scss variables for Azusa Colors (http://sanographix.github.io/azusa-colors/)
/* hex */
$blue_hex: #02a8f4;
$red_hex: #ff5152;
$purple_hex: #b867c6;
$orange_hex: #ff9000;
$turquoiz_hex: #01bbd4;
$pink_hex: #ff3f80;
$green_hex: #33b490;
$navy_hex: #464e70;
$ivory_hex: #fff5e3;
@imaizume
imaizume / update_memo.rb
Last active September 19, 2022 11:50
A simple workflow to save YouTube video to Notion page.
# Copyright (c) 2022 Tomohiro Imaizumi All rights reserved.
require 'uri'
require 'net/http'
require "json"
require 'optparse'
# Secrets
NOTION_API_TOKEN = ENV["NOTION_API_TOKEN"]
@imaizume
imaizume / html5-blank-template
Created August 6, 2022 09:24 — forked from iwek/html5-blank-template
HTML5 Blank Template with jQuery
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Blank HTML5</title>
<style>
</style>
</head>
<body>
@imaizume
imaizume / .gitignore
Last active September 22, 2021 11:59
TrelloのカードをSpreadSheetで記録するGoogle Apps Script
# Created by https://www.gitignore.io/api/webstorm
### WebStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff:
.idea
//
// ViewController.swift
//
// Created by @imaizume on 2021/09/03.
//
import UIKit
class ViewController: UIViewController {
@imaizume
imaizume / RemoteConfigManager.swift
Last active February 18, 2021 06:36
How to manage parameters for Firebase Remote Config in Swift easily.
// 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
imaizume / meet.rb
Created June 3, 2020 12:49
A simple Ruby script to open google meet URL from CLI. Thankfully inspied by miyagawa's perl script (https://gist.github.com/miyagawa/986e4034a09e6c822a832a4e283f331f)
#!/usr/bin/env ruby
require 'date'
require 'pp'
calendar = 'your-calendar@example.com'
regex = /^https?:\/\/meet\.google.com\/[\w-]+$/i
now = DateTime.now
ends = now + Rational(1, 24) # within 1h
@imaizume
imaizume / pod_updatable_info.awk
Last active May 18, 2020 14:46
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.
#
# pod_updatable_info.awk
#
# Created by Tomohiro Imaizumi on 5/18/20.
# Copyright © 2017 Tomohiro Imaizumi. Licensed under MIT.
#
BEGIN {
print "| Library | Current | Podfile Latest | Global Latest | `pod update` | Podfile Specification |"
print "|:---:|:---:|:---:|:---:|:---:|:---:|"
@imaizume
imaizume / index.html
Created February 2, 2020 05:55
ボタンによるメニュー表示と非表示切り替えのサンプル
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>sample</title>
<style>
// .hidden { display: none; } // [A] 用
.hidden2 { display: none; } // [B] 用
#content {
@imaizume
imaizume / README.md
Last active September 2, 2019 07:52
Simple ruby script to generate screen shot preview as markdown files from snapshot testing result.

README

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.