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
// | |
// 自分用の手慣らしの型 | |
// 1.HttpClientでリクエストを出す(リクエストもそれぞれを非同期実行) | |
// 2.(1)の結果から <title> タグの中身を抽出 | |
// 3.(2)の結果を出力 | |
// | |
// エラー処理は面倒なので割愛している | |
// | |
// httpリクエストを非同期実行しているので | |
// 結果は毎回異なる可能性がある。 |
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
# --------------------------------------------------- | |
# Set encodings | |
# --------------------------------------------------- | |
[System.Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("utf-8") | |
[System.Console]::InputEncoding = [System.Text.Encoding]::GetEncoding("utf-8") | |
$env:LESSCHARSET = "utf-8" | |
# --------------------------------------------------- | |
# Import plugins | |
# - Enabling it slows down the startup time, so I've disabled it for now. |
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
$ scoop bucket add extras | |
$ scoop bucket add java | |
$ scoop bucket add iyokan-jp https://github.com/tetradice/scoop-iyokan-jp | |
$ scoop bucket add jfut https://github.com/jfut/scoop-jfut.git | |
$ scoop install 7zip | |
$ scoop install everything | |
$ scoop install git | |
$ scoop install go | |
$ scoop install googlechrome |
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
package main | |
import "fmt" | |
// https://go.dev/doc/tutorial/generics | |
func main() { | |
var ( | |
ints = []int64{1, 2, 3, 4, 5} | |
floats = []float64{1.1, 1.2, 1.3, 1.4, 1.5} | |
) |
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
# syntax=docker/dockerfile:1-labs | |
FROM golang:rc-bullseye | |
#--------------------------------------------- | |
# BUILD ARGUMENTS | |
#--------------------------------------------- | |
ARG UID=1000 | |
ARG GID=1000 | |
ARG USERNAME=dev | |
ARG USERPASSWD=dev |
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
package main | |
import ( | |
"context" | |
"log" | |
"math/rand" | |
"time" | |
) | |
// --------------------------------------- |
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
" Height | |
set lines=40 | |
" Width | |
set columns=150 | |
" Background | |
set background=dark | |
" Font | |
" - https://github.com/yuru7/HackGen | |
set guifont=HackGenNerd:h14 | |
" No menu and toolbar |
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
usage: | |
@echo '-----------------------------------------------------------------------------' | |
@echo '以下のどれかのタスクを指定します.' | |
@echo ' - install-requirements -- Protocol Buffers を実行するのに必要なものをインストールします.' | |
@echo ' - protoc は プロジェクトディレクトリ直下の bin にインストールされます.' | |
@echo ' - protoc-gen-go は $(go env GOPATH)/bin にインストールされます.' | |
@echo ' - protoc-gen-doc は $(go env GOPATH)/bin にインストールされます.' | |
@echo ' - protoc -- protocを実行します.' | |
@echo ' - protoファイルは protoディレクトリ の下に存在しているとします.' | |
@echo ' - 生成されたgoファイルは internal ディレクトリの下に配置されます.' |
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
usage: | |
@echo '-----------------------------------------------------------------------------' | |
@echo '以下のどれかのタスクを指定します.' | |
@echo ' - install-requirements -- grpcを実行するのに必要なものをインストールします.' | |
@echo ' - protoc は プロジェクトディレクトリ直下の bin にインストールされます.' | |
@echo ' - protoc-gen-go は $(go env GOPATH)/bin にインストールされます.' | |
@echo ' - protoc-gen-doc は $(go env GOPATH)/bin にインストールされます.' | |
@echo ' - protoc -- protocを実行します.' | |
@echo ' - protoファイルは protoディレクトリ の下に存在しているとします.' | |
@echo ' - 生成されたgoファイルは internal ディレクトリの下に配置されます.' |
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
using System; | |
using System.Linq; | |
using System.Net; | |
namespace EndianChecker | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |