Skip to content

Instantly share code, notes, and snippets.

@ymotongpoo
ymotongpoo / concat_pdf.py
Created August 29, 2011 17:01
concat multiple pdf files
# -*- coding: utf-8 -*-
from pyPdf import PdfFileWriter, PdfFileReader
def main(output_file, input_files):
print "concat all files:"
output = PdfFileWriter()
total_pages = 0
@YungSang
YungSang / utility.download.js
Created January 12, 2013 20:35
[Deprecated] Patch for Tombloo on Firefox 18 これを直接パッチディレクトリに突っ込んで再起動させるといいはず。 ※ この修正は Tombloo 0.4.33 で取り込まれました。
(function() {
addAround(grobal, 'download', function(proceed, args, self) {
try {
return proceed(args);
}
catch (e) {
return _download.apply(self, args);
}
});
@esehara
esehara / 6fbd89712abef0ff1e72967f806663d7.png
Last active December 22, 2015 15:49
伝統的なPythonistaの退職エントリ
6fbd89712abef0ff1e72967f806663d7.png
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
import codecs
import numpy as np
import MeCab
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.cluster import KMeans, MiniBatchKMeans
@voluntas
voluntas / shiguredo.rst
Last active August 29, 2024 11:42
時雨堂コトハジメ