Skip to content

Instantly share code, notes, and snippets.

View kaosf's full-sized avatar
🏠
Working from home

ka kaosf

🏠
Working from home
View GitHub Profile
Earthquake.init do
command :y do |m|
target = twitter.status(m[1])
url = "https://twitter.com/#{target["user"]["screen_name"]}/status/#{target["id"]}"
system("echo -n #{url} | xsel -ib")
puts "Yank \"#{url}\"."
#system("tmux set-buffer #{url}")
#puts "Set \"#{url}\" to tmux buffer"
end
@kaosf
kaosf / fairilu-zukan-miruru.txt
Last active April 9, 2017 01:20
rilurilufairilu #8 avant-title
Miruru
The Fairilu
of Honeybee.
Groupe of
Bugs
Fairilu
Miruru is a
bright and
cute worker bee
table
thead
tr
th リルリルフェアリル放映日(予定)
th リルリルフェアリル話数
th りっぷの手
th サザエさん放映日(予定)
th サザエの手
th 勝者
tbody
りっぷ サザエ 勝者
05/21,22 チョキ グー サザエ 0勝1敗0分
05/28,29 パー パー あいこ 0勝1敗1分
06/04,05 パー チョキ サザエ 0勝2敗1分
06/11,12 グー グー あいこ 0勝2敗2分
06/18,19 パー パー あいこ 0勝2敗3分
06/25,26 チョキ グー サザエ 0勝3敗3分
07/02,03 グー チョキ りっぷ 1勝3敗3分
07/09,10 チョキ チョキ あいこ 1勝3敗4分
07/16,17 グー パー サザエ 1勝4敗4分
# Clean at first
rm -f backup_*.tar.gz
URL=https://raw.githubusercontent.com/sue445/jenkins-backup-script/0.1.8/jenkins-backup.sh
if type curl; then
curl $URL | bash -s /var/lib/jenkins backup_`date +"%Y%m%d%H%M%S"`.tar.gz
elif type wget; then
wget $URL -O - | bash -s /var/lib/jenkins backup_`date +"%Y%m%d%H%M%S"`.tar.gz
else
Thread.new do
sleep 1
puts 'thread 1'
sleep 1
end
Thread.new do
sleep 1
puts 'thread 2'
sleep 1
app/models/concerns/article/addon/import.rb:2:1: C: Trailing whitespace detected.
app/models/concerns/article/addon/import.rb:4:3: C: Module has too many lines. [210/166]
module Import ...
^^^^^^^^^^^^^
app/models/concerns/article/addon/import.rb:5:1: C: Trailing whitespace detected.
app/models/concerns/article/addon/import.rb:8:1: C: Trailing whitespace detected.
app/models/concerns/article/addon/import.rb:15:5: W: Useless public access modifier.
public
^^^^^^
app/models/concerns/article/addon/import.rb:16:7: C: Assignment Branch Condition size for to_csv is too high. [61.04/61]
@kaosf
kaosf / test_a.rb
Created April 2, 2016 14:41
Test cases nesting for test-unit gem like a describe/context nesting of RSpec
# At first, run `gem install test-unit`.
require 'test/unit'
class TestA < Test::Unit::TestCase
setup { puts "all setup" }
test("a") { assert true }
sub_test_case "a sub" do
@kaosf
kaosf / note.txt
Last active March 24, 2016 16:49
dein.vim (現状最新 8ec15cdd4c79853563634f05d87f31bd75f53755) でcaw.vimがエラーを吐く問題 (原因はdein.vimの方) のworkaround(でしたが,caw.vimの方の問題だったようでそれも修正されたようです)
!!!! もう以下のような修正は不要です !!!!
deinのインストール場所まで移動 (cd ~/.vim/dein や cd ~/.cache/dein などであると推測される)(ユーザごとに違う)
cd repos/github.com/Shougo/dein.vim
git checkout 5e1c1329c53640e439cf9912b0f317b0f2cf7ec1
Vimで
:call dein#recache_runtimepath()

Clojars へデプロイする方法

gpg --gen-key

usernamekaosfと入力した(5文字以上必要だった)

emailka.kaosf-=at=-gmail.comと入力した(-=at=-@)