Skip to content

Instantly share code, notes, and snippets.

View antimon2's full-sized avatar

GOTOH Shunsuke antimon2

View GitHub Profile
@antimon2
antimon2 / addUnicodePlots.jl10.ipynb
Created August 11, 2018 13:47
addUnicodePlots.jl.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@antimon2
antimon2 / CorrectedBehavior.jl.v07.ipynb
Last active August 2, 2018 01:23
Strange Behavior for try-while-errorcondition in Julia v0.7
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@antimon2
antimon2 / cartpole_sample.py
Last active January 31, 2020 05:27
WSL+ubuntu18.04+VcXsrv+OpenAI Gym 動くまでのメモ(修正) ref: https://qiita.com/antimon2/items/b1611dca09edcf93db03
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()
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")
@antimon2
antimon2 / file0.txt
Last active August 8, 2018 01:01
Julia 0.7-DEV の新しい Iteration に触れてみた。 ref: https://qiita.com/antimon2/items/8b1a96d1370bb6252757
for cw in Zundoko()
print(cw)
end
@antimon2
antimon2 / Cifar10PredictSample.jl.ipynb
Last active February 3, 2018 12:03
Cifar10TrainSample.jl.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@antimon2
antimon2 / file0.txt
Last active December 29, 2017 13:28
Julia で CIFAR-10 データを画像として表示してみる(外部パッケージ無しで) ref: https://qiita.com/antimon2/items/315c88299fce7a73c052
julia> record_bytes = open("cifar-10-batches-bin/test_batch.bin", "r") do f
return read(f, UInt8, 3073)
end;
@antimon2
antimon2 / CIFAR10Record_ShowAsPng.jl.ipynb
Last active December 25, 2017 15:55
CIFAR10Record_ShowAsPng.jl
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@antimon2
antimon2 / file0.txt
Created December 17, 2017 16:58
Homebrew.jl で git 周りのエラーに遭遇したときの対処法 ref: https://qiita.com/antimon2/items/b682d12db5166f4d49bd
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
julia> for cw in zundokochannel()
print(cw)
end
ドコズンズンズンドコドコドコドコズンドコドコドコズンズンズンズンズンドコキ・ヨ・シ!