Skip to content

Instantly share code, notes, and snippets.

View simultechnology's full-sized avatar

Takatsugu Ishikawa simultechnology

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# filter docker containers and show the ids
docker container ls -f "ancestor=ydkdev/ydk-py" -aq
# remove the docker containers
docker rm $(docker container ls -f "ancestor=ydkdev/ydk-py" -aq)
@simultechnology
simultechnology / detect_return_key_pressed.js
Last active January 10, 2019 06:29
リターンキーを押した際に動作させる
document.addEventListener('keypress', function (e) {
const tagName = document.activeElement.tagName.toLowerCase()
if (e.keyCode === 13 && tagName !== 'a' && tagName !== 'button') {
console.log('a,buttonタグにfocusは当たっていません。')
}
})
@simultechnology
simultechnology / my_docker_memo.md
Last active June 10, 2017 22:30
my docker memo
docker rm $(docker ps -a  | grep web |  cut -d ' ' -f1)
@simultechnology
simultechnology / docker_cheat.md
Created August 13, 2016 10:57 — forked from tcnksm/docker_cheat.md
Docker 虎の巻

Docker 虎の巻

何故Dockerを使うべきか

Why Should I Care (For Developers)

"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."

@simultechnology
simultechnology / readjson.go
Created January 12, 2016 09:59
read json file in Go
package main
import (
"fmt"
"log"
_ "io/ioutil"
"os"
"encoding/json"
"io"
)
sudo installer -pkg DockerToolbox-1.8.1c.pkg -target /
@simultechnology
simultechnology / gist:22f7e73dc5f619de420c
Created January 8, 2015 02:40
~を含まないという正規表現
# 品川または中央を含まない行
^(?!.*(品川|中央)).*\n
@simultechnology
simultechnology / replace.sh
Created January 5, 2015 02:41
あるディレクトリ内のファイル内に含まれている文字を全て置換する
# カレントディレクトリ以下の2014を2015へ置換する
find . -type f | xargs sed -i 's/2014/2015/g'
@simultechnology
simultechnology / setup_frontend_dev_environment.md
Last active August 29, 2015 14:06
setup_frontend_dev_environment

Setup Frontend Dev Environment Guide

create a project

$ mkdir deployment
$ cd deployment
$ npm init

add Grunt module