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
""" | |
The MIT License (MIT) | |
Copyright (c) 2015 Alec Radford | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
#https://github.com/ClementPinard/FlowNetPytorch | |
conda create -n flowpy35 python=3.5 anaconda | |
source activate flowpy35 | |
conda install pytorch torchvision -c pytorch | |
pip install tensorboardx | |
pip install argparse |
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 wine and ltspice | |
sudo apt-get install wine | |
# sudo pacman -S wine | |
cd /tmp/ | |
wget http://ltspice.linear-tech.com/software/LTspiceIV.exe | |
wine LTspiceIV.exe | |
rm LTspiceIV.exe | |
# start lstpice through wine | |
wine ~/.wine/drive_c/Program\ Files/LTC/LTspiceIV/scad3.exe |
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
gcc --version | |
g++ --version | |
nvcc --version | |
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 | |
#### switching gcc | |
# https://gist.github.com/jS5t3r/5d1c15b2d10754cb732b5755508e51d0 | |
# conda update conda | |
# conda create -n yourenvname python=x.x anaconda |
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
#!/bin/sh | |
# CMAKE | |
# http://embedonix.com/articles/linux/installing-cmake-3-5-2-on-ubuntu/ | |
# Could NOT find Check (missing: PC_CHECK_LIBRARIES) | |
#(_FPHSA_FAILURE_MESSAGE) cmake/FindCheck.cmake:14 (find_package_handle_standard_args) | |
sudo apt-get install check | |
# additional libararies |
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
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler | |
sudo apt-get install --no-install-recommends libboost-all-dev | |
sudo apt-get install -y build-essential cmake git pkg-config | |
sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler | |
sudo apt-get install -y libatlas-base-dev | |
sudo apt-get install -y --no-install-recommends libboost-all-dev | |
sudo apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev | |
sudo apt-get install -y python-dev | |
sudo apt-get install -y python-numpy python-scipy |
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
%output "parser.cxx" | |
%defines "parser.hxx" | |
%skeleton "lalr1.cc" // C++ parser interface | |
%require "3" // require bison version | |
%parse-param { yy::scanner* scanner } { ParserCallback* cb } // add parser members | |
%locations // call yylex with a location | |
%define parse.error verbose // increase usefulness of error messages | |
%define parse.assert // assert correct cleanup of semantic value objects |
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
%option outfile="scanner.cxx" | |
%option header-file="scanner.hxx" | |
%option yylineno | |
%option c++ | |
%option 8bit warn nodefault | |
%option noyywrap | |
%option debug | |
%x incl |
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
sudo pacman -S yaourt atom yakuake dropbox thunderbird python2 tk | |
sudo pacman -S python2-pip | |
pip install virtualenv | |
sudo pip install requests | |
# http://docs.python-guide.org/en/latest/dev/virtualenvs/ | |
# pip freeze > requirements.txt | |
pip install -r requirements.txt |