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
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# Distribution / packaging | |
.Python |
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
curl https://gist.githubusercontent.com/IamPhytan/cb6dc65740eece7bbc085c3d0de3062a/raw/curl_loop.sh | bash |
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 json | |
import logging | |
import threading | |
import fibre | |
from fibre.utils import Logger | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.DEBUG) | |
fibre_logger = Logger(verbose=logger.getEffectiveLevel() == logging.DEBUG) |
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
:: Run MATLAB scripts in CMD | |
:: Usage Examples | |
:: 'mat' is the name of my batch file | |
:: mat myScript.m | |
@echo off | |
:: Get filename by removing extension | |
set filename=%1 |
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
FOLDERPATH=RandomFolder | |
APPENDTEXT=_TextToAppend | |
for name in $FOLDERPATH/*; | |
do SUBSTRING=${name%.*}; | |
ext=${name##*.}; | |
mv $name $FOLDERPATH/${SUBSTRING##*/}$APPENDTEXT.$ext | |
done |
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 sympy as sym | |
import numpy as np | |
import matplotlib.pyplot as plt | |
sym.init_printing() | |
# Integral calculation constants | |
a = 0 | |
b = 20 | |
h = 0.4 |
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
# use : remren_git <ssh-url> | |
if [ "x$1" != "x" ] | |
then | |
git remote rename origin old-origin; | |
git remote add origin $1; | |
git push -u origin --all; | |
else echo "No arguments"; | |
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
// ~/.jupyter/custom/custom.js | |
/** | |
* | |
* Duplicate a current line in the Jupyter Notebook | |
* Used only CodeMirror API - https://codemirror.net | |
* | |
**/ | |
CodeMirror.keyMap.pcDefault["Ctrl-D"] = function(cm){ | |
// get a position of a current cursor in a current cell |
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
sudo apt update && sudo apt upgrade | |
sudo apt install -y build-essential cmake pkg-config | |
sudo apt install -y libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev | |
sudo apt install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev | |
sudo apt install -y libxvidcore-dev libx264-dev | |
sudo apt install -y libfontconfig1-dev libcairo2-dev | |
sudo apt install -y libgtk2.0-dev | |
sudo apt install -y libatlas-base-dev gfortran |
OlderNewer