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
# Setup everything for this repository | |
readonly ARGS="$@" # Reset using https://stackoverflow.com/a/4827707 | |
readonly PROGNAME=$(basename $0) | |
readonly PROGPATH=$(realpath $(dirname $0)) | |
# Internal variables | |
env_name="proj" # Name of the environment | |
exec_name="conda" # Executable | |
dry_run="false" # 'true' or 'false' |
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 | |
readonly VERSION_MAJOR=1 | |
readonly VERSION_MINOR=2 | |
VERSION="${VERSION_MAJOR}.${VERSION_MINOR}" | |
# Program properties | |
readonly ARGS="$@" # Reset using https://stackoverflow.com/a/4827707 | |
readonly PROGNAME=$(basename $0) | |
readonly PROGPATH=$(realpath $(dirname $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
#!/bin/bash | |
# Toggle mic ON/OFF | |
tgl=$(amixer -D pulse sset Capture toggle) | |
if echo "$tgl" | grep "\] \[off\]"; then | |
echo "Mic is toggled OFF" | |
else | |
echo "Mic is toggled ON" | |
fi |
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 | |
# Copyright (C) 2022 Avneesh Mishra - GNU GPLv3 | |
# | |
# This program is free software: you can redistribute it and/or modify it | |
# under the terms of the GNU General Public License as published by the | |
# Free Software Foundation, either version 3 of the License, or (at your | |
# option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, but |
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
# Testing __getitem__() and Python Iterators | |
""" | |
Some resources: | |
- https://stackoverflow.com/a/61658447/5836037 | |
""" | |
# %% | |
class Something: | |
def __init__(self) -> None: | |
self.items = [10, 20, 35, 60, 75] |
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 | |
# Copyright (C) 2022 Avneesh Mishra - GNU GPLv3 | |
# | |
# This program is free software: you can redistribute it and/or modify it | |
# under the terms of the GNU General Public License as published by the | |
# Free Software Foundation, either version 3 of the License, or (at your | |
# option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, but |
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 sys | |
from pathlib import Path | |
# Set the "./../lib" from the script folder | |
dir_name = None | |
try: | |
dir_name = os.path.dirname(os.path.realpath(__file__)) | |
except NameError: | |
print("WARN: __file__ not found, trying local") | |
dir_name = os.path.abspath('') |
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
#!/usr/bin/env python3 | |
from _thread import start_new_thread | |
def count_to_n(id, n): | |
""" | |
Count numbers from 0 to n - 1 | |
Parameters: | |
id: The identifier for the function | |
n: The number to count upto (exclusive of n) |
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
[Desktop Entry] | |
Name=CoppeliaSim | |
Comment=Robotic Simulation software from Coppelia Robotics. Formally known as VReP | |
Exec=/opt/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/coppeliaSim.sh | |
Icon=/opt/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/helpFiles/logo.png | |
Terminal=true | |
Type=Application | |
Category=Simulation;Robotics;Education;Science; | |
StartupNotify=true | |
Keywords=VReP; |
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
[Desktop Entry] | |
Name=MATLAB R2019b | |
Comment=MATLAB R2019b software | |
Exec=/usr/local/MATLAB/R2019b/bin/matlab -desktop | |
Icon=/usr/local/MATLAB/R2019b/matlab_logo.png | |
Terminal=true | |
Type=Application | |
Category=Development;Simulation;Education;Science; | |
StartupNotify=true | |
Keywords=Run; |
NewerOlder