Skip to content

Instantly share code, notes, and snippets.

View riaf's full-sized avatar
🏠
Working from home

Keisuke SATO riaf

🏠
Working from home
View GitHub Profile
saykanji()
{
voice=`kanji2voice "$1"`
echokanji "$voice"
/usr/local/bin/saykana "$voice" &
}
#FORMAT_OPTION='--node-format=%pS%f[8] --unk-format=%M --eos-format="\n"'
sayeb()
{
#!/usr/bin/env ruby
#
# kansit
#
# Copyright (c) 2009 FURUHASHI Sadayuki
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
<?php
/**
* Geohash
*
* @author Keisuke SATO
* @license MIT License
*
* # Based
* http://github.com/davetroy/geohash-js/blob/master/geohash.js
* Geohash library for Javascript

HipHop for PHP 導入手順

0. 前提

  • Debian testing (squeeze) の amb64 版 (i386 では成功しなかった)
  • 「ebizori64 サーバ構築手順」実施済み
@remy
remy / gist:350433
Created March 31, 2010 14:58
Storage polyfill
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () {
var Storage = function (type) {
function createCookie(name, value, days) {
var date, expires;
if (days) {
date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();
<?php
require_once '/home/fivestar/projects/vendor/symfony-project.org/branches/1.4/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();
class ProjectConfiguration extends sfProjectConfiguration
{
protected $annotationCache;
public function setup()
@hitode909
hitode909 / _up
Created October 2, 2010 04:18
上に行くcd
#compdef up
segments=$(perl -le '$p=$ENV{PWD};$p =~ tr/\// /; print $p')
_arguments "1:first:($segments)"
@io41
io41 / paginated_collection.js
Created February 22, 2011 10:10 — forked from zerowidth/paginated_collection.js
Pagination with Backbone.js
// includes bindings for fetching/fetched
var PaginatedCollection = Backbone.Collection.extend({
initialize: function() {
_.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage');
typeof(options) != 'undefined' || (options = {});
this.page = 1;
typeof(this.perPage) != 'undefined' || (this.perPage = 10);
},
fetch: function(options) {
@kazuhisya
kazuhisya / git-now
Created July 4, 2011 04:23 — forked from toshi-kawanishi/git-now
making convenient git commit
#!/bin/sh
PREFIX="from now"
MESSAGE="[${PREFIX}] `LANG=en date`"
if [ $# -eq 0 ]
then
git add -u
printf "${MESSAGE}\n\n%s" "`git diff --cached`" | git commit -F -
elif [ $1 != "--rebase" ]
0. ローカルでdevelopブランチに変更をpushする
1. デプロイサーバでリポジトリをcloneする
2. デプロイサーバで `git daily release open` をする
- release-xxxxxxxx ブランチがdevelopをベースに作成される
3. ステージングサーバにデプロイする
4. ステージングサーバでテストする
----------修正がある場合------------
5. ローカルで `git daily release sync` をする
- 2で作成したreleaseブランチがpullされる
6. releaseブランチに変更をコミットする