Skip to content

Instantly share code, notes, and snippets.

@smison
smison / neural_doodle.txt
Last active March 11, 2016 14:52
neural_doodle_memo
* 必要ライブラリ導入
pip3 install --upgrade pip
pip3 install numpy
pip3 install scipy
pip3 install scikit-image
pip3 install matplotlib
pip3 install theano
pip3 install lasagne
* neural_doodle導入
@smison
smison / TensorFlow.txt
Last active February 18, 2016 07:14
TensorFlow lesson
TensorFlowの学習メモ
- TensorFlowをMac & Dockerで使ってみたよ
http://qiita.com/yanosen_jp/items/41938cc361c9e7c83acc#_reference-d6603d87a29be94ac9f4
- Setting up TensorFlow (Mac)
http://www.raydaq.com/getting-started-with-tensorflow-mac/
Docker is the easiest method to setup TensorFlow on a mac.
- TensorFlowで Hello Worldを動かしてみた&その解説
@smison
smison / resize.sh
Last active September 9, 2015 15:47
同じディレクトリのpng画像を長辺900pxにリサイズするbashスクリプト(http://qiita.com/smison/items/384a70020ee0e715be31)
#! /bin/bash
cd `dirname $0`
for fname in *.png; do
height=`identify -format '%h' ${fname}`
width=`identify -format '%w' ${fname}`
basename=`basename ${fname} .png`
if [ ${height} -ge ${width} ]; then
convert -resize x900 ${fname} ${basename}_resized.png
# TODO
# コピ本用リサイズスクリプト
# B5で原寸書き出しされたjpegファイル群をセブンイレブンの一括印刷用に1枚6MB程度になるよう一括リサイズする
# セブンイレブンの一括印刷は16枚までなのでリサイズ時にその旨警告するといいかも
net stop TabletServiceWacom
net start TabletServiceWacom
net stop WTabletServicePro
net start WTabletServicePro
@smison
smison / murphy_ex.vim
Created April 22, 2015 01:33
vim colorscheme
" local syntax file - set colors on a per-machine basis:
" vim: tw=0 ts=4 sw=4
" Vim color file
" Maintainer: Ron Aaron <ron@ronware.org>
" Last Change: 2003 May 02
hi clear
set background=dark
if exists("syntax_on")
syntax reset
@smison
smison / vagrant_up.bat
Last active August 9, 2019 03:21
ホストOS起動時に自動でvagrant upするbat
cd /d %~dp0
call vagrant up
REM 参考資料
REM http://qiita.com/goldbook@github/items/6445b4fa6bf5704a28bb
@smison
smison / Guardfile
Last active August 29, 2015 14:17
*.javaの更新を監視してguardで自動ビルド/実行するGuardfile(http://qiita.com/smison/items/598899fa8e03646d1f4e)
require 'guard'
guard 'shell' do
watch(/(.*).java/){|m| `echo; javac #{m[0]}; java #{m[1]}; echo; echo;`}
end
require 'auto_click'
### parameter
line_length = 90 # カケアミ一本あたりの長さ
interval_x = 5 # カケアミ間の幅(x軸)
interval_y = 3 # カケアミ間の幅(y軸)
times_x = 125 # x軸方向に何本線を引くか
times_y = 5 # y軸方向に何本線を引くか
start_point_x = 50 # 始点(x軸)
start_point_y = 300 # 始点(y軸)
@smison
smison / mouse_move.rb
Created March 19, 2015 10:43
Windowsマウス移動スクリプト
# coding: utf-8
require 'Win32API'
get_cursor_pos = Win32API.new("user32", "GetCursorPos", ['p'], 'v')
$set_cursor_pos = Win32API.new("user32", "SetCursorPos", ['i']*2, 'v')
input_point = " " * 8
get_cursor_pos.Call(input_point)
x, y = input_point.unpack("LL")
puts "grid: #{x}, #{y}"