Skip to content

Instantly share code, notes, and snippets.

Simon Ramstedt rmst

Block or report user

Report or block rmst

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rmst
rmst / gist:61a94c6a3d2704c3be593bbe67b1b1c2
Created Aug 15, 2018
Error running a Unity3D application with SDL_VIDEODRIVER=offscreen flag
View gist:61a94c6a3d2704c3be593bbe67b1b1c2
[simonr@kepler3 downtown_intersection-linux]$ export SDL_VIDEODRIVER=offscreen
[simonr@kepler3 downtown_intersection-linux]$ export SDL_HINT_CUDA_DEVICE=0
[simonr@kepler3 downtown_intersection-linux]$ ./downtown_intersection-linux.x86_64
Set current directory to /store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux
Found path: /store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux/downtown_intersection-linux.x86_64
Mono path[0] = '/store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux/downtown_intersection-linux_Data/Managed'
Mono config path = '/store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux/downtown_intersection-linux_Data/MonoBleedingEdge/etc'
Preloaded 'ScreenSelector.so'
Unable to preload the following plugins:
ScreenSelector.so
View .Xcompose
# Find proper key names here:
# https://www.x.org/releases/X11R7.7/doc/libX11/i18n/compose/el_GR.UTF-8.html
<Multi_key> <A> <l> : "A" U0391 # GREEK CAPITAL LETTER ALPHA
<Multi_key> <a> <l> : "α" U03B1 # GREEK SMALL LETTER ALPHA
<Multi_key> <B> <e> : "B" U0392 # GREEK CAPITAL LETTER BETA
<Multi_key> <b> <e> : "β" U03B2 # GREEK SMALL LETTER BETA
<Multi_key> <G> <a> : "Γ" U0393 # GREEK CAPITAL LETTER GAMMA
<Multi_key> <g> <a> : "γ" U03B3 # GREEK SMALL LETTER GAMMA
<Multi_key> <D> <e> : "Δ" U0394 # GREEK CAPITAL LETTER DELTA
@rmst
rmst / closures-vs-methods.py
Last active Apr 22, 2017
Python closures vs methods
View closures-vs-methods.py
from timeit import timeit
import inspect
def t():
for f in inspect.stack():
print(f.function)
t()
s = """
class Object:
View run_ddpg.md

Install https://github.com/SimonRamstedt/ddpg

Run e.g. python run.py --outdir ../ddpg-results/experiment1 --env InvertedDoublePendulum-v1

Note: The performance graphs on the gym website look weird because DDPG is alternating training and test phases.

For more information see repo.

You can’t perform that action at this time.