Skip to content

Instantly share code, notes, and snippets.

@hrsano645
hrsano645 / subprocess_call_gsprint.py
Last active August 29, 2015 14:24
Printing PDF File at windows and python. Use GSPrint comanndline tool
# coding: utf-8
from __future__ import division, print_function, absolute_import, unicode_literals
import subprocess
import sys
# ref: http://stackoverflow.com/questions/4498099/silent-printing-of-a-pdf-in-python
# ref: http://stackoverflow.com/questions/1462842/print-pdf-document-with-pythons-win32print-module
@hrsano645
hrsano645 / win32api_ShellExecute_print.py
Created July 2, 2015 12:43
Printing PDF File at windows and python. Use PyWin32 Package win32api.ShellExecute module
# coding: utf-8
from __future__ import division, print_function, absolute_import, unicode_literals
# ref: http://timgolden.me.uk/python/win32_how_do_i/print.html
# ref: http://docs.activestate.com/activepython/2.7/pywin32/win32api__ShellExecute_meth.html
import win32api
import sys
@hrsano645
hrsano645 / subprocess_silent_call_acrobat.py
Created July 2, 2015 12:29
Printing PDF File at windows and python. Use subprocess module and Adobe Acrobat Commandline Option Silent Mode
# coding: utf-8
from __future__ import division, print_function, absolute_import, unicode_literals
import subprocess
import sys
# ref: https://geonet.esri.com/thread/59446
# ref: https://helpx.adobe.com/jp/acrobat/kb/510705.html
@hrsano645
hrsano645 / subprocess_call_acrobat.py
Created July 2, 2015 12:25
Printing PDF File at windows and python. Use subprocess module and Adobe Acrobat Commandline Option
# coding: utf-8
from __future__ import division, print_function, absolute_import, unicode_literals
import subprocess
import sys
# ref: https://geonet.esri.com/thread/59446
# ref: https://helpx.adobe.com/jp/acrobat/kb/510705.html
@hrsano645
hrsano645 / hb_convert_batch.py
Created June 11, 2015 08:34
Convert MPEG TS file to Mp4 file using Handbrake CLI , Preset Android Tablet
# coding: utf-8
from __future__ import division, print_function, absolute_import, unicode_literals
import os
import sys
import itertools
import subprocess
def main():
@hrsano645
hrsano645 / remove_wp_plugin_tag.py
Last active August 29, 2015 14:17
remove_wp_plugin_tag.py
# coding: utf-8
from __future__ import division, print_function, absolute_import, unicode_literals
__author__ = 'hiroshi sano<hrs.sano645@gmail.com>'
# Wordpressのプラグインで使っていたタグを、mdに適した形に置き換える
import glob
import re
import os
# coding: utf-8
from __future__ import division, print_function, absolute_import, unicode_literals
__author__ = 'hiroshi sano<hrs.sano645@gmail.com>'
import bs4
import codecs
import glob
import re
import os
@hrsano645
hrsano645 / TOC_アジャイルな見積りと計画づくり ~価値あるソフトウェアを育てる概念と技法
Created August 30, 2014 16:00
"アジャイルな見積りと計画づくり ~価値あるソフトウェアを育てる概念と技法" を自炊スキャンしたものにjPdfBookmarksを利用して栞をつけた時のテキストデータ
# "アジャイルな見積りと計画づくり ~価値あるソフトウェアを育てる概念と技法" を自炊スキャンしたものにjPdfBookmarksを利用して栞をつけた時のテキストデータ
# * JPdfBookmarksのテキストファイル形式
# * 白紙スキップはなし
# * PDFのページと実ページは4ページ分ずれています
# * 設定
# * エンコードはUTF-8(適時変更, テキストデータのエンコード変更のこと)
# * Values Separators
# * Page separator: /
# * Atributes Separator: ,
# * Indentation String: [space][space][space][space]
# wireshark v1.10.8にて、follow tcp streamを使った結果
GET /console/service/app_folder?v=57&t=2 HTTP/1.1
Cache-Control: no-cache
Pragma: no-cache
Accept-Encoding: identity
User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.4.3; Nexus 7 Build/KTU84L)
Host: www.estrongs.com
Connection: Keep-Alive
@hrsano645
hrsano645 / TOC_目次_理系のためのクラウド知的生産術
Created January 30, 2014 04:11
"理系のためのクラウド知的生産術―メール処理から論文執筆まで (ブルーバックス)" を自炊スキャンしたものにjPdfBookmarksを利用して栞をつけた時のテキストデータ * JPdfBookmarksのテキストファイル形式 * 設定は以下のとおり * エンコードはUTF-8(適時変更, テキストデータのエンコード変更のこと) * Values Separators * Page separator: / * Atributes Separator: , * Indentation String: [space][space][space][space]
表紙/1,Black,notBold,notItalic,closed,FitPage
はじめに/5,Black,notBold,notItalic,closed,FitPage
クラウド利用の前に準備すること/22,Black,notBold,notItalic,closed,FitPage
第1章 クラウドサービスを使った仕事環境/29,Black,notBold,notItalic,closed,FitPage
01 Googleアカウントをつくる/30,Black,notBold,notItalic,closed,FitPage
02 Googleサービスを俯瞰してみよう/32,Black,notBold,notItalic,closed,FitPage
03 Googleサービスを活用することで生まれる近道/35,Black,notBold,notItalic,closed,FitPage
04 ドロップボックスのアカウントを作成しよう/36,Black,notBold,notItalic,closed,FitPage
05 複数のパソコンでフアイルを同期しよう/38,Black,notBold,notItalic,closed,FitPage
06 スマートフォンやタブレツト端末でもドロップボックスを設定しよう/42,Black,notBold,notItalic,closed,FitPage