Skip to content

Instantly share code, notes, and snippets.

View juneoh's full-sized avatar

June Oh juneoh

  • Seoul, Korea
View GitHub Profile
@juneoh
juneoh / background.js
Created February 22, 2022 01:57
A crude but working web extension for trot.to, both for macOS and iOS
console.log("Loaded background.js");
const providerURL = "https://trot.to/";
const pattern = /https*:\/\/go\/(.*)/;
const mobileErrorPage = "data:text/html,";
const isMobile = navigator.standalone === false;
let path = "";
let tabId = 0;
@juneoh
juneoh / sample.py
Created October 27, 2018 01:29
PyTorch AlexNet for grayscale images
import torch.nn as nn
from torchvision.models import alexnet
model = alexnet(pretrained=True, num_classes=10)
model.features[0] = nn.Conv2d(1, 64, kernel_size=(11, 11), stride=(4, 4), padding=(2, 2))
@juneoh
juneoh / VcXsrv.lnk
Last active April 1, 2017 18:57
WSL + VcXsrv
"C:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -clipboard -wgl -multiwindow
@juneoh
juneoh / config
Created March 31, 2017 05:05
~/.ssh/config example
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/june
Host sixth
HostName 192.168.0.36
User june
Host ampere
@juneoh
juneoh / .vimrc
Last active March 15, 2017 05:44
.vimrc using Airline, specialized for git projects on web, Python, and Markdown
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required