Skip to content

Instantly share code, notes, and snippets.

View hslyu's full-sized avatar

Hyeonsu Lyu hslyu

View GitHub Profile
@hslyu
hslyu / git usage.md
Last active May 11, 2020 08:06
Doodles for practicing git

To be updated

This document covers building a drone simulation envrionment which utilizes PX4. The simulation testbed consists of gazebo, PX4 firmware, and ROS melodic. It reffered to this installation guide and includes includes and integration of each software, and troubleshooting of errors in the building process. This document is tested on nvidia/cuda:10.0-devel-ubuntu18.04 docker image. You can download my image.

Prerequisite

  1. Your host OS should be Ubuntu 18.04. Otherwise, this intruction will malfunction.
  2. You should run your container with the environment variable LC_ALL. This locale setting is for the px4 firmware compiling.
docker run [your option] -e LC_ALL=en_US.UTF-8 hslyu/drone:cuda10.0-devel-ubuntu18.04
@hslyu
hslyu / cartpole.py
Created May 14, 2020 07:45
DQN cartpole study
#!/usr/local/bin/python
# Import packages
import gym
import math
import random
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from collections import namedtuple
import argparse
def get_parser():
parser = argparse.ArgumentParser(description="Extract bounding boxes using Detectron2",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument(
"--config-file",
default="/home/appuser/detectron2_repo/configs/COCO-Detection/faster_rcnn_R_101_FPN_3x.yaml",
metavar="FILE",
help="path to config file",
)
@hslyu
hslyu / PY-Drawing3D.ipynb
Created July 25, 2021 10:38 — forked from WetHat/PY-Drawing3D.ipynb
Matplotlib: 3D Arrows and 3D Annotations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// ==UserScript==
// @name Overleaf jump $
// @namespace http://tampermonkey.net/
// @version 0.1
// @match https://www.overleaf.com/project/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
@hslyu
hslyu / tmux.md
Last active October 16, 2022 06:37 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

TL;DR

# remap prefix to Control + a
set -g prefix C-a