Skip to content

Instantly share code, notes, and snippets.

{
"id": 1,
"title": "Inception",
"description": "A thief who enters the dreams of others to steal secrets from their subconscious.",
"genre": "Sci-Fi",
"rating": "PG-13",
"duration_minutes": 148,
"release_date": "2010-07-16",
"poster_url": "https://i.ebayimg.com/00/s/MTYwMFgxMDk3/z/LlUAAOSwm8VUwoRL/$_57.JPG?set_id=880000500F",
"trailer_url": "https://www.youtube.com/embed/YoHD9XEInc0?si=zuo_jxKgMoyfmpYE",
#!/bin/env python
import argparse
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
import torch
import nni
import pytorch_lightning as pl
@zakiindra
zakiindra / tmux-cheatsheet.markdown
Created December 31, 2023 00:05 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

SSRLCV Compile and Run in CUDA Cluster

  1. Connect to any cluster with GPU.

  2. Clone SSRLCV and SSRLCV-Sample-Data repo.

    git clone https://github.com/uga-ssrl/SSRLCV.git
    git clone https://github.com/uga-ssrl/SSRLCV-Sample-Data.git
@zakiindra
zakiindra / anime-recommendation-system.ipynb
Created May 8, 2022 01:33
Anime Recommendation System
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zakiindra
zakiindra / perceptron.py
Last active April 25, 2022 22:58
Perceptron from Scratch with PyTorch
import numpy as np
import torch
# 9 data points: one x1 x2 y
xy = np.matrix ([
[1.0, 0.0, 0.0, 0.5],
[1.0, 0.0, 0.5, 0.3],
[1.0, 0.0, 1.0, 0.2],
[1.0, 0.5, 0.0, 0.8],
[1.0, 0.5, 0.5, 0.5],
x = dict()
def update(x, id, location, time):
locs = x.get(id)
if (locs is None):
locs = dict()
locs[location] = [time]
x[id] = locs
else:
times = locs.get(location)