- Ubuntu 14.04 LTS
- Anaconda 3.7.4 with python 2.7
- wxpython 3.0.0
- vtk 5.10.1
This file contains 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
# install dependencies | |
sudo apt-get update | |
sudo apt-get install -y build-essential | |
sudo apt-get install -y cmake | |
sudo apt-get install -y libgtk2.0-dev | |
sudo apt-get install -y pkg-config | |
sudo apt-get install -y python-numpy python-dev | |
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev | |
sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev | |
This file contains 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
<前置き> | |
http://nlab.itmedia.co.jp/nl/articles/1507/03/news099.html | |
にあるように,有料サイト http://dorcel-handsoff.com/ の動画は | |
QSPLキーを同時に押さなければ閲覧ができないが, | |
これらのキーが押されている状態を自動生成することで,ハンズフリーでの閲覧が可能になる. | |
<手順> | |
1. Linux PC を用意する |
This file contains 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
## | |
## Copy & Paste Tool for images to PowerPoint(.pptx) | |
## | |
import pptx | |
import pptx.util | |
import glob | |
import scipy.misc | |
OUTPUT_TAG = "MY_TAG" |
This file contains 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
#include <iostream> | |
#include <string> | |
using namespace std; | |
//---------------- | |
template <class U> | |
class SingletonParent | |
{ |
This file contains 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
#include <iostream> | |
#include <string> | |
using namespace std; | |
//-- to stringize arguments in macro, just prepend '#' | |
#define SET_STR(name,x) string name(#name); cout << name << " = " << x << endl; | |
int main(int argc, char const* argv[]) | |
{ |
This file contains 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
#!/usr/bin/env ruby | |
def fizzbuzz(n) | |
(n % 15 == 0) ? "FizzBuzz" : | |
(n % 5 == 0) ? "Buzz" : | |
(n % 3 == 0) ? "Fizz" : | |
n | |
end | |
50.times {|i| |