Use @octokit/core.js or @octokit/request.js framework modules for interacting with the GitHub API. Don't write your own code for this.
- take your
minified JSON
and turn it into a URL safe base64 string. The length of this string can be as big as this. - make a dummy url like
http://dummy.tld/<the base64 string>
and shorten it using any URL shortener. - save the unique path of the shortened url as your compressed data (henceforth called token). No need to store the domain of the shortened URL as the URL shortener would be hardcoded in your app.
- Reconstruct the shortened URL from the token. Try to fetch (GET) the shortened URL.
- Parse the response for the redirect url and extract the base64 string.
- Decode the base64.
Static sites are useful as personal website, portfolio, blogs, conference website, brouchureware etc.. Following are a few resources to get us started.
Following are a few resources to help understand Artifical Neural Nets / Deep Learning.
- Brilliant intro to ANN. Noteworthy: Universal Approximation Theorem
- Brilliant intro to Backpropagation
- Russel and Norvig's Artificial Intelligence, A Modern Approach, 4th Global Edition
- Lectures by Florian Marquardt: Machine learning for physicists
- CS231n.stanford.edu
- Layer and Batch normalization
- Batch vs Online learning
- Types of learning
- Jupyter Notebooks in VS Code
- Python Virtual Environments: A Primer
- The Python Tutorial
- Single and Double Underscores in Python Names. Throwaway variable _
- Iterators and Iterables in Python: Run Efficient Iterations
- The Walrus Operator: Python's Assignment Expressions
- How do I check if a variable exists? Assignment to
None
- Short circuit evaluation
- LEGB rule for Python Scope
- [A Python Quick Ref
Ref:
- https://learn.microsoft.com/en-us/windows/wsl/networking
- https://superuser.com/questions/1679757/how-to-access-windows-localhost-from-wsl2
- Obtain the IP address of your host machine (Windows) by running this command from your Linux distribution:
cat /etc/resolv.conf
###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.
Here are the commands might be usefull in this purpose:
anydesk --get-status
: To get current status of anydesk, which might beofflien,online
or nothing.anydesk --get-id
: To get the ID that your system can be accessed by.anydesk --service
: To start anydesk service if not already running (for Linux).anydesk --restart-service
: To restart anydesk serviceanydesk --stop-service
: To stop anydesk service
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
die() { echo "$*" >&2; exit 2; } # complain to STDERR and exit with error | |
needs_arg() { if [ -z "$OPTARG" ]; then die "No arg for --$OPT option"; fi; } | |
while getopts ab:c:-: OPT; do | |
# support long options: https://stackoverflow.com/a/28466267/519360 | |
if [ "$OPT" = "-" ]; then # long option: reformulate OPT and OPTARG | |
OPT="${OPTARG%%=*}" # extract long option name | |
OPTARG="${OPTARG#$OPT}" # extract long option argument (may be empty) | |
OPTARG="${OPTARG#=}" # if long option argument, remove assigning `=` | |
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
# Disable all of make's built-in rules (similar to Fortran's implicit none) | |
MAKEFLAGS += --no-builtin-rules --no-builtin-variables | |
# Fortran Compiler | |
FC := gfortran | |
# The following must have non-empty value if OpenMP is required | |
OMP := | |
# The following must have non-empty value if Debugging compiler options are required |
NewerOlder