Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/python
# -*- coding: utf-8 -*-
import sys
import cv2
import numpy
import re
helptext = '''
set HENSU=%~n0
echo %HENSU%
Everything.exe -s path:%HENSU%
<style type="text/css">
div{
display: flex;
display: inline-flex;
flex-wrap:wrap;
}
div li:first-child {
width: 100%;
}
div li {
<g><rect y="100" x="100" width="561.4" height="584.9" id="iidabashiroom" /></g>
<g><rect y="100" x="100" width="123.0" height="64.0" id="desk1" /></g>
<g><rect y="100" x="100" width="180.0" height="93.0" id="desk2" /></g>
<g><rect y="100" x="100" width="39.0" height="57.0" id="drawer1" /></g>
<g><rect y="100" x="100" width="42.5" height="61.0" id="drawer2" /></g>
<g><rect y="100" x="100" width="240.0" height="120.0" id="tablebig" /></g>
<g><rect y="100" x="100" width="121.0" height="39.5" id="uketsuketana" /></g>
<g><rect y="100" x="100" width="50.0" height="65.0" id="c703m" /></g>
<g><rect y="100" x="100" width="67.0" height="68.2" id="c5002" /></g>
<g><rect y="100" x="100" width="48.0" height="31.0" id="racksmall" /></g>
@tamura
tamura / gist:036f38ad92b2f82e83c8
Last active February 15, 2016 05:13
extract field value from multiple PDF form files
find . -name "*.pdf" -exec bash -c "echo {} & cat <(pdftk {} dump_data_fields_utf8 | grep FieldValue: ) " \;
find . -name "*GUARANTEE*" -exec pdftk {} dump_data_fields_utf8 \; |grep Value
window.onmousemove = handleMouseMove;
function handleMouseMove(event) {
event = event || window.event; // IE
console.log( event.clientX + ", " + event.clientY );
}
echo '<table class="table table-condensed table-bordered">';
$confkeys=array();
foreach ($config as $key => $row) {
# code...
$confkeys=array_merge($confkeys,array_keys($row));
}
$confkeys=array_unique($confkeys);
Note left of 投稿者: 発表受付
投稿者->システム:アブストラクト投稿
システム-->投稿者: エラーチェック
投稿者-->システム:アブストラクト再投稿
システム-->投稿者: エラーチェック
システム->事務局:投稿データ取得
Note over 事務局: 採択決定
事務局->投稿者:採択通知、受付番号、パスワード
Note left of 投稿者: 原稿受付
@tamura
tamura / gist:e1a25894aefcfe73cdd6
Last active August 29, 2015 14:18
エレメント全てが大きい
console.log(window.devicePixelRatio)
@media screen and (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 2dppx),
(min--moz-device-pixel-ratio: 2),
(-o-min-device-pixel-ratio: 2/1) {
-moz-transform: scale(0.8);
-webkit-transform: scale(0.8);
-o-transform: scale(0.8);