Skip to content

Instantly share code, notes, and snippets.

View tomiacannondale's full-sized avatar

tomi tomiacannondale

View GitHub Profile
@tomiacannondale
tomiacannondale / railstokyo_position_papter.org
Created February 17, 2012 15:20
Rails勉強会東京ポジションペーパー

名前

  • tomi (石塚富章)
  • twitter @tomiacannodale

最近興味のあること

  • gistでポジションペーパーかっこいいです。
  • padrino-tutorialとかやってみてますがハマってます。
  • rails guideをcucumber付きでやってみてますがハマってます。
@tomiacannondale
tomiacannondale / README.md
Last active March 28, 2023 03:09
MTGカードリスト作成スクリプト

MTGカードリスト作成スクリプト

Description

Windom Guild のカードデータベースから以下の情報をcsv形式に落としこむ。

  • カード番号
  • 英語名
  • 日本語名
@tomiacannondale
tomiacannondale / .gitignore
Created March 2, 2013 16:45
血圧グラフ
*.png
*.jpg
.bundle
vendor/bundle
Gemfile.lock
.DS_Store
*~
@tomiacannondale
tomiacannondale / class_macro.rb
Created December 8, 2013 15:45
クラスマクロの練習
class ClassMacro
class << self
attr_reader :queries
def attribute(name)
attr_accessor name
end
end
attr_accessor :queries
;;; package --- Summary
;;; Commentary:
;;; Code:
(require 'helm-ls-git)
(defun helm-ls-git-find-file (arg)
"Call `find-file' or `helm-ls-git'.
If call on git project, call `heml-ls-git'.
If call on git project and with ARG(\\[universal-argument]), call `find-file'.
@tomiacannondale
tomiacannondale / outlook.rb
Last active August 29, 2015 14:13
outlookで受信トレイにある未読メールを処理する
# -*- coding: cp932 -*-
# http://www.shoeisha.com/book/hp/pc/office/Outlook/files/text5.html
# http://stackoverflow.com/questions/3295772/how-to-iterate-outlook-inbox-by-date-outlook-ole-automation
# http://magazine.rubyist.net/?0007-Win32OLE
require 'win32ole'
ole = WIN32OLE::connect('Outlook.Application')
class OC
end
tap 'caskroom/cask'
tap 'homebrew/brewdler'
tap 'sanemat/font'
brew 'ack'
brew 'autoconf'
brew 'automake'
brew 'texinfo'
brew 'bdw-gc'
brew 'cairo'
brew 'cloog'
@tomiacannondale
tomiacannondale / producer_consumer.rb
Created November 5, 2020 13:39
producer consumer by ruby
require 'thread'
require 'net/http'
thread_size = 4
queue = Queue.new
consumers = []
producer = Thread.start do
params.each do |param|
queue.push param