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
# coding: utf-8 | |
Earthquake.init do | |
output do |item| | |
next unless item['id'] | |
async_e { twitter.favorite item['id'] } if config[:auto_favorite] == true | |
end | |
end |
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
#include <stdio.h> | |
#define SIZE sizeof(int) * 1024 * 1024 * 1024 / 2 - 1 | |
/* Usage: $ dd if=/dev/zero bs=1m count=768 | ./a.out */ | |
int main(void) | |
{ | |
char *c = malloc(SIZE); | |
fgets(c, SIZE, stdin); | |
free(c); | |
} |
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
diff --git a/src/com/maddyhome/idea/vim/key/RegisterActions.java b/src/com/maddyhome/idea/vim/key/RegisterActions.java | |
index 5b8334a..cd24703 100644 | |
--- a/src/com/maddyhome/idea/vim/key/RegisterActions.java | |
+++ b/src/com/maddyhome/idea/vim/key/RegisterActions.java | |
@@ -433,9 +433,9 @@ public class RegisterActions { | |
// TODO - add zj | |
// TODO - add zk | |
- parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionNextTab", Command.Type.MOTION, Command.FLAG_MOT_INCLUSIVE, | |
+ parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionNextTab", Command.Type.MOTION, Command.FLAG_MOT_INCLUSIVE | Command.FLAG_SAVE_JUMP, |
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 | |
# Usage: | |
# ~/.tmux.conf に以下の4行を書く(:より後ろ) | |
# 色は好みに合わせて変更すること | |
# .tmux.conf: set -g status-bg colour17 # navy | |
# .tmux.conf: set -g status-fg colour15 # white | |
# .tmux.conf: set -g status-interval 60 | |
# .tmux.conf: set -g status-right '#(~/scripts/kyuden_tmux.sh)' | |
# | |
# 東京電力対応にしたい場合は下の API_URI を使う |
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
# bashrc の中で実行するコマンドが $? を上書きする前に参照するために最初の方に書く | |
# colored prompt | |
RETURN_CODE='\[$(if [ $? -eq 0 ]; then echo -en \e[32m ; else echo -en \e[31m; fi; echo -en █\e[m;)\]' | |
# | |
# 途中に git-completion や bash-completion によるプロンプトの変更をお好みで挟んで | |
# | |
# 最後に終了ステータスによって切り替えたものをくっつける | |
PS1="${RETURN_CODE}${PS1}" |
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
# wireless lan | |
network_interfaces="AUTO" | |
wlans_iwn0="wlan0" | |
ifconfig_wlan0="country JP WPA" | |
# link aggregation | |
cloned_interfaces="lagg0" | |
ifconfig_ue0="up" | |
ifconfig_lagg0="laggproto failover laggport ue0 laggport wlan0 SYNCDHCP" |
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
--- xrdp/xrdp.ini.orig 2013-02-01 14:36:13.909344583 +0000 | |
+++ xrdp/xrdp.ini 2013-02-01 14:41:12.679342721 +0000 | |
@@ -17,6 +17,15 @@ | |
#background=626c72 | |
[xrdp1] | |
+name=sesman-X11rdp | |
+lib=libxup.so | |
+username=ask | |
+password=ask |
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
あなたは | |
2004年 合計6,101円分 | |
2005年 合計10,437円分 | |
2006年 合計37,525円分 | |
2007年 合計141,647円分 | |
2008年 合計10,784円分 | |
2009年 合計187,175円分 | |
2010年 合計11,818円分 | |
2011年 合計29,212円分 | |
2012年 合計69,523円分 |
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 ruby | |
# coding: utf-8 | |
require 'pry' | |
class String | |
alias_method :eql, :== | |
def ==(other) | |
return true if self.eql("たるのん") && other.eql("神") |
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
ja: | |
errors: | |
messages: | |
not_found: "は見つかりませんでした" | |
# not_found: "not found" | |
already_confirmed: "は既に登録済みです" | |
# already_confirmed: "was already confirmed" | |
not_locked: "は凍結されていません" | |
# not_locked: "was not locked" |
OlderNewer