Skip to content

Instantly share code, notes, and snippets.

View MasahiroSakoda's full-sized avatar

masahiroSkd MasahiroSakoda

  • Kanagawa Pref. Japan
View GitHub Profile
@maripo
maripo / curry_udon.md
Last active August 29, 2015 14:05
キーマカレー皿うどん
@yawara
yawara / hts-engine-api.rb
Created February 8, 2015 13:31
Open JTalk for Homebrew
class HtsEngineApi < Formula
homepage "http://hts-engine.sourceforge.net/"
url "https://downloads.sourceforge.net/project/hts-engine/hts_engine%20API/hts_engine_API-1.09/hts_engine_API-1.09.tar.gz"
sha1 "1c264c2bd29c87f49ace2c5d2b2fcd6b5b44b12c"
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
@adamlogan
adamlogan / photosclassdump.txt
Created May 27, 2015 08:59
Attempt to find string to disable auto launching of Photos application on Mac OSX Yosemite
This file has been truncated, but you can view the full file.
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#pragma mark Blocks
typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown
@cbertoldi
cbertoldi / Desert 256.dvtcolortheme
Created October 6, 2011 15:42
256 colors desert color scheme for xCode
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.000 0.000 0.000 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Inconsolata - 14pt</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0.000 0.000 0.000 1</string>
@moonblogger
moonblogger / LaGranja_CardsGlossary_jp.md
Last active September 28, 2015 15:16
La Granja / Farm Cards Glossary 日本語訳

この文書は、本ゲーム内の農場カード66枚についての全リストである。以下を留意せよ。
This document lists all 66 farm cards in the game. Please keep the following in mind:

  • あなたの農場にカードを配置した後、直ちに使用してよい(ただし以下を参照のこと)。
    Cards may be used immediately after placing them at your farm (but see below).

  • **補足:**いくつかのカードに示された色は、使用可能なフェイズを表す(複数の色が示されていれば複数のフェイズで使用可能)。カードタイトルに色がなければ、所有者の手番でいつでも使用してよい。
    Assistant Role: The color(s) of some card titles show in which phase or phases they may be used. Card titles without color(s) may be used anytime during the owner's player turn.

  • 補足: いくつかのカードは、ゲームターンごとに1回(1x)だけ使用可能である。これを示すために、使用した後に、1個のプレイヤーマーカーをカード上に置く。ゲームターンの終了時には、全てのマーカーをカードから除去することで、再使用が可能となる。

@amitvaria
amitvaria / deploy.rb
Created March 30, 2013 18:28
Sample Capistrano deploy.rb for Cakephp deployment to QA and Production.
# Modified from http://mark-story.com/posts/view/deploying-a-cakephp-site-with-capistrano
# Application Name
set :application, "APPLICATION_NAME"
# Type of repository (default is svn)
set :scm, :git
# Name of of git repository
set :repository, "GIT_REPOSITORY"
# Method of deployment (TODO: add more clarify around options)
set :deploy_via, :remote_cache
@koron
koron / difforig
Created June 25, 2013 03:41
Print diff between all backup files ("*.orig" ) and current files in given directory.
#!/bin/sh
# vim:set sts=2 sw=2 tw=0 et:
dir=$1; shift
if [ x"$dir" = "x" -o ! -d "$dir" ] ; then
echo "USAGE: difforig {DIR}"
exit 1
fi
@katzchang
katzchang / readme.md
Last active December 31, 2015 03:09
[Fluentd Advent Calendar]広告配信にFluentdを使っていますという話 @katzchang.gist

ワイワイ!これはFluentd Advent Calendar 12日目の記事です。

私は現在、VOYAGE GROUPの子会社であるZucksというところで、Zucks Adnetworkという広告配信サービスを作っています。で、その中でFluentdが活躍しているよーという話をしてみます。事例紹介ってやつです。

置かれた状況

Zucks Adnetworkは、いわゆる広告配信サービスです。

広告配信サービスは配信した結果を何らかの形で集約して、よーするにお金がどうチャリンチャリンしてるかを確かめる必要があるわけです。その一つのやり方として、「配信結果を1件ずつ行分割したテキストファイルの出力しておいて、そいつをいい感じにまとめて、数え上げる」みたいな方式があって、つまるところ、私たちはそうやってます。

@aq2bq
aq2bq / seeds.rb
Last active July 28, 2016 01:42
[JPローカライズ]Spree 2.1.1 with Rails4 用シードファイル
# encoding: utf-8
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
@ichi
ichi / deploy.rb
Created November 13, 2012 05:28
capistrano + cakephp
#encoding: utf-8
## config/deploy.rb
# pp
require 'pp'
# capistrano-ext
require "capistrano/ext/multistage"