RubyKaigi 2018が仙台の国際センターで開催されるということでせっかくなので仙台近郊のオススメスポットを紹介します。
- 仙台市内観光
- 周遊バスにのると主要な観光スポットを全部まわれます
- http://loople-sendai.jp/
- 主要観光スポットとは
- 仙台城跡
- 瑞鳳殿
- 晩翠草堂
#!/usr/bin/ruby | |
# <bitbar.title>Coincheck Market Price</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>koichiro</bitbar.author> | |
# <bitbar.author.github>koichiro</bitbar.author.github> | |
# <bitbar.desc>Test</bitbar.desc> | |
# <bitbar.image></bitbar.image> | |
require 'open-uri' |
RubyKaigi 2018が仙台の国際センターで開催されるということでせっかくなので仙台近郊のオススメスポットを紹介します。
require 'nokogiri' | |
require 'trello' | |
Trello.configure do |config| | |
config.developer_public_key = "PUBLIC_KEY" | |
config.member_token = "TOKEN" | |
end | |
def issue_tracking doc | |
r = [] |
koichiro@lordbritish ~ % ruby bc.rb to_sym.rb | |
#************************************************************ | |
# to_sym.rb | |
# "hoge".to_sym | |
# | |
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>========== | |
0000 trace 1 ( 1) | |
0002 putstring "hoge" | |
0004 opt_send_simple <callinfo!mid:to_sym, argc:0, ARGS_SKIP> | |
0006 leave |
Groonga::Schema.create_table("users") do |t| | |
t.integer "id" | |
t.short_text "uid" | |
t.short_text "name" | |
t.short_text "email" | |
t.short_text "real_name" | |
t.short_text "business_name" | |
t.short_text "kana_name" | |
t.short_text "display_name" | |
t.text "profile" |
# "\x34AC23" | |
def hex2bin s | |
s = s[2, s.length] | |
raise "Not a valid hex string" unless(s =~ /^[\da-fA-F]+$/) | |
r = s.scan(/../).map{ |b| b.to_i(16) }.pack('C*') | |
r.force_encoding("UTF-8") | |
end |
cookbook 'build-essential' | |
cookbook 'openssl' | |
cookbook 'mysql', | |
:git => 'https://github.com/9minutesnooze/mysql.git', | |
:branch => 'mysql56' |
#!/bin/sh | |
period=3 | |
archive_path='/var/backups/mysql' | |
filename=mysql-`date +%Y%m%d` | |
mysqldump --opt --password=pass -h host -P 3306 -u user database > $archive_path/$filename.sql | |
gzip $archive_path/$filename.sql |
# Source code embedded plugin for tDiary. | |
# Original Copyright (C) 2005 bashi <http://www.cc.ariake-nct.ac.jp/~bashi/d/?date=20051010#p01> | |
# Modified Copyright (C) 2007,2008 Koichiro Ohba <[email protected]> | |
# License under GPL2. | |
require 'langscan' | |
module LangScan | |
def self.choose_by_abbrev(hint) |
# -*- coding: utf-8 -*- | |
require 'ffi' | |
module POSIX | |
extend FFI::Library | |
ffi_lib 'c' | |
attach_function :sysctl, [ :pointer, :uint, :pointer, :pointer, :pointer, :pointer, :size_t ], :int | |
attach_function :sysctlnametomib, [:string, :pointer, :pointer], :int |