View hospital_neo4j.txt
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
= Location and infection tracking in a hospital | |
== Data model | |
=== People and hospital rooms | |
People and places inside a hospital are represented as nodes with labels _Person_ and _Facility_ respectively. _Person_ nodes have extra labels _Doctor_, _Nurse_, or _Patient_,... and properties _name_, _age_. _Facility_ nodes have properties _type_ (_eg_ _Ward_) and _name_ (_eg_ _Ward 01_). | |
[source,cypher] | |
---- |
View pyspark_config.py
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
import os, sys | |
spark_home = os.getenv('SPARK_HOME') | |
sys.path.insert(0, spark_home + '/python') | |
sys.path.insert(0, os.path.join(spark_home, 'python/lib/py4j-0.10.3-src.zip')) | |
exec(open(os.path.join(spark_home, 'python/pyspark/shell.py')).read()) |
View merge.sh
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 | |
{ head -n1 file1.csv; for f in file*.csv; do tail -n+2 "$f"; done; } > results.csv |
View install_tf.sh
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
bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --incompatible_load_argument_is_label=false |
View vlc_stream.sh
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
# display file, stream audio only | |
vlc -vvv <file> \ | |
--sout '#duplicate{dst=display,dst="transcode{vcodec=none}:standard{access=http,mux=ts,dst=:8080}"}' |
View lyric.sh
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/bash | |
function split_colon { | |
awk '{split($0, a, ": "); print a[2]}' | |
} | |
function get_field { | |
spotify status | grep "$1" | split_colon | |
} |
View nbexecute.sh
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/bash | |
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=-1 "$1" --output "$1" |
View vlc_stream_browser_control.sh
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/bash | |
vlc <filename> \ | |
-I http --http-host 0.0.0.0 --http-port 4857 --http-password <password> | |
--sout '#standard{access=http,mux=ts,dst=:4875}' |
View compile_pytorch.sh
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
CC=gcc-5 CXX=g++-5 NCCL_ROOT_DIR=/opt/cuda CFLAGS="${CFLAGS/-fno-plt/}" CXXFLAGS="${CXXFLAGS/-fno-plt/}" python setup.py bdist_wheel |
View keras_tf_limit_gpu.py
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
import tensorflow as tf | |
from keras.backend.tensorflow_backend import set_session | |
gpu_options = tf.GPUOptions(allow_growth=True, per_process_gpu_memory_fraction=0.333) | |
sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options)) | |
set_session(sess) |
OlderNewer