This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |
doskey alias=if "$1"=="" (doskey /macros) else ^ | |
for /f "delims== tokens=1,*" %%i in ("$*") do^ | |
@if "%%j" neq "" (^ | |
doskey $*^ | |
) else (^ | |
doskey /macros ^| findstr /b /c:"%%i="^ | |
) |
This file contains hidden or 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
if (location.href.match(/^.+\/entry[\-0-9]*\.html$/g) || // 記事ページ | |
location.href.match(/^.+\/entry[\-0-9]*\.html\#cbox$/g)) { // コメントをクリックして入る記事ページ | |
document.write('<script>' + | |
'var linkwithin_site_id = 362768;' + | |
'var linkwithin_text = "他にもこんな記事があります";' + | |
'</script>' + | |
'<script src="http://www.linkwithin.com/widget.js"></script>'); | |
} |
This file contains hidden or 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
#encoding = utf-8 | |
desc 'Compile js files.' | |
task 'compile' do |t| | |
SCRIPTS_DIR = './' | |
COMPILER_PATH = SCRIPTS_DIR + 'compiler.jar' | |
{ | |
'textcut.g' => ['textcut'] | |
}.each do |key, value| | |
sh "java -jar #{COMPILER_PATH} --compilation_level SIMPLE_OPTIMIZATIONS " + |