Skip to content

Instantly share code, notes, and snippets.

View sawadashota's full-sized avatar

sawadashota sawadashota

View GitHub Profile
require 'esa'
require 'json'
require 'pry'
desc ''
task :default do
client = Esa::Client.new(
access_token: "<your access token>",
current_team: '<your team name>'
@sawadashota
sawadashota / mechanize_with_local_html.rb
Last active September 16, 2016 09:23 — forked from zakuroishikuro/mechanize_with_local_html.rb
Mechanizeでローカルファイルを扱う (ディレクトリ内のhtmlの場合)
require 'mechanize'
name = "../foo.html"
path = File.expand_path(name, __FILE__)
agent = Mechanize.new
page = agent.get("file:///#{path}")