Skip to content

Instantly share code, notes, and snippets.

@alea12
alea12 / chatwork.css
Created February 18, 2014 08:58
My Chatwork CSS
.avatarMedium, .avatarTiny {
display: none;
}
.chatTimeLineMessageHover {
background: inherit;
}
.chatTimeLineMessageMention {
background: #ddd;
@alea12
alea12 / commit-msg
Last active August 29, 2015 13:57
hooks
#!/bin/sh
# Check whether commit message includes issue ID
exp="(?:close|closed|closes|fix|fixed|fixes|addresses|references|refs|re|see)"
exp=$exp".?(#[0-9]+(?:(?:[, &]+| *and *)#[0-9]+)*)"
grep -E "$exp" $1 > /dev/null
if [ $? -ne 0 ]; then
echo '*** ERROR ***'
echo 'You need to specify an issue ID to commit.'

Surface Pro 3 の調子が悪くなったので出荷状態に戻していろいろやった。

バックアップから再インストールまで

  • バックアップしたのは将棋関連、ウイイレのセーブデータ、VirtualBox の VM
    • VirtualBox の VM は仮想アプライアンス機能を使ってバックアップした
  • 設定→PC 設定の変更→保守と管理→回復→全てを削除して Windows を再インストールする
    • 再インストールすると初回起動時に Windows Update がかかる。朝開始して会社から帰宅したら終わってた
  • 自宅サーバーの Samba に再接続してバックアップファイルをとりもどす

無いと話にならないものからインストールしていく

@alea12
alea12 / comparison.md
Last active December 11, 2015 05:36
Comparison between Surface Pro 3, VAIO S11 and MacBook Air 11"
Name Surface Pro 3 VAIO S11 MacBook Air 11" Early 2015
Comment 今のメイン。 ほしい。買うなら以下の構成。 比較対象。買うなら以下の構成。
Display 12" wide Touch-Panel 11.6" wide Anti-Glare 11.6" wide Glare
Resolution [px] 2160 x 1440 1920 x 1080 1366 x 768
Size [mm] 295 x 217 x 13.9(*) 284 x 190 x 19.1 300 x 192 x 17
Weight [g] 1095(*) 940 1080
Battery Life [h] 9 14 9
CPU Core i3 4020Y (1.5GHz) Core i5 6200U (2.3~2.8GHz) Core i5 4260U (1.6~2.7GHz)
MMR 4GB 8GB 8GB
@alea12
alea12 / pigeon.php
Last active December 15, 2015 11:39 — forked from okumin/pigeon.php
<?php
$target = "";
$timestamp = date('Y-m-d hms');
$next_cursor = -1;
$f = fopen($target . " - " . $timestamp . ".txt", "w");
while($next_cursor != 0) {
$api = "https://api.twitter.com/1/followers/ids.xml?cursor=" .
$next_cursor . "&screen_name=" . $target;
require 'rubygems'
require 'twitter'
target = ''
next_cursor = -1
Twitter.configure do |config|
config.consumer_key = ''
config.consumer_secret = ''
config.oauth_token = ''
@alea12
alea12 / favbomb.rb
Last active December 15, 2015 13:58
require 'rubygems'
require 'twitter'
Twitter.configure do |config|
config.consumer_key = ''
config.consumer_secret = ''
config.oauth_token = ''
config.oauth_token_secret = ''
end
<!-- copy this to YOUR_THEME.tmTheme-->
<dict>
<key>name</key>
<string>diff: deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#EAE3CA</string>
@alea12
alea12 / twitter.rb
Created May 7, 2013 01:07
Using Twitter API by Ruby
require 'rubygems'
require 'twitter'
Twitter.configure do |config|
config.consumer_key = 'CONSUMER_KEY'
config.consumer_secret = 'CONSUMER_SECRET'
config.oauth_token = 'ACCESS_TOKEN'
config.oauth_token_secret = 'ACCESS_TOKEN_SECRET'
end
\documentclass{book}
\usepackage[dvipdfmx]{graphicx}
\pagestyle{empty}
%--preamble--
\makeatletter
\parsep = 0pt
\labelsep = .5zw
\def\@listi{%
\leftmargin = 2zw \rightmargin = 0pt