This file contains 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
resource "aws_vpc" "vpc" { | |
cidr_block = "10.0.0.0/16" | |
instance_tenancy = "default" | |
} | |
resource "aws_subnet" "public_subnet" { | |
vpc_id = "${aws_vpc.vpc.id}" | |
cidr_block = "10.0.16.0/20" | |
availability_zone = "ap-northeast-1a" | |
} |
This file contains 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
{ | |
"parser": "vue-eslint-parser", // パーサにvue-eslint-parserを指定しSFCをリント可能に | |
"parserOptions": { | |
"parser": "typescript-eslint-parser" // オプションでTypeScriptをパースできるパーサを指定 | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"typescript" // eslint-config-typescriptのルールを追加 | |
], | |
"plugins": ["typescript"], // eslint-plugin-typescriptを指定 |
This file contains 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
$ go run main.go | |
root command | |
$ go run main.go --help | |
command line calculator | |
Usage: | |
culc [flags] | |
Flags: |
This file contains 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
new RaisedButton.icon( | |
icon: new Icon(FontAwesomeIcons.google), | |
label: new Text('Sigin In Google'), | |
) |
This file contains 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) |
This file contains 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
<div id="app"> | |
<h1>Vue Markdown Editor</h1> | |
<div class="editor-main"> | |
<div class="main"> | |
<textarea class="editor" v-model="source"></textarea> | |
<div class="preview"> | |
<vue-markdown :source="source"></vue-markdown> | |
</div> | |
</div> | |
</div> |
This file contains 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
var Vue = require('vue/dist/vue.js') | |
var myComponent = require('./components/my_components.vue') | |
var vm = new Vue({ | |
el: ".app", | |
components: { | |
'my-component': myComponent | |
} | |
}) |
This file contains 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
<template> | |
<div> | |
<input type="text" v-model="input" @keyup.enter="addTodo"/> | |
</div> | |
</template> | |
<script> | |
import store from '../store/'; | |
export default { |
This file contains 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
<div class="text-area"> | |
<div class="tag-list"> | |
<span class="tag" v-for="tag in tags"> | |
{{tag.name}} | |
<span class="delete" v-on:click="delete(this)">x</span> | |
</span> | |
</div> | |
<div class="input-area" contenteditable=true v-on:keydown.enter="decide_tag"> | |
</div> |
This file contains 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
<h1>Component Test</h1> | |
<div class="main"> | |
{{title}} | |
<my-component-one data="{{$data}}"></my-component-one> | |
<my-component-two data="{{$data}}"></my-component-two> | |
<button v-on="click:output"> | |
check | |
</button> | |
</div> | |
<div class="output"> |
NewerOlder