Skip to content

Instantly share code, notes, and snippets.

View yoshihara's full-sized avatar

hyoshihara (Takahashi) yoshihara

  • Japan
View GitHub Profile
@yoshihara
yoshihara / .env.sample
Last active August 7, 2018 02:48
esaのあるカテゴリ配下の記事を端末上で順番に見ていく
ESA_TOKEN=esaのAPIトークン
ESA_TEAMNAME=esaのチーム名
@yoshihara
yoshihara / .htpasswd
Last active October 14, 2017 11:06
test for embulk-output-groonga with BASIC Authentication BASIC auth: groonga / test
groonga:$apr1$L.uiPlZS$nkSfHS1TwwtXhPuFvGFci/
@yoshihara
yoshihara / gist:22ea3a52a6cf67c76bbe
Last active August 29, 2015 13:23
OSX 10.10.4 (Yosemite)
% pkg-config --list-all | grep pcre
libpcreposix libpcreposix - PCREPosix - Posix compatible interface to libpcre
libpcre16 libpcre16 - PCRE - Perl compatible regular expressions C library with 16 bit character support
libpcre libpcre - PCRE - Perl compatible regular expressions C library with 8 bit character support
libpcrecpp libpcrecpp - PCRECPP - C++ wrapper for PCRE
libpcre32 libpcre32 - PCRE - Perl compatible regular expressions C library with 32 bit character support
@yoshihara
yoshihara / file1.txt
Created April 6, 2014 12:32
skypeのdbを解析して選択したグループチャット内の人別発言数をグラフにする ref: http://qiita.com/yshr04hrk/items/5c23bc458855052c748d
options(repos="http://cran.md.tsukuba.ac.jp")
install.packages("DBI")
install.packages("RSQLite")
@yoshihara
yoshihara / nozbe2toodledo.rb
Created May 18, 2013 18:02
Nozbeのタスクをwebでエクスポートしたテキストを、toodledoにimportするためにCSVに変換するスクリプト。まだ作りかけ。TODOはコード中に書いた。 たくさんひどいので、あとから修正したい。あとStringScannerを使ってみたくて使ったら盛大に失敗した気がする。 プロジェクトはフォルダとして、コンテキストはすべて別個のタグとして登録。日時はすべて締切り(duedate, duetime)として登録。プロジェクトごとのノートなど、toodledoにないものは省いた。
# -*- coding: utf-8 -*-
# TODO: 繰り返し(repeat)とかかる時間(length)をtoodledoが受け取れる時間に置き換える
# TODO: argumentsをハッシュでなくてクラスにする。to_aするときに↑のTODOや今duedateとかにやってる置換をするようにする
# TODO: fold long lines
# TODO: s = StringScanner.new(nozbe) のsをもっといい名前に
# TODO: add_rowでコメントまわりも面倒みる
require "strscan"
require "csv"