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
exec1().then(exec2).then(exec3); | |
function exec1(){ | |
var def = new $.Deferred(); | |
//ajaxの処理と仮定 | |
setTimeout(function(){ | |
$('div#content').append('<p>exec1</p>'); | |
def.resolve(); | |
},3000); |
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
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
<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
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
#D3.jsで円グラフを作図 | |
D3.jsで円グラフを作図する。 | |
グラフの中心にはパーセント表記の値が記述される。 |
NewerOlder