Skip to content

Instantly share code, notes, and snippets.

@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 / 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 <[email protected]>
" Last Change: 2003 May 02
hi clear
set background=dark
if exists("syntax_on")
syntax reset
net stop TabletServiceWacom
net start TabletServiceWacom
net stop WTabletServicePro
net start WTabletServicePro
# TODO
# コピ本用リサイズスクリプト
# B5で原寸書き出しされたjpegファイル群をセブンイレブンの一括印刷用に1枚6MB程度になるよう一括リサイズする
# セブンイレブンの一括印刷は16枚までなのでリサイズ時にその旨警告するといいかも
@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
@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 / 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 / Vagrantfile
Last active August 6, 2017 16:31
local開発環境作成
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "centos"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.network :forwarded_port, guest: 22, host: 2221
end
@smison
smison / shell.txt
Created April 21, 2016 16:45
shell芸
$ stty -icanon min 1 #=> 行バッファをやめ1文字単位入力にする
$ cat # helloと打つ
#=> hheelllloo
$ stty -icanon #=> 元に戻す
@smison
smison / electron.txt
Last active April 22, 2016 14:01
Electronメモ
- node.js用プロジェクトに初期化してelectronをインストール
$ npm init -y
$ npm install electron-prebuilt --save-dev
- electronを起動
$ npm start
(package.jsonにエントリポイントを書いておく必要)