Skip to content

Instantly share code, notes, and snippets.

@nobonobo
nobonobo / gopher.dae
Created March 22, 2018 09:04
dae sample
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<asset>
<contributor>
<author>Blender User</author>
<authoring_tool>Blender 2.79.0 commit date:2017-09-11, commit time:10:43, hash:5bd8ac9</authoring_tool>
</contributor>
<created>2018-02-23T15:51:03</created>
<modified>2018-02-23T15:51:03</modified>
<unit name="meter" meter="1"/>
@nobonobo
nobonobo / gopher.dae
Created March 22, 2018 09:04
dae sample
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<asset>
<contributor>
<author>Blender User</author>
<authoring_tool>Blender 2.79.0 commit date:2017-09-11, commit time:10:43, hash:5bd8ac9</authoring_tool>
</contributor>
<created>2018-02-23T15:51:03</created>
<modified>2018-02-23T15:51:03</modified>
<unit name="meter" meter="1"/>
@nobonobo
nobonobo / sample.sh
Last active February 2, 2018 10:53
macOSからJoyconのニンテンドーラボのリモコンカーのようなものコントロールをする
# gitコマンドとGo言語をインストールしておき以下のコマンドでインストール
go get github.com/nobonobo/joycon/cmd/remocon-car
# BluetoothでmacOSにJoycon(L)とJoycon(R)をペアリングしておき以下のコマンドを実行
$(go env GOPATH)/bin/remocon-car
@nobonobo
nobonobo / install_gitprompt.sh
Created January 11, 2018 03:41
git-prompt setup for macOS
#!/bin/sh
brew install bash-git-prompt
cat <<EOL >> .bash_profile
if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then
__GIT_PROMPT_DIR=$(brew --prefix)/opt/bash-git-prompt/share
GIT_PROMPT_THEME=Single_line_Minimalist
GIT_PROMPT_FETCH_REMOTE_STATUS=0
source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh"
fi
if [ -r ~/.bashrc ]; then
@nobonobo
nobonobo / draw.io.sh
Created December 14, 2017 09:41
draw.ioをローカルに立てる
docker run -it --rm --name="draw" -p 8080:8080 -p 8443:8443 fjudith/draw.io
@nobonobo
nobonobo / ng.sh
Created November 14, 2017 06:16
neugramをlinux以外で使う方法
#!/bin/sh
TAG=localhost/ng
if [ "$(docker images -q localhost/ng)" = "" ]
then
docker build --rm -t ${TAG} - <<EOL
FROM alpine:edge
RUN apk add -U --no-cache go git musl-dev
RUN go get -u neugram.io/ng
ENV PATH="/root/go/bin:$PATH"
EOL
@nobonobo
nobonobo / orderedmap.go
Last active September 6, 2017 10:00
オーダーを保持するmap的コンテナ実装(go-generate向け)
/*
orderedmap package
Copyright (c) 2017 Noboru Irieda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
package orderedmap
@nobonobo
nobonobo / screenshot.sh
Created April 25, 2017 09:31
dockerとヘッドレスchromeとgodetを使ったスクリーンショットの撮影
go get -u go get -u github.com/raff/godet/cmd/...
docker run -d -p 9222:9222 justinribeiro/chrome-headless
godet -cmd="" -verbose -control -screenshot https://google.com
@nobonobo
nobonobo / distutils-install-failed.md
Last active April 14, 2017 06:52
homebrew環境でpythonのパッケージインストールに失敗する対策

以下のようなエラーメッセージが出るような場合、

...
DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both

以下のファイルを作成しておくことで回避できる。

~/.pydistutils.cfg