Skip to content

Instantly share code, notes, and snippets.

View nabinno's full-sized avatar
🤞
Draw and draw and draw

nabinno

🤞
Draw and draw and draw
View GitHub Profile
@nabinno
nabinno / git-undo.sh
Created July 24, 2014 14:20
command line - git undo all commited changes / Stack Overflow http://stackoverflow.com/questions/14075581/git-undo-all-uncommitted-changes
# This will unstage all files you might have staged with git add:
git reset
# This will revert all local uncommitted changes (should be executed in repo root):
git checkout .
# You can also revert uncommitted changes only to particular file or directory:
git checkout [some_dir|file.txt]
# Yet another way to revert all uncommitted changes (longer to type, but works from any subdirectory):
@nabinno
nabinno / test.hs
Last active October 2, 2020 09:10
はじめてPreludeでHaskellを試してみる
{-
$ nix-env --install ghc
$ ghc --version
/nix/store/z4ajipns0l1s8b2lrgpy6nng4cys7h99-bash-4.4-p23/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
The Glorious Glasgow Haskell Compilation System, version 8.8.3
$ ghci
/nix/store/z4ajipns0l1s8b2lrgpy6nng4cys7h99-bash-4.4-p23/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/nix/store/z4ajipns0l1s8b2lrgpy6nng4cys7h99-bash-4.4-p23/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
@nabinno
nabinno / aws-lambda.uml
Created September 29, 2020 21:19
AWS Lambdaの裏側をなるだけ詳しく解説してみる - https://www.keisuke69.net/entry/2020/09/29/131203
@startuml
skinparam monochrome true
skinparam backgroundColor #EEEEEE
control ALB as LB
actor "Front\nEnd" as FE
actor "Counting\nService" as CS
actor "Worker\nManager" as WM
actor Worker as W
actor "Placement\nService" as PS
@nabinno
nabinno / 2_APIを介してバッチ処理で学習した予測結果を取得する.svg
Last active September 22, 2020 00:29
『仕事ではじめる機械学習』より
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nabinno
nabinno / plantuml.svg
Last active September 21, 2020 15:54
「Reactのコンポーネント周りの用語を整理する」をシークエンス図で整理する - https://blog.ojisan.io/react-component-words
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nabinno
nabinno / how_much_nerves_can_be_used_in_windows_10.md
Last active April 19, 2020 08:55
Windows 10でNerves利用がどこまで可能か
title url date
Windows 10でNerves利用がどこまで可能か
Jul 22, 2019

昨日のリベンジとしてUBSシリアルコンソールするためFTDIの変換モジュール注文した。FAQにのってるのでこれが正解かな...

On Windows, use the Serial option to connect to COM.
map p scrollToTop
map n scrollToBottom
map wf LinkHints.activateModeToCopyLinkUrl
map b nextTab
map y previousTab
map ; removeTab
map ww copyCurrentUrl
map J performFind
@nabinno
nabinno / aws-ec2-describe-instances.sh
Last active February 13, 2020 12:16
aws ec2 describe-instances
aws ec2 describe-instances \
--filters "Name=instance-state-name,Values=running" \
--query '
sort_by(
Reservations[*].Instances[*].{Name:Tags[?Key==`Name`].[Value][0][0],
ID:InstanceId,
IP:PrivateIpAddress,
Type:InstanceType}[0],
&Name
)' \

skinparam monochrome true
skinparam backgroundColor #EEEEEE

actor User as U

control CloudFront as F
actor EC2 as E

skinparam monochrome true
skinparam backgroundColor #EEEEEE

actor User as U

actor API as A