Skip to content

Instantly share code, notes, and snippets.

Akihiro Uchida uchida

Block or report user

Report or block uchida

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 keybase.md

Keybase proof

I hereby claim:

  • I am uchida on github.
  • I am uchida (https://keybase.io/uchida) on keybase.
  • I have a public key whose fingerprint is 0B52 06F3 41EE ED89 6021 7423 FDE3 1684 6BF3 F057

To claim this, I am signing this object:

@uchida
uchida / private.xml
Created Jul 1, 2016
karabiner private.xml to remap cmd/opt/app key for MS keyborad
View private.xml
<?xml version="1.0"?>
<root>
<item>
<name>private items for MS Keyboard</name>
<item>
<name>Option_L to Command_L for MS Keyboard</name>
<identifier>private.micorosoft.opt_l-to-cmd-l</identifier>
<device_only>DeviceVendor::MICROSOFT</device_only>
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
</item>
View main.go
package main
import (
"fmt"
"errors"
"log"
"os"
"time"
"strings"
"path/filepath"
View docker-cleanup.sh
#!/bin/sh
docker ps -q -f status=exited | xargs --no-run-if-empty docker rm
docker images -q -f dangling=true | xargs --no-run-if-empty docker rmi
@uchida
uchida / arxiv2bib.py
Last active Aug 10, 2016
a simple BibTeX file generator from arxiv.org URL
View arxiv2bib.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# CC0, dedicated to public domain by Akihiro Uchida
import argparse
import urllib2, os
from HTMLParser import HTMLParser
import re
import calendar
ARXIV_ID_RE = re.compile(r'arXiv:((\d\d)(\d\d)\.\d+)')
@uchida
uchida / bibparse.py
Created Jan 31, 2016
a simple BibTeX parser based on finite state machine
View bibparse.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# CC0 dedicated to public domai by Akihiro Uchida
import sys
class BibParser(object):
def __init__(self):
self.parse = self.parse_main
self.buffer = ''
self.item = dict()
@uchida
uchida / CC0_CLA.md
Last active Jan 5, 2019
CLA for CC0
View CC0_CLA.md

Copyright Statement for Contributions

I hereby represent that all present, past and future contributions are governed by the Creative Commons Zero 1.0 Universal copyright statement, placing my contributions in the publicdomain. This entails that to the extent possible under law I waive all copyright and related or neighboring rights to the code or documents I contribute. I also represent that I have the authority to perform the above waiver with respect to the entirety of my contributions.

View array-manipulate.clj
(defn access [array & idxs]
(loop [i (first idxs)
idxs (rest idxs)
ret array]
(if i
(recur (first idxs) (rest idxs) (get ret i))
ret)))
(access [[0 1 2]] 0 1)
View keysnail.js
// ========================== KeySnail Init File =========================== //
// この領域は, GUI により設定ファイルを生成した際にも引き継がれます
// 特殊キー, キーバインド定義, フック, ブラックリスト以外のコードは, この中に書くようにして下さい
// ========================================================================= //
//{{%PRESERVE%
plugins.options["ldrnail.keybind"] = {
'j': 'next',
'k': 'prev',
'p': 'pin',
@uchida
uchida / README.md
Last active Aug 29, 2015
メール送信コマンド (python 2.6 以上で動作)
View README.md

使い方

設定名は後述する設定ファイルで設定します。

$ /path/to/mail.py '設定名' '宛先アドレス' '題名' '本文'

設定

You can’t perform that action at this time.