Skip to content

Instantly share code, notes, and snippets.

Avatar

Junichi Kajiwara kjunichi

View GitHub Profile
View 20210321.md

AWSをローカルで動かす

docker pull localstack/localstack
docker run --rm -p 4566:4566 -p 4571:4571 localstack/localstack
View gist:5d73d26941721a2d597fd74dedc07a81
# MySQLの照合順序は要注意
alter tableしてcharset指定した列はテーブルに指定した照合参照とは異なる照合順序を指定することがある
# VSCodeでDiffができる
Shift+Ctrl+P compare
View euroBeatCode01.rb
use_bpm 112
live_loop :beat1 do
sample :drum_heavy_kick
sleep 1
sample :drum_snare_hard
sleep 1
sample :drum_heavy_kick
sleep 1
sample :drum_snare_hard
View nightBGM01.rb
use_bpm 90
use_synth :piano
live_loop :beat1 do
sample :drum_cymbal_closed, amp: 0.1
sleep 0.5
end
live_loop :beat2 do
View gist:f003bc19e26985b678af0c7a25b62e4d
../cycmap.py:61: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).
fig = plt.figure()
@kjunichi
kjunichi / gist:4de759b441e2c37485903144439998d8
Last active Jul 22, 2020
cartopy入れようとしたらエラー
View gist:4de759b441e2c37485903144439998d8
pip install cartopy
Collecting cartopy
Downloading Cartopy-0.18.0.tar.gz (14.4 MB)
|████████████████████████████████| 14.4 MB 139 kB/s
ERROR: Command errored out with exit status 1:
command: /Users/junichi/.pyenv/versions/3.7.7/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4m/08rbc8l949n3rq9yr0h3rz980000gn/T/pip-install-ztc8rbc1/cartopy/setup.py'"'"'; __file__='"'"'/private/var/folders/4m/08rbc8l949n3rq9yr0h3rz980000gn/T/pip-install-ztc8rbc1/cartopy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/4m/08rbc8l949n3rq9yr0h3rz980000gn/T/pip-pip-egg-info-brizhjb4
cwd: /private/var/folders/4m/08rbc8l949n3rq9yr0h3rz980000gn/T/pip-install-ztc8rbc1/cartopy/
Complete output (3 lines):
/private/var/folders/4m/08rbc8l949n3rq9yr0h3rz980000gn/T/pip-install-ztc8rbc1/cartopy/setup.p
View gist:4e973f00d57b638e4aa66d672065d93c
In file included from main.cxx:1:
./clask/core.hpp:102:31: error: no member named 'codecvt_utf8_utf16' in namespace 'std'
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
~~~~~^
./clask/core.hpp:102:57: error: expected '(' for function-style cast or type construction
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
~~~~~~~^
./clask/core.hpp:102:69: warning: declaration does not declare anything [-Wmissing-declarations]
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
^
View 20200329.md

Specifying ExtAudioFileRef failed: -50

@kjunichi
kjunichi / gist:ffe996475a04d26ef97deaa12a92b8e7
Created Dec 1, 2019
No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file
View gist:ffe996475a04d26ef97deaa12a92b8e7
2019-12-01 15:52:32.170 node[76546:546583] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting