Skip to content

Instantly share code, notes, and snippets.

@K90j1
K90j1 / Paypal
Created December 16, 2012 04:52
The form for web payment standard with Sandbox of Paypal.
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" accept-charset="utf-8">
<input type="hidden" name="business" value="Mail address of Seller" />
<input type="hidden" name="item_name" value="Item Name" />
<input type="hidden" name="amount" value="Item Amount" />
<input type="hidden" name="quantity" value="1" />
<input type="hidden" name="currency_code" value="JPY" />
<input type="hidden" name="lc" value="jp_JP" />
<input type="hidden" name="charset" value="UTF-8" />
<input type="hidden" name="cancel" value="http://example.com/cancel.html" />
<input type="hidden" name="return" value="http://example.com/success.html" />
@K90j1
K90j1 / HowDeployRedis-2.6.11.sh
Last active January 3, 2017 18:26
Deploy redis redis-2.6.11 on CentOS i686
$ cat /etc/redhat-release
CentOS release 5.9 (Final)
$ arch
i686
$ cd /usr/local/src
$ sudo wget http://redis.googlecode.com/files/redis-2.6.11.tar.gz
$ sudo tar xzvf redis-2.6.11.tar.gz
$ cd redis-2.6.11
$ sudo make
zmalloc.o: In function `zmalloc_used_memory`:
$ python -v
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
$ brew -v list
Homebrew 0.9.4
autoconf gettext libtiff node protobuf tree
cmake gfortran libxml2 openssl r unrar
colordiff git mcrypt pcre re2c wget
gd gsl mobile-shell pidof readline zsh
@K90j1
K90j1 / LeapMotionの説明.md
Last active January 4, 2016 03:39
イベントのために調べたLeapMotionのスペックと開発手順

LeapMotionの説明

キーワード

  • 空間ジェスチャー
  • フィジカルコンピューティング
  • NUI(Natural User Interface)

Leap Motion スペック

@K90j1
K90j1 / Kinectの説明.md
Created January 22, 2014 17:54
次世代の発売前のイベントのために調べたKinectのスペックと開発手順

Kinect for Windowsについて調べたこと

キーワード

  • モーションキャプチャ
  • 空間ジェスチャー
  • フィジカルコンピューティング
  • NUI(Natural User Interface)
@K90j1
K90j1 / CapoeiraCommand.md
Last active January 4, 2016 05:49
カポエイラ ナラハリ道場で練習したこと

Commands Capoeira

通常技

  • Martelo 蹴り
  • Queixada 後ろ足起点の回し蹴り
  • 後ろ足起点の返し蹴り
  • Bencao 後ろ足で前蹴り
  • Pisao 後ろ足で上段蹴り
@K90j1
K90j1 / jsdoit.css
Created January 25, 2014 21:24
どんどん増えるフォーム
* {
margin: 0;
padding: 0;
border: 0;
}
body {
background: #fdd;
font: 30px sans-serif;
}
@K90j1
K90j1 / README
Last active November 6, 2018 02:22
どんどん増えるフォーム - recursive input form
# よくあるどんどん入力欄が増やせるフォーム
* フォームに入力してフォーカスが離れるともうひとつフォームができる
* 入力を削除すると空のフォームが消える
@K90j1
K90j1 / paginationArray.java
Last active January 4, 2016 12:49
[snippet] pagination
/**
* ページネーション用の配列をつくる
*
* @see <a href="http://getbootstrap.com/components/#pagination">Bootstrap - Default pagination</a>
* @param totalCount
* @param numberCurrentPage
* @return pageNumbers ArrayList<Integer> pageNumbers.get(0) == 1, pageNumbers.get(1) == 2, ...
*/
public static ArrayList<Integer> paginationArray(int totalCount, int numberCurrentPage) {
int totalNumPage = (int) Math.floor(totalCount / (double) Integer.parseInt(SettingManager.getInstance().getPageMaxCount()));
@K90j1
K90j1 / helloworld-leapmotion.md
Last active August 29, 2015 14:01
Hello World チュートリアル - Leap Motion

Hello World チュートリアル - Leap Motion

概要 リープモーションがキャプチャする1フレームのJSONフォーマットのデータからいくつかのプロパティを表示する。

  • フレーム
  • 指やツール
  • ジェスチャ