$ brew search wkhtmltopdf
==> Searching local taps...
==> Searching taps on GitHub...
caskroom/cask/wkhtmltopdf
$ brew tap caskroom/cask
Updating Homebrew...
$ brew cask install wkhtmltopdf
This file contains hidden or 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
| def pt(secs=None): | |
| import time | |
| s = secs if secs else time.time() | |
| t = time.localtime(s) | |
| return time.strftime('%Y/%m/%d %H:%M:%S', t) |
This file contains hidden or 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
| """ | |
| 指定したディレクトリ以下の全ファイルの読取り専用を外します。 | |
| デフォルトはカレントディレクトリを対象とします。 | |
| """ | |
| import os | |
| import stat | |
| DEFAULT_DIR = '.' | |
This file contains hidden or 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
| { | |
| "configurations": [ | |
| { | |
| "name": "Win32", | |
| "includePath": [ | |
| "${workspaceRoot}", | |
| "C:/MinGW/include", | |
| "C:/MinGW/lib/gcc/mingw32/4.9.3/include" | |
| ], | |
| "defines": [ |
This file contains hidden or 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
| import functools | |
| import time | |
| def timetrace(func): | |
| @functools.wraps(func) | |
| def _wrapper(*args, **kwargs): | |
| start = time.time() | |
| results = func(*args, **kwargs) | |
| end = time.time() | |
| print(f'Took {end - start} sec') |
This file contains hidden or 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 | |
| """ | |
| ファイルの更新日付をコミット日時に調整します。 | |
| 注意)本スクリプトは、予め pull を実施後に実行されることを想定しています。 | |
| なので、リモート周りのコマンドは使っていません。コミット履歴もローカルコミット履歴をみます。 | |
| (つまり、ls-filesを使って、ls-remoteは利用しません。) | |
| 動作には、python-dateutilとgitpythonが必要です。 |
This file contains hidden or 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
| namespace Sazare.Samples | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Runtime; | |
| using Sazare.Common; | |
| #region MulticoreJITSamples-01 |