Skip to content

Instantly share code, notes, and snippets.

View edwhu's full-sized avatar
🔍

Edward Hu edwhu

🔍
View GitHub Profile
@edwhu
edwhu / project.md
Last active September 12, 2016 22:54
Virtual Cache Project Interview

#Cookbook Project Specifications:

We are looking for a frontend engineer, so we will be testing your front end skills with a simple project. This is your chance to showcase your front end skills. You will be creating a simple cookbook android application.

##Specifications: This android app just has to have a list of food and display some information about it. You can do whatever you want in terms of design or coding practices. We will be judging it based on overall user experience and appearance.

Some Ideas (you do not have to follow these. In fact, surprise me!):

@edwhu
edwhu / lecture12.md
Last active May 6, 2017 21:07
Lecture 12

Lecture 12 Software Process Models:

looking at software processes, key ideas: difference between process and lifecycle life cycle is inherent, requirements, processes is how we structure it. one way in waterfall, different way in agile 5 different processes: prototyping, serial, v model, rational unified process, agile development

Lifecycle vs Process

  • Lifecycle refers to the different types of activities carried out in software engineering (e.g., requirements and design). Process is the ordering or way you do those activities (e.g., agile vs. waterfall)

Typical Software Lifecycle Model

  1. problem
    • requirements engineering
  2. reqs specification
import pyocr
import pyocr.builders
from PIL import Image
tools = pyocr.get_available_tools()[0]
text = tools.image_to_string(Image.open(image),
builder=pyocr.builders.DigitBuilder())
@edwhu
edwhu / test_mj.py
Last active March 7, 2024 12:55
Grokking Mujoco GPU rendering
import mujoco_py
from mujoco_py import MjSim, load_model_from_xml, MjRenderContext
from time import time
import argparse
BASIC_MODEL_XML = """
<mujoco>
<asset>
@edwhu
edwhu / compare_tdmpc2_curves.py
Created June 4, 2024 02:52
Compare tensorboard plots from tdmpc2-jax and the original csv from tdmpc2
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
runs = [
"/Users/edward/Downloads/run-humanoid-stand_s0_2024-05-31_22-01-27_tensorboard-tag-episode_return.csv",
"/Users/edward/Downloads/run-humanoid-stand_s1_2024-06-01_13-11-59_tensorboard-tag-episode_return.csv",
"/Users/edward/Downloads/run-humanoid-stand_s2_2024-06-02_04-22-15_tensorboard-tag-episode_return.csv",
"/Users/edward/Downloads/run-humanoid-stand_s3_2024-06-02_19-37-02_tensorboard-tag-episode_return.csv",
]