This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""""""""""""""""""""""""""""" | |
" vimrc-202005 | |
" (require: vim-plug, fzf) | |
" see: https://gist.github.com/shinshin86/17fe2e40529f6244f17d32ed2e0aeec3 | |
" | |
" Install(Using curl): | |
" curl --output ~/.vimrc {this gist raw url} | |
"""""""""""""""""""""""""""""" | |
call plug#begin('~/.vim/plugged') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""""""""""""""""""""""""""""" | |
" プラグインセットアップ | |
" (Qiitaの記事内で記述した.vimrc) | |
" | |
" URL: | |
" https://qiita.com/shinshin86/items/eb41e4fb513bb4d3e3cd | |
" | |
" インストール(curl使用): | |
" curl --output ~/.vimrc https://gist.githubusercontent.com/shinshin86/b1437d59c9228852354da0c5a8fdac64/raw/5e735502dd7b986be699c5ca29dbc8119b179420/qiita-2018-12-14.vimrc | |
"""""""""""""""""""""""""""""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Sample code of Node.js | |
* Make mp3 file hash(MD5) | |
* (Of Course when not file type of mp3 also ok!) | |
*/ | |
const crypto = require('crypto'); | |
const md5hex = async filepath => { | |
const md5hash = crypto.createHash('md5'); | |
md5hash.update(filepath, 'binary'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# if not pulled docker container | |
# docker pull clojure | |
docker run -it --rm --name repl-clujure clojure /bin/bash | |
# start repl at docker container | |
lein repl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################## | |
# This environment is already install "git" and "vim" | |
######################################################## | |
# clean & update | |
apt-get autoclean | |
apt-get update | |
# Install curl | |
apt-get install -y curl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do shell script "open -a Google\\ Chrome {URL}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
wordpress: | |
image: wordpress | |
restart: always | |
container_name: 'app-conatiner-name' | |
ports: | |
- 8080:80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# reference : https://gist.github.com/twinbird/9cb8979e163e89ae6a88fd650291fd12 | |
if [ $# != 1 ]; then | |
echo "Usage: $0 [binary name]" | |
exit 0 | |
fi | |
fpath=$1 | |
fname_ext="${fpath##*/}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// stdin sample at Node.js | |
var lines = [] | |
var rl = require('readline').createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}) | |
rl.on('line', ((line) => { | |
lines.push(line) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import Vuex from 'vuex' | |
Vue.use(Vuex) | |
const incrementPlugin = store => { | |
store.subscribe((mutation, state) => { | |
if(mutation.type === "showCount") { | |
state.count++ | |
} |