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
package_name("com.foo.bar") |
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 Libraries | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from pandas.plotting import register_matplotlib_converters | |
register_matplotlib_converters() | |
#%matplotlib inline | |
import plotly.express as px | |
import plotly.graph_objects as go | |
from plotly.subplots import make_subplots |
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 bash | |
if [ -z "$1" ] | |
then | |
echo "$0 client-name" | |
exit 1 | |
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 | |
# this script moves ALL packages from volume-x to volume-y | |
# For Synology DSM - tested with DSM6.1 | |
if [ $# -lt 2 ]; then | |
echo "usage: $0 <from_vol> <to_vol>" | |
exit -1 | |
fi | |
from_vol="$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
#!/usr/bin/env bash | |
# ================================================================================ | |
# A git-diftool utility for a TeX file using `latexdiff`. | |
# | |
# | |
# Usage | |
# ----- | |
# git latexdiff [<commit>] | |
# git latexdiff --cached [<commit>] | |
# |
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 | |
# Authenticate an facebook application directly from shell. | |
# Make sure to modify the EMAIL and PASS below and just run it as: | |
# sh facebook-login.sh "<your facebook url>" | |
# | |
# It's possible to script and run the script in a while loop (In my case this is necessary hence | |
# the facebook-sdk api for php causes random crashes and my script needs to run for a loooong time. | |
# | |
# for a in a b c d e f g i j k l m n o p; do while (true); do START=`date +%s`; sh facebook-login.sh "<your app url>"; expr `date +%s` \< \( $START + 20 \) > /dev/null && break; done; sleep 30; done |