Skip to content

Instantly share code, notes, and snippets.

View mikinovation's full-sized avatar
🏠
Working from home

Mikihiro Saito mikinovation

🏠
Working from home
View GitHub Profile
@mikinovation
mikinovation / vue-composition-api-example.vue
Created January 19, 2020 00:56
vue-composition-api-example
<template>
<div>
<v-btn depressed large color="primary" @click="increment">Increment</v-btn>
<v-btn depressed large color="#E91E63" @click="decrement">Decrement</v-btn>
<v-btn depressed large color="#3F51B5" @click="reset">Reset</v-btn>
<h1>Count is: {{ counter.count }}, double is: {{ counter.double }}</h1>
<SpinnerMultiplication :count="counter.updatedCount" />
</div>
</template>
@mikinovation
mikinovation / file0.sh
Last active January 6, 2019 03:21
VagrantゲストOSとホストOSの同期処理系プラグインまとめ ref: https://qiita.com/MikihiroSaito/items/bc866976d4649e448b5b
vagrant gatling-rsync-auto
@mikinovation
mikinovation / file0.sh
Created January 5, 2019 15:31
next.jsでスタイルにsassを適用する ref: https://qiita.com/MikihiroSaito/items/1802d58382481f5f7695
yarn add @zeit/next-sass node-sass
@mikinovation
mikinovation / file0.sh
Last active January 5, 2019 13:03
VagrantでゲストOSのディレクトリをホストOSに同期するプラグイン「vagrant-rsync-back」を使ってみた ref: https://qiita.com/MikihiroSaito/items/fb18d1bd9cafc3e09651
cd vagrant/ubuntu
vagrant plugin install vagrant-rsync-back
@mikinovation
mikinovation / file0.sh
Created January 3, 2019 04:00
react+next.js+pm2+nginxを使ってアプリをデプロイ ref: https://qiita.com/MikihiroSaito/items/e68acc53a6e303206720
sudo apt-get install -y nodejs npm
@mikinovation
mikinovation / file0.sh
Created January 1, 2019 11:07
Headless CMSのstrapiをnginx+pm2を使ってデプロイ ref: https://qiita.com/MikihiroSaito/items/d0338757ac0c2fae18d5
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
@mikinovation
mikinovation / file0.txt
Created January 1, 2019 10:36
Javascriptでブラウザの「戻る」ボタンを無効にする ref: https://qiita.com/MikihiroSaito/items/91f02d6712ce78e9c21b
history.pushState(null, null, null);
$(window).on("popstate", function (event) {
if (!event.originalEvent.state) {
history.pushState(null, null, null);
return;
}
});
@mikinovation
mikinovation / file0.js
Created January 1, 2019 06:51
【初心者向け】Reactで各種フォームの値を取得をする ref: https://qiita.com/MikihiroSaito/items/1ac8fff1bbf589d75738
export default class Index extends React.Component {
constructor(props) {
super(props);
this.state = {
name: '',
email: '',
password: ''
};
this.handleChangeText = this.handleChangeText.bind(this);
export default class Index extends React.Component {
constructor(props) {
super(props);
this.state = {
animal: ''
};
this.handleChangeRadio = this.handleChangeRadio.bind(this);
this.onSubmit = this.onSubmit.bind(this);
}
export default class Index extends React.Component {
constructor(props) {
super(props);
this.state = {
fruit: new Array(4).fill(null)
};
this.handleChangecheckbox = this.handleChangecheckbox.bind(this);
this.onSubmit = this.onSubmit.bind(this);
}