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
| // 自動クリック | |
| var timer = setInterval(function(){Game.ClickCookie();}, 4); | |
| // ゴールデンクッキーのポップ | |
| Game.goldenCookie.minTime = 0; Game.goldenCookie.spawn(); Game.goldenCookie.click(); | |
| // ゴールデンクッキーの効果 | |
| Game.goldenCookie.choose=function() { var list=['blood frenzy', 'click frenzy']; if (Game.goldenCookie.last!='' && list.indexOf(Game.goldenCookie.last)!=-1) list.splice(list.indexOf(Game.goldenCookie.last),1); var choice=choose(list); return choice; } |
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
| map <SPACE>/ <Plug>(operator-search-forward) | |
| map <SPACE>? <Plug>(operator-search-backward) | |
| call operator#user#define('search-forward', 'OperatorSearch2', 'call OperatorSearchForward()') | |
| call operator#user#define('search-backward', 'OperatorSearch2', 'call OperatorSearchBackward()') | |
| let s:command_type = '' | |
| function! OperatorSearchForward() | |
| let s:command_type = '/' | |
| endfunction |
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
| call airline#parts#define_function('fenc', s:SID() . 'AirlineFenc') | |
| function! s:AirlineFenc() | |
| return &fileencoding != '' ? &fileencoding : &encoding | |
| endfunction | |
| call airline#parts#define_function('bomb', s:SID() . 'AirlineBomb') | |
| call airline#parts#define_condition('bomb', '\&bomb == 1') | |
| function! s:AirlineBomb() | |
| return 'BOM' | |
| endfunction | |
| call airline#parts#define_function('ff', s:SID() . 'AirlineFF') |
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
| set nocompatible | |
| if has('vim_starting') | |
| set runtimepath+=~/.vim/bundle/neobundle.vim | |
| endif | |
| call neobundle#rc('~/.vim/bundle') | |
| NeoBundle 'foo/baa' | |
| filetype plugin indent on |
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
| # Description: | |
| # No overtime by node-cron. | |
| cron = require('cron').CronJob | |
| random = require('hubot').Response::random | |
| module.exports = (robot) -> | |
| new cron '0 0 18 * * 1-5', () -> | |
| say = '定時退社の時間になりました。' + random [ |
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
| #!/usr/bin/env ruby | |
| if ARGV.empty? | |
| puts 'plz input length.' | |
| exit | |
| end | |
| len = ARGV[0].to_i | |
| # candidates = ('0'..'9').to_a + ('a'..'z').to_a + ('A'..'Z').to_a |
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
| package jp.co.hogehoge.function; | |
| import java.io.IOException; | |
| import java.util.*; | |
| import org.apache.lucene.index.AtomicReaderContext; | |
| import org.apache.lucene.queries.function.FunctionValues; | |
| import org.apache.lucene.queries.function.ValueSource; | |
| import org.apache.lucene.queries.function.docvalues.IntDocValues; | |
| public class CustomFieldFunction extends ValueSource |
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
| [2013/06/03 17:42:20] サイホー: _val_フックはただのスコア調整でした | |
| [2013/06/03 17:42:51] サイホー: q=title_name:キングダム だと同一巻のスコアが全部同じになるけど | |
| [2013/06/03 17:43:22] サイホー: q=title_name:キングダム+_val_:vol_no ってやると巻番号が多いものがスコアが大きくなる |
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
| #!/bin/sh | |
| # vim:set sts=2 sw=2 tw=0 et: | |
| ./configure \ | |
| --prefix=/usr/local \ | |
| --with-features=huge \ | |
| --enable-multibyte \ | |
| --enable-luainterp \ | |
| --with-luajit \ | |
| --enable-fail-if-missing && make && make install |
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
| #!/bin/bash | |
| minute=`date "+%M"` | |
| second=`date "+%S"` | |
| if [ ${minute} -lt 5 ]; then | |
| echo "オレ ホンキ デナイ タスケテ" | |
| else | |
| m=`expr 59 - ${minute}` | |
| s=`expr 60 - ${second}` |