- 高谷雄貴
- ペパボではじっぱーと呼ばれてます
- @buty4649
- http://github.com/buty4649/
- 2014/02にペパボに入社
- 前職ではSEとかSIerとか言われることをやっていた
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
{ | |
init: function(elevators, floors) { | |
var FLOOR_NUM = floors.floorNum; | |
var elevator1 = elevators[0]; // 初号機 | |
var elevator2 = elevators[1]; // 弐号機 | |
elevator1 | |
.on("idle", function() { | |
elevator1.goToFloor(0); | |
}); |
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
#!/usr/bin/env perl | |
use strict; | |
my @t = qw/1 5 3 7 2 6 10 14 15 4 9 8 12 13 11 0/; | |
while(<STDIN>) { | |
s/\e\[0m//g; | |
s/\e\[(\d\d)m/"\x03".$t[$1-30]/ge; | |
print; |
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
class dstat_plugin(dstat): | |
def __init__(self): | |
self.nick = ('latency',) | |
self.type = 'd' | |
self.width = 4 | |
self.scale = 34 | |
self.diskfilter = re.compile('^(dm-[0-9]+|md[0-9]+|[hs]d[a-z]+[0-9]+)$') | |
self.open('/proc/diskstats') | |
self.cols = 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
#!/bin/sh | |
rrdtool create nighttime.rrd -b $(date -d "1 years ago" +%s) DS:night:GAUGE:600:0:U RRA:MAX:0.5:1:576 RRA:MAX:0.5:6:432 RRA:MAX:0.5:24:540 RRA:MAX:0.5:288:450 | |
perl -MRRDs -e ' | |
$e=time; | |
$s=$e-3600*24*365; | |
while($s<=$e) { | |
$d=($s + 9 * 3600)%(24 * 3600); | |
if($d >= (19 * 3600) || $d <= (6 * 3600)) { |
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
" おまじない | |
set runtimepath=~ | |
loadplugins | |
" 基本的な設定 ============================================ | |
" ブラウザのタイトル | |
set titlestring=Firefox |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("tweetdeck.twitter.com") { | |
/* Sidebar */ | |
.app-header.is-condensed { | |
width : 24px !important; | |
} | |
.app-header.is-condensed .app-header-inner { | |
width : 24px !important; | |
padding : 5px 0 0 !important; |
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
" --------------------------------------------------------- | |
" GUI設定 | |
" --------------------------------------------------------- | |
" メニューの文字化け対策 | |
source $VIMRUNTIME/delmenu.vim | |
set langmenu=ja_JP.utf-8 | |
source $VIMRUNTIME/menu.vim | |
" カラースキーム設定 | |
set t_Co=256 |
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
" Vim color file | |
" Maintainer: Your name <youremail@something.com> | |
" Last Change: | |
" URL: | |
" cool help screens | |
" :he group-name | |
" :he highlight-groups | |
" :he cterm-colors |
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
status key command | |
Conversion Backspace Cancel | |
Composition Backspace Backspace | |
Precomposition Backspace Revert | |
Conversion Ctrl Backspace Cancel | |
Composition Ctrl Backspace Backspace | |
Precomposition Ctrl Backspace Undo | |
Prediction Ctrl Delete DeleteSelectedCandidate | |
Composition Ctrl Down MoveCursorToEnd | |
Conversion Ctrl Down CommitOnlyFirstSegment |