This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# -*- coding: utf-8 -*- | |
""":" | |
exec python $0 $* | |
""" | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf8 -*- | |
import sys | |
BOL, LCOMMENT, INSTMT, INSERT, VALUES, QUOTE_VALUE = range(6) | |
CHUNK_SIZE = 1024 * 1024 * 1 / 2 # 512k in read | |
stock = '' | |
def next(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf8 -*- | |
# -*- eval: (setq flycheck-python-pylint-executable "/usr/bin/pylint") -*- | |
""" | |
This script generates the ranges of unicode character code that is defined in code mapping at unicode.org. | |
unicode.orgの文字コードマッピングから、unicodeの文字コードのレンジをプリントするスクリプト。 | |
""" | |
from itertools import groupby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# -*- eval: (setq flycheck-python-pylint-executable "/home/haruo31/app/caffe/bin/pylint") -*- | |
from codecs import decode, encode | |
from datetime import datetime, timedelta | |
from glob import glob | |
import gzip | |
from itertools import chain, repeat, groupby | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BASE=`dirname $0 | xargs -I\{\} sh -c "cd {}; pwd"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -xe | |
DRIVE=/dev/sr0 | |
TARGET=`pwd` | |
TMP=`mktemp -d --suffix=dvdbackup -p $TARGET` | |
pushd $TMP | |
dvdbackup -M -i $DRIVE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(:name howm-haruo31 | |
:website "http://howm.sourceforge.jp/" | |
:description "Write fragmentarily and read collectively." | |
:type http-tar | |
:options ("xzf") | |
:url "http://howm.sourceforge.jp/a/howm-1.4.3.tar.gz" | |
:build `(("./configure" ,(concat "--with-emacs=" el-get-emacs)) ("make"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sample; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.UncheckedIOException; | |
import java.nio.file.Files; | |
import java.util.Random; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.underthetree; | |
import java.io.*; | |
import org.apache.lucene.document.Document; | |
import org.apache.lucene.document.Field.Store; | |
import org.apache.lucene.document.StringField; | |
import org.apache.lucene.index.DirectoryReader; | |
import org.apache.lucene.index.IndexWriter; | |
import org.apache.lucene.index.IndexWriterConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ find . -name '*.m2ts' | xargs stat -c%s | paste -s -d+ | bc |
OlderNewer