Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Shoji KUMAGAI shkumagai

🏠
Working from home
View GitHub Profile
@shkumagai
shkumagai / sample.py
Created Jun 1, 2021
override __init__ metho
View sample.py
# coding:utf-8
from __future__ import print_function, unicode_literals
class Hoge(object):
_foo = None
_bar = None
_buz = None
def __init__(self, foo=1, bar=2, buz="3"):
View github-pr-release.py
import re
import sys
from datetime import datetime
from subprocess import run, PIPE
from urllib.parse import urlparse
from jinja2 import Template
from github import Github
re_refs = re.compile(r"^refs/pull/(?P<pr_number>\d+)/head$")
@shkumagai
shkumagai / pyside2setup.sh
Last active Aug 17, 2017
bootstrap of PySide2 (not works for Darwin)
View pyside2setup.sh
#!/bin/bash
# -*- coding: utf-8 -*-
# Prerequisites: Qt5.9 installed
brew install cmake p7zip
# clone repository
git clone https://code.qt.io/pyside/pyside-setup && cd pyside-setup
# download clang installation
View ssh_config
ServerAliveInterval 60
IdentitiesOnly yes
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_ecdsa
ForwardAgent yes
#
# General Proxy Setting (http://bit.ly/1MD3d24)
#
@shkumagai
shkumagai / fortune.txt
Last active Feb 24, 2016
my fortune in Feb 2016
View fortune.txt
くまさんの
基本運勢
2016/2/1-2016/2/29の空模様
■双子座
忙しい時期が続いていますが、一月よりもずっと流れがよくなっていて、ストレスは軽くなっているはずです。
ただ忙しいだけでなく、やったことがきちんと成果に結びついているので、やりがいも日増しに大きくなっていくでしょう。
また、日々積み重ねていることから、「さらに、もっと大きなことをやってみたい」「もっと広い場所に出てみたい」「もう少し難しいことに挑戦してみたい」といったような「欲」が出てくるかもしれません。
この「欲」は、貴方をどんどん強く、大きくしてくれる、「魔法」のようなものです。
View how_to_write_go_code.rst
@shkumagai
shkumagai / modulesetup.py
Last active Oct 5, 2018
module setup script for Python
View modulesetup.py
#!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
"""
modulesetup - setup script for python module skelton
usage:
# execute script like this,
$ python modulesetup foo.bar.buz
@shkumagai
shkumagai / using-unicode-in-erlang_ja.rst
Last active Jan 31, 2018
using unicode in erlang [ja]
View using-unicode-in-erlang_ja.rst
@shkumagai
shkumagai / memo.rst
Last active Dec 14, 2015
How to install Emacs 24.3 on Mac OS
View memo.rst

Emacs 24.3 install on Mac OS X

Date: Fri 3/15 00:39:04 2013

Download

@shkumagai
shkumagai / conf.py
Created Dec 6, 2012
Sample conf.py to hide sidebar
View conf.py
# -- Options for HTML output ---------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'bizstyle'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {