Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gym | |
env = gym.make('CartPole-v0') | |
observation = env.reset() | |
for _ in range(1000): | |
env.render() | |
action = env.action_space.sample() | |
observation, reward, done, info = env.step(action) | |
if done: | |
# break | |
env.reset() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PYTHONHOME = "/path/to/user_home/.pyenv/versions/3.6.x:/path/to/user_home/.pyenv/versions/3.6.x" | |
const wPYTHONHOME = Base.cconvert(Cwstring, "/path/to/user_home/.pyenv/versions/3.6.x:/path/to/user_home/.pyenv/versions/3.6.x") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for cw in Zundoko() | |
print(cw) | |
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> record_bytes = open("cifar-10-batches-bin/test_batch.bin", "r") do f | |
return read(f, UInt8, 3073) | |
end; | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> Pkg.build("Homebrew") | |
INFO: Building Homebrew | |
: 《中略》 | |
Error: git: /path/to/userhome/.julia/v0.6/Homebrew/deps/usr/Library/Taps/homebrew/homebrew-core/Formula/git.rb:190: syntax error, unexpected $undefined, expecting keyword_end | |
\thelper = osxkeychain | |
^ | |
==============================[ ERROR: Homebrew ]=============================== | |
LoadError: ArgumentError: `brew info` failed for String["git"]! | |
while loading /path/to/userhome/.julia/v0.6/Homebrew/deps/build.jl, in expression starting on line 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> for cw in zundokochannel() | |
print(cw) | |
end | |
ドコズンズンズンドコドコドコドコズンドコドコドコズンズンズンズンズンドコキ・ヨ・シ! | |