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 argparse | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import torch.optim as optim | |
from torch.optim.lr_scheduler import StepLR | |
from torchvision import datasets, transforms | |
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 time | |
import numpy as np | |
class Memoize: | |
def __init__(self, fn): | |
self.fn = fn | |
self.memo = {} |
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
# Generated by Powerlevel10k configuration wizard on 2020-09-27 at 01:18 IST. | |
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 47471. | |
# Wizard options: nerdfont-complete + powerline, small icons, unicode, lean, 12h time, | |
# 2 lines, dotted, left frame, light-ornaments, sparse, many icons, fluent, | |
# transient_prompt, instant_prompt=verbose. | |
# Type `p10k configure` to generate another config. | |
# | |
# Config for Powerlevel10k with lean prompt style. Type `p10k configure` to generate | |
# your own config based on it. | |
# |
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
rclone check -P --drive-server-side-across-configs \ | |
--log-file=/home/user/Documents/Random/rclone_logs/"$(date +"%Y_%m_%d_%I_%M_%p").log" \ | |
--log-level INFO \ | |
--exclude-if-present rcignore \ | |
--exclude-from "/mnt/nvme0n1p5/Studies/Semester 6/rcignore-list" \ | |
"/mnt/nvme0n1p5/Studies/Semester 6" "__quack:Studies/Semester 6/" |
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
zip -s- FILE_NAME.zip -O COMBINED_FILE.zip |
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
# Head over to https://sxcu.net/ | |
# Create a subdomain | |
# Run script | |
# Replace returned sxcu.net base-url by the one you requested | |
# Profit | |
import os | |
import pprint | |
import requests |
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
<mxfile host="app.diagrams.net" modified="2020-10-16T04:53:57.971Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36" etag="0v1r6DdWemNUy2TWQ8kH" version="13.8.0" type="device"><diagram id="iGWFmQ01a8dNWYouVAQU" name="Page-1">7V1Zc5tIEP41qvI+WAWMuB5t+chuxVmX5a3s60iMJMocCqDYzq/fGW5o7GizgpaHTSUR6kECff31TF/AhMz9l9uI7rZ3ocO8iaY4LxNyNdE0TbdV/iIkr5nENGeZYBO5TiZSK8HC/cFyoZJL967D4saOSRh6ibtrCldhELBV0pDRKAqfm7utQ6951B3dMCBYrKgHpV9dJ9nmUtWwq4FPzN1s80NbmpEN+LTYOf8l8ZY64XNNRK4nZB6FYZJt+S9z5gnwClyyz928MVqeWMSC5JAP/EHMR/vPL/qD/feD42+CT+QyObet7Gu+U2+f/+L8bJPXAoLnrZuwxY6uxPtnruYJudwmvsffqXyTxrsM+LX7wvixLkO+q5sIfZsKfwvPMz/17yxK2EtNlJ/3LQt9lkSvfJd89LzAMCeRVpDouVKJaeX7bGvaKIU0p8Gm/O4KKb6Rg/UvgFN/jlsU7gNHIJLC9BMU167nzUMvjNLPEocya73i8jiJwidWGzFWFluuj4MraeE6UxSAaxess75Q1QCqi+njlEvmoe/HUwAx/51JE8cmXkEYsBa4uYh67ibgb1ccPcbllwI1l9v9RT7gu44jDtOpuEq1R2I40IR6mCa0vjSh98xvnVnOrIvflrYkhnEcVFVdb6Bq2HDeKJEehOAGgPXK3bgJFR9ccOKlG/dRuGJxHEaxOIXA4f9f7HYeZ2fihoEQnvN/1/P7uVC/ckZ+y0V3wlQutzR+opG |