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
| DEV_ROOT=/Users/ushio/dev/go | |
| GOPATH=/Users/ushio/dev/go | |
| AZDO_ORG_SERVICE_URL="https://dev.azure.com/<YOUR ORGANIZATION>" | |
| AZDO_PERSONAL_ACCESS_TOKEN="<YOUR_AZDO_PERSONAL_ACCESS_TOKEN>" | |
| AZDO_GITHUB_SERVICE_CONNECTION_PAT="<YOUR_GITHUB_SERVICE_CONNECTION>" | |
| AZDO_TEST_AAD_USER_EMAIL=<YOUR_E_MAILS> | |
| TF_ACC=1 |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Launch Acceptance test", | |
| "type": "go", | |
| "request": "launch", | |
| "mode": "test", | |
| "program": "${workspaceRoot}/azuredevops/resource_project_test.go", | |
| "args": [ |
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
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Launch Acceptance test", | |
| "type": "go", | |
| "request": "launch", |
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
| // +build tools | |
| package tools | |
| import ( | |
| _ "golang.org/x/tools/cmd/stringer" | |
| ) |
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 peco-src () { | |
| local selected_dir=$(ghq list -p | peco --query "$LBUFFER") | |
| if [ -n "$selected_dir" ]; then | |
| BUFFER="cd ${selected_dir}" | |
| zle accept-line | |
| fi | |
| zle clear-screen | |
| } | |
| zle -N peco-src | |
| bindkey '^]' peco-src |
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
| FROM microsoft/dotnet:2.2-sdk AS build | |
| WORKDIR /app | |
| COPY . . | |
| WORKDIR /app/src/Web | |
| RUN dotnet restore | |
| RUN dotnet publish -c Release -o out | |
| FROM microsoft/dotnet:2.2-aspnetcore-runtime AS runtime |
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
| public class TreeNode | |
| { | |
| public int val; | |
| public TreeNode left; | |
| public TreeNode right; | |
| public TreeNode(int x) { val = x; } | |
| } | |
| static void Main(string[] args) | |
| { |
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
| public class TreeNode | |
| { | |
| public int val; | |
| public TreeNode left; | |
| public TreeNode right; | |
| public TreeNode(int x) { val = x; } | |
| } | |
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
| public class Solution | |
| { | |
| private int VisitNode(Queue<Payload> q, | |
| Dictionary<string, Node> nodes, | |
| Dictionary<string, int> visited, | |
| Dictionary<string, int> otherVisited) | |
| { | |
| var payload = q.Dequeue(); | |
| foreach(var p in nodes[payload.Word].Relationship) |
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
| using System; | |
| using System.Collections.Generic; | |
| using Xunit; | |
| namespace WordLadder.Test | |
| { | |
| public class Solution | |
| { | |
| private int VisitNode(Queue<Payload> q, |