Skip to content

Instantly share code, notes, and snippets.

View JunhongXu's full-sized avatar
🎯
Focusing

Junhong Xu JunhongXu

🎯
Focusing
View GitHub Profile
@JunhongXu
JunhongXu / clean_pics.py
Created March 27, 2018 15:43
The simple script helps me clean up unused pictures when writing LATEX
# read .tex file and extract all filenames that have .png, .jpg, .jpeg, and .eps
# delete all other files in ./figures/*
import re
import os
import glob
SUFFIX = 'png|jpg|jpeg|eps|JPEG|JPG'
def extract_filenames(fname):
@JunhongXu
JunhongXu / pytorch_jetson_install.sh
Created October 5, 2017 20:19 — forked from dusty-nv/pytorch_jetson_install.sh
Install procedure for pyTorch on NVIDIA Jetson TX1/TX2
#!/bin/bash
#
# pyTorch install script for NVIDIA Jetson TX1/TX2,
# from a fresh flashing of JetPack 2.3.1 / JetPack 3.0 / JetPack 3.1
#
# for the full source, see jetson-reinforcement repo:
# https://github.com/dusty-nv/jetson-reinforcement/blob/master/CMakePreBuild.sh
#
# note: pyTorch documentation calls for use of Anaconda,
# however Anaconda isn't available for aarch64.
@JunhongXu
JunhongXu / download.py
Last active August 16, 2022 12:10
A Python script downloading all ICLR and NIPS papers from openreview.net
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
import requests
import os
def download_all_papers(base_url, save_dir, driver_path):
driver = webdriver.Chrome(driver_path)
Link to my github DDPG algorithm: https://github.com/JunhongXu/Reinforcement-Learning-Tensorflow