Skip to content

Instantly share code, notes, and snippets.

View bokuo-okubo's full-sized avatar
🏠
Working from home

Yohei Okubo bokuo-okubo

🏠
Working from home
  • Tokyo
View GitHub Profile
@bokuo-okubo
bokuo-okubo / machine.js
Last active March 30, 2021 06:35
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@bokuo-okubo
bokuo-okubo / machine.js
Created March 29, 2021 12:00
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@bokuo-okubo
bokuo-okubo / machine.js
Last active March 29, 2021 12:00
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions

subscribe non default features

/github subscribe {user}/{repo} reviews comments branches commits:all
@bokuo-okubo
bokuo-okubo / README.md
Last active October 23, 2017 13:26
HammerSpoonConfig

my hammerspoon confing

require 'date'
require 'pathname'
ARTICLE_PATH = 'source/contents/articles/'
STUB_START_DATE = '2018-01-01'
namespace :stub do
@article_path = Pathname.pwd + Pathname.new(ARTICLE_PATH)
class InvalidSemanticVersionError < StandardError; end
class SemanticVersion
def initialize(sem_str)
raise InvalidSemanticVersionError unless _valid_schema? sem_str
@version_ary = sem_str.split('.').freeze
end
def version_ary
@bokuo-okubo
bokuo-okubo / initialize.sh
Last active December 13, 2016 08:51
create rails env
#!/bin/bash
sudo apt-get update -y
# Install the rbenv and Ruby dependencies with apt-get:
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs