Skip to content

Instantly share code, notes, and snippets.

Tomohiro Kashiwada kikairoya

Block or report user

Report or block kikairoya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tweeten-custom.css
.stream-item {
margin-bottom: 0px !important;
}
.item-box {
padding: 2px !important;
border-bottom: 1px solid gray;
}
.tweet {
display: flex !important;
flex-direction: column !important;
@kikairoya
kikairoya / hjkl.user.js
Created Jan 13, 2017
jjjjjjjjjjjjjjjjjj
View hjkl.user.js
(function() {
function _onkeypress(key) {
switch (key.key) {
case "h":
case "H":
window.scrollBy(-100, 0);
return false;
case "j":
case "J":
window.scrollBy(0, 100);
@kikairoya
kikairoya / .emacs_ddskk
Last active Oct 16, 2015
ddskkの挙動が気に食わなかった
View .emacs_ddskk
(when (require 'skk nil t)
(global-set-key (kbd "C-x j") 'skk-auto-fill-mode)
(global-set-key (kbd "C-x C-j") 'skk-auto-fill-mode)
(setq default-input-method "japanese-skk")
(setq skk-egg-like-newline t)
(defun u-skk-ctrlj-force-hiragana ()
(interactive)
(if (and (boundp 'isearch-mode)
isearch-mode)
nil
View debranch-gpg-key.pub
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)
mQENBFVX6JsBCADNgqCiacKJqj9eoMNz55r3OzPlTMU7nwHdfrU+6Vq+iKhDMQwq
rEt77sUqJfzjAn6DzorzhoGPzBH4RJQlYnquWB7ZmO3HG9j+BgBSWGUYYZWcvyvQ
FlDlwk3bgh2mHyWKhuEgFfKXB2pLX1WYkNSJtKGCd3O4OwZJyfT2il78R+6Ffl6k
cvSK9Hkeupu3wuBau5tZC/B1ovMZXycXw2OYNoN9sdnkurQA49kHlq7aX88v0Ug+
cDj0h9wuvuwYSjkNRBdKzl/HVm6j87kOXhCTbb0wZ2+BOhXuD6CMpJ9UlTqUM56T
M+dLL818wcjzPJr+Y70GLHmxW/X51X4VnChlABEBAAG0NFRvbW9oaXJvIEthc2hp
d2FkYSAoa2lrYWlyb3lhKSA8a2lrYWlyb3lhQGdtYWlsLmNvbT6JATgEEwECACIF
View autoconv.c
// auto convert input and output encoding
// copyright (c) 2014 kikairoya <kikairoya@gmail.com>
// this file can use, redistribute and/or modify under
// Boost Software License 1.0 or GNU GPLv2
//
// usage:
// $ ${something outputs UTF-8,CP932,eucJP} | LANG=ja_JP.eucJP autoconv
// --> converts stdout encoding to eucJP
// $ LANG=ja_JP.UTF-8 autoconv ${something outputs UTF-8,CP932,eucJP}
// --> prints stdout and stderr encoding to UTF-8
View mod_levenshtein.c
/* modified levenshtein distance calculation
This program can be used, redistributed or modified under any of
Boost Software License 1.0, GPL v2 or GPL v3
copyright(c) 2014 kikairoya <kikairoya@gmail.com>
*/
#include <string.h>
@kikairoya
kikairoya / dropbox.service
Created Aug 17, 2014
~/.config/systemd/user/dropbox.service
View dropbox.service
[Unit]
Description=Dropbox as a systemd service
[Service]
Type=forking
ExecStart=/usr/bin/dropbox start
ExecStop=/usr/bin/dropbox stop
PIDFile=%h/.dropbox/dropbox.pid
[Install]
@kikairoya
kikairoya / netctl
Created Aug 17, 2014
fake netctl script for vmware-suspend
View netctl
#!/bin/sh
case "$0" in
store)
;;
resume)
systemctl restart dhcpcd
;;
stop-all)
;;
View wandbox-rust-head.spec
%define gccver 4.8.2
Summary: rust for wandbox
Name: wandbox-rust-head
Version: %(eval date +%Y%m%d)
Release: 1
License: Apache
Group: wandbox
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: wandbox-gcc-%{gccver} wandbox-libuv
BuildRequires: libffi-dev
View gist:204c75fd4d4d7276983b
error: linking with `/opt/wandbox/gcc-4.8.2/bin/g++` failed: exit code: 1
note: /opt/wandbox/gcc-4.8.2/bin/g++ '-m64' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-o' 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustuv-ede8cb89-0.11.0-pre.so' 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/rustuv.o' '-lmorestack' 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/rustuv.metadata.o' '-nodefaultlibs' '-Wl,--as-needed' '-Wl,-O1' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lstd-59beb4f7-0.11.0-pre' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lsync-305341d2-0.11.0-pre' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-g
You can’t perform that action at this time.