Skip to content

Instantly share code, notes, and snippets.

View informationsea's full-sized avatar

Yasunobu Okamura informationsea

View GitHub Profile
@informationsea
informationsea / config.txt
Created November 26, 2012 15:33
Raspberry Pi Overclock /boo/config.txt
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
@informationsea
informationsea / extract-fasta.py
Created December 6, 2012 05:08
Extract records from multi-fasta
#!/usr/bin/env python2.7
"""
Extract records from multi-fasta
"""
__author__ = 'Yasunobu OKAMURA'
__copyright__ = 'Copyright (C) 2012 Yasunobu OKAMURA All Rights Reserved.'
import argparse
@informationsea
informationsea / linkchecker.py
Last active October 13, 2015 21:38
Make link graph
#!/usr/bin/env python
# -*- python -*-
__author__ = 'Yasunobu OKAMURA'
__copyright__ = 'Copyright (c) 2014 Y.Okamura'
__license__ = 'GPLv3+'
import HTMLParser
import urllib
import argparse
@informationsea
informationsea / xgmml_networkx.py
Created December 14, 2012 12:01
XGMML importer and exporter for networkx
__author__ = "Yasunobu OKAMURA"
__copyright__ = "Copyright (c) 2012 Y.Okamura"
__license__ = "GPL v3+"
import xml.parsers.expat
import networkx as nx
class XGMMLParserHelper(object):
"""
"""
@informationsea
informationsea / key.el
Created January 15, 2013 11:38
Recommend emacs setting for beginners.
(global-set-key (kbd "<up>") 'suspend-frame)
(global-set-key (kbd "<down>") 'suspend-frame)
(global-set-key (kbd "<left>") 'suspend-frame)
(global-set-key (kbd "<right>") 'suspend-frame)
@informationsea
informationsea / make-tex-table.py
Last active December 11, 2015 05:49
Make tex table from Tab separated text or CSV
#!/usr/bin/env python
__author__ = "Y.Okamura <okamura=AT=informationsea.info>"
__copyright__ = "Copyright (C) 2013 Y.Okamura"
__license__ = "GPL3 or later"
import argparse
import csv
import sys
import itertools
@informationsea
informationsea / remove-tex-contro.py
Created January 17, 2013 14:12
Remove TeX control sequences from TeX source (for LanguageTool)
#!/usr/bin/env python
__author__ = 'Y.OKAMURA <okamura=AT=informationsea.info>'
__copyright__ = 'Copyright (C) 2013 Y.OKAMURA'
__license__ = 'GPL3+'
import argparse
import re
import sys
@informationsea
informationsea / emacs-24.2.92.patch
Last active December 11, 2015 17:28
Japanese input method
=== modified file 'configure.ac'
--- configure.ac 2013-01-16 08:08:34 +0000
+++ configure.ac 2013-01-25 13:05:34 +0000
@@ -4322,7 +4322,7 @@
## 0x690 is the total size of 30 segment load commands (at 56
## each); under Cocoa 31 commands are required.
if test "$HAVE_NS" = "yes"; then
- libs_nsgui="-framework AppKit"
+ libs_nsgui="-framework AppKit -framework Carbon"
headerpad_extra=6C8
@informationsea
informationsea / csv2tsv.py
Last active December 12, 2015 05:28
Convert CSV to Tab separated Text
#!/usr/bin/env python
__author__ = "OKAMURA Yasunobu"
__license__ = "GPL3+"
import argparse
import csv
import sys
def _main():
@informationsea
informationsea / emacs-mac.el
Created February 19, 2013 08:06
A fragment of the emacs elisp for mac
(when (>= emacs-major-version 24) ;; for cocoa emacs
(if (eq window-system 'ns)
(progn
(setq mac-mouse-wheel-smooth-scroll t)
(dolist (dir (list
"/sbin"
"/usr/sbin"
"/bin"