Skip to content

Instantly share code, notes, and snippets.

View kawakubox's full-sized avatar

kawakubox kawakubox

View GitHub Profile
@kawakubox
kawakubox / initial_setup.md
Last active September 5, 2023 04:31
端末初期セットアップ

Command Line Tools for Xcode

xcode-select --install

dotfiles

mkdir ~/workspace
gem_group :development, :test do
gem 'factory_bot_rails'
gem 'faker'
gem 'pry-rails'
gem 'slim-rails'
gem 'yard'
end
gem_group :test do
gem 'rspec-rails'
@kawakubox
kawakubox / switch.rb
Last active October 27, 2017 05:27
Nintendo Switch の在庫確認する bitbar plug-in
#!/usr/bin/env /Users/kawakubox/.rbenv/shims/ruby
#  以下の 2gem を install していることが前提
# $ gem install 'faraday'
# $ gem install 'oga'
require 'faraday'
require 'oga'
watchlist = [
@kawakubox
kawakubox / npb.rb
Created July 10, 2016 13:32
Bitbarでプロ野球の試合経過を表示するrubyスクリプト
#!/usr/bin/env /Users/kawakubox/.rbenv/shims/ruby
require 'httpclient'
require 'oga'
client = HTTPClient.new
res = client.get('http://baseball.yahoo.co.jp/npb/')
puts '⚾'
puts '---'
p 'hello world.'