Skip to content

Instantly share code, notes, and snippets.

View baek-jinoo's full-sized avatar

Jin baek-jinoo

  • FL, USA
View GitHub Profile
@andrewschreiber
andrewschreiber / jupyter_gym_render.md
Last active December 29, 2021 12:02
How to stream OpenAI Gym environment rendering within a Jupyter Notebook

Open jupyter with

$ xvfb-run -s "-screen 0 1400x900x24" jupyter notebook

In Jupyter

import matplotlib.pyplot as plt
%matplotlib inline

After each step

def show_state(env, step=0):
@matl33t
matl33t / terminal_productivity.md
Created February 9, 2017 23:22
saving time on the command-line

Terminal Productivity Tricks

Line Editing Motions

  • [C-a] beginning of the line
  • [C-e] end of the line
  • [C-b] back one character
  • [C-f] forward one character
  • [A-b] back one word (Configure alt to +ESC in iterm profile)
  • [A-f] forward one word
@yvbeek
yvbeek / ImageMagick 6.9.7-8 Homebrew Formula.md
Last active February 2, 2019 15:16 — forked from afaur/ImageMagick 6.9.7-3 Homebrew Formula.md
Homebrew Formula for ImageMagick 6.9.7-8

Homebrew Formula patching old ImageMagick release 6.9.7-8

Install

brew install https://gist.github.com/Zyphrax/0c53e5ffa9d523ff4af37e2fab71c7e6/raw/bad11375742cadcbc3741df652e472bb0419c4dc/imagemagick.rb

Pin this version

To prevent upgrades you can pin this version.