(Create a symlink pytest for py.test)
pytest [options] [file_or_dir] [file_or_dir] ...
Help:
| cd repository | |
| git checkout --orphan orphan_name | |
| git rm -rf . | |
| rm '.gitignore' | |
| echo "#Title of Readme" > README.md | |
| git add README.md | |
| git commit -a -m "Initial Commit" | |
| git push origin orphan_name |
| import matplotlib | |
| import matplotlib.cm | |
| import tensorflow as tf | |
| def colorize(value, vmin=None, vmax=None, cmap=None): | |
| """ | |
| A utility function for TensorFlow that maps a grayscale image to a matplotlib | |
| colormap for use with TensorBoard image summaries. |
To remove a submodule you need to:
| #!/bin/sh | |
| # | |
| # a simple way to parse shell script arguments | |
| # | |
| # please edit and use to your hearts content | |
| # | |
| ENVIRONMENT="dev" |
| # Make sure you grab the latest version | |
| curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip | |
| # Unzip | |
| unzip protoc-3.2.0-linux-x86_64.zip -d protoc3 | |
| # Move protoc to /usr/local/bin/ | |
| sudo mv protoc3/bin/* /usr/local/bin/ | |
| # Move protoc3/include to /usr/local/include/ |
| # Create a simple TF Graph | |
| # By Omid Alemi - Jan 2017 | |
| # Works with TF <r1.0 | |
| import tensorflow as tf | |
| I = tf.placeholder(tf.float32, shape=[None,3], name='I') # input | |
| W = tf.Variable(tf.zeros_initializer(shape=[3,2]), dtype=tf.float32, name='W') # weights | |
| b = tf.Variable(tf.zeros_initializer(shape=[2]), dtype=tf.float32, name='b') # biases | |
| O = tf.nn.relu(tf.matmul(I, W) + b, name='O') # activation / output |