Skip to content

Instantly share code, notes, and snippets.

for f in hoge* ; do ; mv $f ${f/hoge/piyo} ; done
for F in *; do cd $F; zip appendix_$F ./*; cd .. ;done
gem install `cat gemlist`
@shoya140
shoya140 / gist:4cdbf3fb5b950df29988
Created July 31, 2014 07:19
matplotlib.pyplot in ipynb
%matplotlib inline
@shoya140
shoya140 / gist:f051cad97d8d0904a715
Last active August 29, 2015 14:04
iPython notebookのための環境構築
brew install gcc freetype python
pip install numpy scipy ipython tornado pyzmq matplotlib jinja2
pip install scikit-learn scikit-image multiprocessing #options
brew install opencv #opencv should be installed after installing brew/python and numpy
@shoya140
shoya140 / gist:620260670fd49e27c8c0
Created July 26, 2014 07:41
ipython notebookファイルからhtmlを生成
ipython nbconvert FILENAME.ipynb --to html
//
// ViewController.m
// ViewoSample
//
// Created by ishimaru on 2014/07/18.
// Copyright (c) 2014年 mrk1869. All rights reserved.
//
#import "ViewController.h"
#import <AVFoundation/AVFoundation.h>
$ sudo vim /etc/locale.gen
$ sudo locale-gen
$ sudo update-locale LANG=en_US.UTF-8
aptitude search "~i"
@shoya140
shoya140 / one-line.py
Created June 18, 2014 07:07
1行で素数
print [p for p in range(2,100) if 0 not in [p % b for b in range(2,p)]]