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
# WeChat aud file converter to wav files | |
# Dependencies: | |
# SILK audio codec decoder (available at https://github.com/gaozehua/SILKCodec) | |
# ffmpeg | |
# | |
# By Gabriel B. Nunes (gabriel@kronopath.net) | |
# Adapted from another script by Nicodemo Gawronski (nico@deftlinux.net) | |
# | |
import os, argparse, subprocess |
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
image: | |
[] | |
detections: | |
- | |
box: [50.07582092285156, 355.50042724609375, 537.6442260742188, 536.150390625] | |
score: 0.452870070934 | |
class_str: "0" | |
--- |
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 | |
import glob | |
def get_image_paths(path): | |
# Gather image paths | |
image_paths = glob.iglob(os.path.join(path, "*.png")) | |
# Loop through images, skip those without bounding boxes | |
for image_path in image_paths: |
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
# Add key of ros repo | |
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 | |
# Add ros repo | |
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | |
# Install ros | |
sudo apt update | |
sudo apt install -y ros-kinetic-desktop-full | |
apt search ros-kinetic | |
# install ros dependency |
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
# Add ros repo | |
# Add key of ros repo | |
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 | |
# Install ros | |
sudo apt update | |
sudo apt install ros-melodic-desktop-full | |
apt search ros-melodic | |
# install ros dependency | |
sudo rosdep init |
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
on run argv | |
tell application "System Events" | |
tell appearance preferences | |
set dark mode to not dark mode | |
end tell | |
end tell |
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 | |
# Use this shell script in combination with ControlPlane (http://www.controlplaneapp.com) to detect | |
# and automatize when the battery percentage is lower or equal than 10 percent. | |
# For example: let ControlPlane close for you all Cloud applications when you to low battery life. | |
batteryPercentage=`pmset -g batt | egrep -ow '([0-9]{1,3})[^%]'` | |
lowbatPercentage=10 | |
if [ ${batteryPercentage} -le ${lowbatPercentage} ]; then |
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
// Finds the specific description page for a play in 'repertoire' | |
function findDescriptionPage($name, $pages) { | |
// Break Conditions | |
if (empty($name) || empty($pages) || $pages->find('repertoire') == false) return false; | |
// First round: exact matches | |
if($result = $pages->find('repertoire')->children()->visible()->search($name, 'title|label|author|uid')) return $result; | |
} |
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
// Font Icon | |
%fontawesomeIcon { | |
display: inline-block; | |
font-family: FontAwesome; | |
font-style: normal; | |
font-weight: normal; | |
line-height: 1; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} |