| Version: | Build version go 1.1.1 |
|---|---|
| original: | http://golang.org/doc/code.html |
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
| #!/usr/bin/sh | |
| # symlinker.sh | |
| # shell script to create symbolic link of "dotfiles" in which same directory with this script to your home directory. also handles directory whose name starts with dot. | |
| # NOTICE: this script processes only files whose name begin with . (dot) | |
| # | |
| # polamjag <[email protected]> | |
| # license: public domain | |
| echo -e "creating symbolic link of dotfiles..." |
It is possible to compile Go programs for a different OS, even though go build says otherwise.
You'll need:
- a valid toolchain for the platform/os you're targetting
- Go Tip (works on 1.1 and 1.2rc1 but you might as well be on tip)
golang-crosscompilehelper script https://github.com/davecheney/golang-crosscompile- the patch provided
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
| " カーソル位置の復元(git commit のときだけは動かさない) | |
| augroup restore-cursor | |
| autocmd! | |
| autocmd BufReadPost * | |
| \ if line("'\"") > 1 && line("'\"") <= line("$") && &ft !=# 'gitcommit' | | |
| \ exe "normal! g`\"" | | |
| \ endif | |
| augroup END |
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
| # RSpec matcher for alias_method. | |
| # https://gist.github.com/1950961 | |
| # Usage: | |
| # | |
| # describe User do | |
| # it { should alias_from(:username).to(:email) } | |
| # end | |
| RSpec::Matchers.define :alias_from do |alias_method| |
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
| # -*- coding: utf-8 -*- | |
| Plugin.create :vanish do | |
| command(:vanish_message, | |
| name: "これきらい", | |
| condition: Plugin::Command[:CanReplyAll], | |
| visible: true, | |
| role: :timeline ) do |opt| | |
| opt.messages.each do |msg| | |
| Plugin.call(:destroyed, [msg]) |
この前のブログ記事見た人はごめん。
どこが間違ってるか分かります?
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
| // Amazon で使った金額の合計を出す奴 | |
| // | |
| // 使い方: | |
| // 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽) | |
| // 2. Amazon の注文履歴ページ ( https://www.amazon.co.jp/gp/css/order-history/ ) を開く | |
| // 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト | |
| // 4. エンターで実行 | |
| // (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う) | |
| // 5. しばらく待つと alert で合計金額を表示 | |
| // |
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
| function! s:_source(path) abort | |
| try | |
| execute ':source' a:path | |
| catch /^Vim\%((\a\+)\)\=:E121/ | |
| " NOTE: workaround for `E121: Undefined variable: s:save_cpo` | |
| execute ':source' a:path | |
| endtry | |
| endfunction |
#まず見るべき
以下のURLは、常に更新されているコンテンツです。
- ドキュメント日本語版
- 日本語版ドキュメントはVue.js日本語コミュニティによって常に更新されています。ミスがあれば、是非jp.vuejs.orgまでプルリクエストを頂けると助かります。
- 質問や議論は日本語コミュニティのSlackが活発です。
- はじめに読むものとしては、下記のコンテンツが良いでしょう。
- 概要