This one already exists — just rename the SSIDs.
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 | |
| set -e | |
| ask() { | |
| # $1 = question text, $2 = default (y/n) | |
| local prompt | |
| if [[ "$2" == "y" ]]; then | |
| prompt="[Y/n]" | |
| default="y" | |
| else |
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
| # ----------------USER-------------- | |
| # Showing git branch | |
| source /usr/lib/git-core/git-sh-prompt | |
| export PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u:\[\033[01;34m\]\w\[\033[00m\]\$(__git_ps1)\[\033[00m\] $" | |
| # ROS2 | |
| source /opt/ros/galactic/setup.bash | |
| source $HOME/ubica_ws/install/setup.bash |
-
Dynamic object : Affected by gravity, collisions and other constraints.
-
Static object : Not affected by forces.
-
Respondable object : Produces a collision reaction with other respondable objects.
-
Respondable mask : Used to filter respondability to only some objects.
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
| Batch rename files | |
| ls | cat -n | while read n f; do mv "$f" `printf "%04d.jpg" $n`; done | |
| Finds all the executables in the folder (source)[https://superuser.com/questions/492501/how-do-i-list-all-of-the-executables-in-a-linux-directory-sub-dirs-path] | |
| find . -type f –executable | |
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
| # References | |
| # 1. https://github.com/mdbloice/Augmentor | |
| import Augmentor | |
| p = Augmentor.Pipeline("/home/jayasimha/NJ/Datasets/Nuts/nonsense") | |
| p.skew_left_right(probability=0.5) | |
| p.skew_top_bottom(probability=0.5) | |
| p.random_brightness(probability=0.5,min_factor=0.9,max_factor=1.0) |
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
| __author__ = "Anirudh NJ" | |
| __email__ = "[email protected]" | |
| __license__ = "GNU" | |
| import cv2 | |
| import sift | |
| import os | |
| from glob import glob | |
| import pickle | |
| import numpy as np |
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
| ### OpenAI GYM ### | |
| # 1. https://gym.openai.com/docs/ | |
| # 2. https://gym.openai.com/envs/#board_game | |
| import gym | |
| # Create an env for RL | |
| # print(envs.registry.all()) | |
| env = gym.make('CartPole-v0') | |
| observation = env.reset() |
NewerOlder