Skip to content

Instantly share code, notes, and snippets.

View rosikand's full-sized avatar

Rohan Sikand rosikand

View GitHub Profile
import multiprocessing
import time
import pdb
def process_data_slow(data):
time.sleep(1.5)
new_list = []
for elem in data:
new_list.append(elem ** 5)
@rosikand
rosikand / auto_backup.py
Last active August 3, 2022 00:31
Automated backups for working directory.
"""
File: auto_backup.py (prototype)
------------------
Simple python script that packages the current working directory
into a folder and stores a copy of it in "../backups" one level up.
Name is based on timestamp
To-do: make this a function with params(backup folder, new folder name, time zone)
and package it up on pip for easy use. Also make the date string human readable (e.g. july-27...)
"""
@rosikand
rosikand / ml-requirements.txt
Last active July 6, 2022 00:12
Common dependencies to install for machine learning computation.
matplotlib
torchvision
numpy
tqdm
opencv_python
torch
tensorflow
Pillow
notebook
jupyter
@rosikand
rosikand / octal_x86.txt
Created February 21, 2022 02:10 — forked from seanjensengrey/octal_x86.txt
x86 is an octal machine
# source:http://reocities.com/SiliconValley/heights/7052/opcode.txt
From: [email protected] (Mark Hopkins)
Newsgroups: alt.lang.asm
Subject: A Summary of the 80486 Opcodes and Instructions
(1) The 80x86 is an Octal Machine
This is a follow-up and revision of an article posted in alt.lang.asm on
7-5-92 concerning the 80x86 instruction encoding.
The only proper way to understand 80x86 coding is to realize that ALL 80x86
@rosikand
rosikand / ml-data.md
Last active January 3, 2022 19:47
List of machine learning datasets and competitions.
@rosikand
rosikand / pytorch-cnn.ipynb
Created July 3, 2021 18:44
A simple CNN in PyTorch (the one from the documentation)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.