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 clone https://github.com/grpc/grpc.git |
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
| x = gets.chomp.split(' ') | |
| s = [] | |
| x.each do |n| | |
| case n | |
| when '+' | |
| one = s.pop | |
| two = s.pop | |
| s.push(one+two) | |
| when '-' | |
| one = s.pop |
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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "time" | |
| "github.com/marcusolsson/tui-go" | |
| ) |
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
| func getSERPsURLs(baseURL *url.URL, depth int) (pages []*url.URL, err error) { | |
| doc, err := getDoc(baseURL) | |
| i := 0 | |
| doc.Find("#nav").Each(func(_ int, table *goquery.Selection) { | |
| table.Find("tbody").Each(func(_ int, trs *goquery.Selection) { | |
| trs.Find("tr").Each(func(_ int, tds *goquery.Selection) { | |
| tds.Find("td").Each(func(_ int, srg *goquery.Selection) { | |
| srg.Find("a").Each(func(_ int, s *goquery.Selection) { | |
| if i >= depth-1 { | |
| return |
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
| "NeoBundle Scripts----------------------------- | |
| if &compatible | |
| set nocompatible " Be iMproved | |
| endif | |
| " Required: | |
| set runtimepath+=/Users/NakaoRyo/.vim/bundle/neobundle.vim/ | |
| " Required: | |
| call neobundle#begin(expand('/Users/NakaoRyo/.vim/bundle')) |
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
| let g:go_highlight_functions = 1 | |
| let g:go_highlight_methods = 1 | |
| let g:go_highlight_structs = 1 | |
| let g:go_highlight_extra_types = 1 | |
| let g:go_highlight_operators = 1 | |
| let g:go_highlight_function_calls = 1 | |
| let g:go_highlight_types = 1 | |
| let g:go_highlight_fields = 1 | |
| let g:neomake_go_errcheck_maker = { | |
| \ 'append_file': 0, |
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
| directory | layer | |
|---|---|---|
| external | frameworks & drivers | |
| adapter | interface adapters | |
| usecase | app business rules | |
| domain | enterprise business rules |
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/bash | |
| set -eu | |
| git checkout master | |
| git fetch upstream | |
| git merge upstream/master | |
| git push |
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
| static_resources: | |
| clusters: | |
| - name: zipkin | |
| connect_timeout: 1s | |
| type: static | |
| lb_policy: round_robin | |
| hosts: | |
| - socket_address: | |
| address: 10.5.0.2 | |
| port_value: 9411 |
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 int(os.environ['SERVICE_NAME']) == 1 : | |
| for header in TRACE_HEADERS_TO_PROPAGATE: | |
| if header in request.headers: | |
| # Comment out here | |
| # headers[header] = request.headers[header] | |
| ret = requests.get("http://localhost:9000/trace/2", headers=headers) |
OlderNewer