Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="woman" language="ja-jp">こんちには、こんちには。ゆっくりしていってね</Say>
</Response>
@nenjiru
nenjiru / vimrc
Created March 16, 2015 02:10
vimrc
""""""""""""""""""""""""""""""""""""""""
" プラグイン管理
""""""""""""""""""""""""""""""""""""""""
" MacVimを初期化した場合は、以下
" mkdir -p ~/.vim/bundle
" git clone https://github.com/Shougo/neobundle.vim
" git clone https://github.com/Shougo/vimproc.vim.git ~/.vim/bundle/vimproc.vim
" cd ~/.vim/bundle/vimproc.vim
" make
"
@nenjiru
nenjiru / ogp.html
Created March 16, 2015 13:54
OGP template
<!DOCTYPE HTML>
<html lang="ja">
<head prefix="og: http://ogp.me/ns# fb: http://www.facebook.com/2008/fbml">
<meta charset="UTF-8" />
<title></title>
<meta name="viewport" content="width=device-width" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="" />
<meta property="fb:app_id" content="" />
@nenjiru
nenjiru / uniqueRandom.js
Last active September 23, 2015 22:08
重複しない乱数
/**
* Random numbers that do not overlap.
* @param {Number} length 生成数
* @param {Number} max 閾値
* @return {Array}
*/
function uniqueRandom(length, max)
{
var random, result = [];
@nenjiru
nenjiru / toObject.js
Last active September 23, 2015 22:08
クエリーストリングをハッシュに変換
/**
* Query string convert to hash.
*
* @param {String} string ?を含んだ文字列
* @return {Object}
*
* @example
* toObject("index.html?width=500&height=auto");
* {width:500, height:auto}
*/
@nenjiru
nenjiru / ellipsis.js
Created October 13, 2010 06:10
表示文字数を指定してトリミング
/**
* Trimming strings.
*
* @param {String} string 対象文字列
* @param {Number} size 全角での長さ
* @param {String} ellipsis 省略文字(初期値 "...")
* @return {String} 整形文字列
*
* @example
* ellipsis("表示したい全角文字数を指定", 10);
@nenjiru
nenjiru / jquery.stripeTable.js
Created October 15, 2010 03:08
ストライプテーブル jQuery Plugin
////////////////////////////////////////////////////////////////////////////////
// Add a classname to the alternate - jQuery Plugin
// 交互にクラス名を付与してストライプなテーブルを作成
//
// Copyright 2010, Minoru Nakanow
// Licensed under the MIT licenses.
// http://www.opensource.org/licenses/mit-license.html
//
// Usage:
// $("table").stripeTable();
@nenjiru
nenjiru / jquery.rollover.js
Created October 15, 2010 03:06
ロールオーバー jQuery Plugin
////////////////////////////////////////////////////////////////////////////////
// Rollover - jQuery Plugin
// 識別子.拡張子で読込めた画像をロールオーバープラグイン
//
// Copyright 2010, Minoru Nakanow
// Licensed under the MIT licenses.
// http://www.opensource.org/licenses/mit-license.html
//
// Usage:
// $("img").rollover();
@nenjiru
nenjiru / jquery.toObject.js
Created October 15, 2010 03:07
クエリーストリングをハッシュに変換 jQuery Plugin
////////////////////////////////////////////////////////////////////////////////
// Query string convert to hash - jQuery Plugin
// クエリーストリングをハッシュに変換
//
// Copyright 2010, Minoru Nakanow
// Licensed under the MIT licenses.
// http://www.opensource.org/licenses/mit-license.html
//
// Usage:
// $.toObject("index.html?width=500&height=auto");
@nenjiru
nenjiru / jquery.newWindow.js
Created October 15, 2010 03:11
別窓展開 jQuery plugin
////////////////////////////////////////////////////////////////////////////////
// Open new window - jQuery plugin
// target属性で指定する別窓展開プラグイン
//
// Copyright 2010, Minoru Nakanow
// Licensed under the MIT licenses.
// http://www.opensource.org/licenses/mit-license.html
//
// Usage:
// <a href="example.html?width=full&height=full" target="new">全画面展開</a></p>