This file contains hidden or 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
[Desktop Entry] | |
Version=1.0 | |
Encoding=UTF-8 | |
Name=Popcorn Time | |
Name[en_US]=Popcorn Time | |
GenericName=BitTorrent Stream Player | |
GenericName[en_US]=BitTorrent Stream Player | |
Comment=Run the Popcorn Time application | |
Comment[en_US]=Run the Popcorn Time application | |
Type=Application |
This file contains hidden or 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
[Desktop Entry] | |
Name=Vice City | |
Comment=Vice City | |
Exec=sh -c "cd /hardisk/Games/Vice\ City; wine gta-vc.exe" | |
Icon=/home/mythrex/.icons/icon.png | |
Terminal=false | |
Type=Application | |
Categories=Wine; | |
StartupNotify=true |
This file contains hidden or 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 | |
gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false | |
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM | |
gsettings set org.gnome.shell.extensions.dash-to-dock transparency-mode FIXED | |
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 64 | |
gsettings set org.gnome.shell.extensions.dash-to-dock unity-backlit-items true |
This file contains hidden or 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
ffmpeg -i concat:"input1.mp4|input2.mp4" output.mp4 |
This file contains hidden or 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 | |
mkvmerge -o outfile.mkv Scene0.mp4 \+ Scene1.mp4 |
This file contains hidden or 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
ffmpeg -f concat -i files.txt -c copy output.mp4 |
This file contains hidden or 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
def gcn(x, lambda_, s, epsilon=1e-8): | |
''' | |
Returns contrasted normalized img with added mean. | |
lambda_: constant added to variance | |
s: new std deviation of img | |
mu: img mean | |
''' | |
img = x.copy() | |
mu = img.mean() | |
img = img - mu |
This file contains hidden or 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 | |
pip install kaggle | |
mkdir ~/.kaggle | |
cp kaggle.json ~/.kaggle/ | |
chmod 600 ~/.kaggle/kaggle.json | |
kaggle datasets download -d iarunava/cell-images-for-detecting-malaria |
This file contains hidden or 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
def get_iou(bb1, bb2): | |
assert bb1[0] < bb1[2] | |
assert bb1[1] < bb1[3] | |
assert bb2[0] < bb2[2] | |
assert bb2[1] < bb2[3] | |
# determine the coordinates of the intersection rectangle | |
x_left = max(bb1[0], bb2[0]) | |
y_top = max(bb1[1], bb2[1]) | |
x_right = min(bb1[2], bb2[2]) |
This file contains hidden or 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
def get_iou(bb1, bb2): | |
assert bb1[0] < bb1[2] | |
assert bb1[1] < bb1[3] | |
assert bb2[0] < bb2[2] | |
assert bb2[1] < bb2[3] | |
# determine the coordinates of the intersection rectangle | |
x_left = max(bb1[0], bb2[0]) | |
y_top = max(bb1[1], bb2[1]) | |
x_right = min(bb1[2], bb2[2]) |
OlderNewer