This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id": "_design/manage", | |
"language": "javascript", | |
"views": { | |
"count_words": { | |
"map": function(doc) { | |
var wordslist = [ | |
['suki', '好', 'すき', 'スキ', 'スキ'], | |
['kirai', '嫌', 'きらい', 'キライ', 'キライ'], | |
['chiga', '違', 'ちが', 'チガ', 'チガ', 'ちげ', 'チゲ', 'チゲ'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://d.hatena.ne.jp/fumokmm/20110812/1313138407 | |
function dropStartsSame(/* ... */) { | |
var i = j = length_i = length_j = 0, | |
args = [], | |
flag = true; | |
for (i = 0, length_i = arguments.length; i < length_i; i += 1) { args[i] = arguments[i]; } | |
for (i = 0, length_i = arguments[0].length; i < length_i; i += 1) { | |
for (j = 1, length_j = arguments.length; j < length_j; j += 1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* (C)2011 ne_Sachirou http://c4se.tk/profile/ne.html | |
* Draw Magic Square on the Console. | |
* | |
* site: https://gist.github.com/1180700 | |
* license: Public Domain | |
* | |
* Usage: | |
* Just compile and exec. | |
* gcc -o cl11_08 cl11_08.c # on gcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileOverview Improving http://azurea.info/ja/wiki/index.php?Scripts%2FFavottane.js | |
*/ | |
/* | |
* ==Usege | |
* When you faved, this script automatically post a reply. | |
* Set Reply Text to rep_text[] (String). | |
* If you want to reply to limitted users, set user names to rep_users[] (String or RegExp). | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generate_sinatra_project(){ | |
rake -f /home/ne_Sachirou/default.rake generate_sinatra_project\[$1\] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>puzzle</title> | |
</head> | |
<body> | |
<div id="puzzle"> | |
<input type="button" class="puzzlebutton" value="0" /> | |
<input type="button" class="puzzlebutton" value="1" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileOverview ちゅーんさま用。Azureaのreply all。 | |
* 自作の[ES5.js https://gist.github.com/1018954 ]を使いました。 | |
* 昔のAzureaVimでは、簡易templeteエンジン組んでこんな[ https://github.com/ne-sachirou/AzureaVim/blob/azvm1/src/plugins/reply.js ]風に書いてました。master blanchにはrelpy pluginはありません。 | |
* 因みにAzureaVimは、AzureaのAPI変更に追随していないのでもう動きません。 | |
*/ | |
if (!Array.prototype.indexOf) { | |
/** | |
* @param val Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using MySql.Data.MySqlClient; | |
namespace insert | |
{ | |
public class User | |
{ | |
public string ID; | |
public string Name; | |
public string Pass; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Trim Photoshop files and save them into PNG files, on GIMP Python-Fu. | |
author: ne_Sachirou <[email protected]> | |
date: 2013/02/12 | |
license: Public Domain | |
GIMP 2.8.0, Python 2.7.2 | |
For syntax check, ``python -m py_compile trim_psd.py``. | |
""" | |
import platform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem setlocal | |
rem for %%t in (%1) do echo,%%~$path:t | |
rem for %%e in (%pathext%) do ( | |
rem for %%t in (%1%%e) do echo,%%~$path:t | |
rem ) | |
rem endlocal | |
ruby -x %~f0 %* | |
@goto end |