(Create a symlink pytest for py.test)
pytest [options] [file_or_dir] [file_or_dir] ...
Help:
from IPython.display import HTML | |
javascript = """ | |
<script type="text/Javascript"> | |
var saveBTN = document.getElementById("save_checkpoint"); | |
saveBTN.click(); | |
</script> | |
""" | |
HTML(javascript) |
Issue Solving with Skype due to: https://github.com/Nummer/Destroy-Windows-10-Spying | |
157.55.235.0-157.55.235.255_Block | |
157.55.56.0-157.55.56.255_Block | |
64.4.23.0-64.4.23.255_Block | |
65.55.223.0-65.55.223.255_Block | |
or use this commands (admin rights necessary): | |
netsh advfirewall firewall delete rule name="157.55.235.0-157.55.235.255_Block" | |
netsh advfirewall firewall delete rule name="157.55.56.0-157.55.56.255_Block" |
from IPython.display import HTML | |
javascript = """ | |
<script type="text/Javascript"> | |
var saveBTN = document.getElementById("save_checkpoint"); | |
saveBTN.click(); | |
</script> | |
""" | |
HTML(javascript) |
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. |
from tensorflow.python.framework import ops | |
def get_placeholders(graph): | |
"""Get placeholders of a graph. | |
For example: | |
```python | |
a = tf.placeholder(dtype=tf.float32, shape=[2, 2], name='a') | |
a = tf.placeholder(dtype=tf.int32, shape=[3, 2], name='b') | |
# would give [<tf.Tensor 'a:0' shape=(2, 2) dtype=float32>, | |
# <tf.Tensor 'b:0' shape=(3, 2) dtype=int32>] |
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 caffe | |
import numpy as np | |
import sys | |
if len(sys.argv) != 3: | |
print "Usage: python convert_protomean.py proto.mean out.npy" | |
sys.exit() | |
blob = caffe.proto.caffe_pb2.BlobProto() | |
data = open( sys.argv[1] , 'rb' ).read() |
BEGIN | |
EXECUTE IMMEDIATE 'DROP TABLE table_name'; | |
EXCEPTION | |
WHEN OTHERS THEN NULL; | |
END; | |
/ |
DROP SCHEMA public CASCADE; | |
CREATE SCHEMA public; |