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
#!/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
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
{ | |
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; | |
use utf8; | |
use Mac::iTunes::Library::XML; | |
use Encode; | |
binmode STDOUT, ":utf8"; | |
my $itunes = $ARGV[0] || die "Usage: itl2m3u <iTunes Directory>"; | |
my $library = $ARGV[0] . '/iTunes Music Library.xml'; |
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
// Don Yang | |
// <omoikane@uguu.org> | |
// <http://uguu.org/> | |
#include<stdio.h> | |
int main(int n,char **m) | |
{ | |
FILE *p,*q; | |
int A,k,a,r,i; |
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
BoldAsFont=yes | |
Transparency=off | |
CursorType=block | |
Font=Ricty Meiryo | |
Term=xterm-256color | |
Locale=ja_JP | |
Charset=UTF-8 | |
OpaqueWhenFocused=yes | |
BackspaceSendsBS=yes | |
Scrollbar=none |
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 | |
# mcstartup.sh - v1.00 | |
# | |
# example directory tree: | |
# ROOT | |
# |-- bin | |
# | `-- mcstartup.sh | |
# |-- etc | |
# | |-- : | |
# | |-- server.log -> /dev/null |
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
" vimwikiをmarkdownにする | |
let g:vimwiki_list = [{'syntax': 'markdown', 'ext': '.md'}] | |
" アンダーライン見出しのシンタクスを追加 | |
" 見出し1 | |
" ======= | |
" | |
" 見出し2 | |
" ------- | |
let s:bundle = neobundle#get("vimwiki") |
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 |
OlderNewer