Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Keyboard Shortcut for Google Reader with G+
// @version v1.2 (2011/11/29)
// @namespace hecomi
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js
// @include http*://www.google.*/reader/*
// @include http*://plusone.google.com/*
// ==/UserScript==
(function(){
/* ------------------------------------------------------------------------- */
// 家電を操作するための文章コマンドのパーサ
/* ------------------------------------------------------------------------- */
#include <iostream>
#include <string>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix.hpp>
#include <boost/spirit/include/phoenix_stl.hpp>
#include <iostream>
#include <string>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix.hpp>
#include <boost/spirit/include/phoenix_stl.hpp>
#include <boost/format.hpp>
namespace qi = boost::spirit::qi;
@hecomi
hecomi / str2kana.cpp
Created February 7, 2012 14:04
文章をカタカナに変換
#include <iostream>
#include <string>
#include <vector>
#include <boost/shared_ptr.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include <mecab.h>
namespace qi = boost::spirit::qi;
using qi::standard_wide::char_;
@hecomi
hecomi / str2kana.cpp
Created February 7, 2012 14:12
文章をカタカナに変換(transformed ver.)
#include <iostream>
#include <string>
#include <vector>
#include <boost/shared_ptr.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include <mecab.h>
namespace qi = boost::spirit::qi;
using qi::standard_wide::char_;
@hecomi
hecomi / str2yomi.cpp
Created February 7, 2012 14:43
文章をローマ字読みに変換
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <boost/shared_ptr.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/regex.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include <unicode/translit.h>
#include <mecab.h>
@hecomi
hecomi / oll_class.hpp
Created March 21, 2012 15:28
OLLを便利に使うためのクラス
#include <string>
#include <iostream>
#include <cstdlib>
#include <boost/optional.hpp>
#include "oll.hpp"
template<int TrainMethodNum> struct train_method { typedef void type; };
template<> struct train_method<0> { typedef oll_tool::P_s type; }; // Perceptron
template<> struct train_method<1> { typedef oll_tool::AP_s type; }; // Averaged Perceptron
template<> struct train_method<2> { typedef oll_tool::PA_s type; }; // Passive Agressive
@hecomi
hecomi / favstar.rb
Created April 4, 2012 15:57 — forked from siyo/favstar.rb
favstar ふぁぼったりRTしたユーザ名も見るやつ(色つき) / earthquakge.gem plugin
# -*- coding: utf-8 -*-
# favstar / earthquakge.gem plugin
#
# e.g. :favstar #=> your favstar
# :favstar who #=> who's favstar
#
require 'rss'
require 'open-uri'
require 'nokogiri'
@hecomi
hecomi / shooting.js
Created May 6, 2012 10:35
だんまくさんぷる2
/**
* Shooting Sample
* created by @hecomi
* web: http://d.hatena.ne.jp/hecomi/
*/
$(function(){
/* ------------------------------------------------------------------------- */
// Global Parameters
@hecomi
hecomi / shooting.js
Created May 6, 2012 12:08
だんまくさんぷる3
/**
* Shooting Sample
* created by @hecomi
* web: http://d.hatena.ne.jp/hecomi/
*/
$(function(){
/* ------------------------------------------------------------------------- */
// Global Parameters
/* ------------------------------------------------------------------------- */