Skip to content

Instantly share code, notes, and snippets.

View manoja328's full-sized avatar
🇳🇵
Namaste

Manoj Acharya manoja328

🇳🇵
Namaste
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Lean Proof: Linear Independence of Eigenvectors</title>
<style>
body {
font-family: Arial, sans-serif;
background: #fdfdfd;
@manoja328
manoja328 / reptile_p5.js
Created June 15, 2025 18:38
reptile anim .. can be run in p5js online
let t = 0;
function setup() {
createCanvas(400, 400); // Create a 400x400 pixel canvas
colorMode(HSB, 255); // Use Hue-Saturation-Brightness color mode for vivid color control
background(0); // Fill the background with black once at the start
noFill(); // We won't use fill for shapes (optional in this sketch)
}
function draw() {
@manoja328
manoja328 / nnanim.py
Created February 17, 2025 22:51
Nice little visual demo of classifier decision boundary learned during NN training
# generated by @yacineMTB using deepseek r1 and claude
import pygame
import torch
import torch.nn.functional as F
import numpy as np
pygame.init()
WIDTH = 1200
HEIGHT = 600
@manoja328
manoja328 / introtologprobs.ipynb
Created February 4, 2024 20:52 — forked from brockmanmatt/introtologprobs.ipynb
introToLogProbs.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@manoja328
manoja328 / gist:3ee999a707cee39a47d3925fd6bda595
Created November 30, 2023 00:39 — forked from levelsio/gist:5bc87fd1b1ffbf4a705047bebd9b4790
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
# 2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same!
Send me your ChatGPT text adventure game on X, I'd love to try it!
@manoja328
manoja328 / lenet_mnist_model.pth
Last active September 22, 2023 22:59
lenet_mnist_model
aa
@manoja328
manoja328 / .vimrc
Last active December 13, 2020 16:23
My .vimrc
" Comments in Vimscript start with a `"`.
" If you open this file in Vim, it'll be syntax highlighted for you.
" Vim is based on Vi. Setting `nocompatible` switches from the default
" Vi-compatibility mode and enables useful Vim functionality. This
" configuration option turns out not to be necessary for the file named
" '~/.vimrc', because Vim automatically enters nocompatible mode if that file
" is present. But we're including it here just in case this config file is
" loaded some other way (e.g. saved as `foo`, and then Vim started with
" `vim -u foo`).
from tkinter import *
from PIL import ImageTk,Image
import time
import os
targetImageWidth = 850
targetImageHeight = 400
inputImageWidth = 0
inputImageHeight = 0
@manoja328
manoja328 / check_ICLR_review.py
Last active November 5, 2019 11:16
Refresh your ICLR submission page every minute and send your an email if reviews come out.
from time import sleep
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
executable_path = '/usr/local/bin/chromedriver'
options = Options()
options.add_argument("--headless")
browser = webdriver.Chrome(options=options, executable_path=executable_path)
url = YOUR_PAPER_URL
sender_name = 'Shao-Hua Sun'
@manoja328
manoja328 / convert.py
Created May 3, 2019 16:00
convert pytorch model to matconvnet model
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
from scipy.io import loadmat,savemat
import torch
from torchvision import models