Skip to content

Instantly share code, notes, and snippets.

@basicmag
basicmag / private_fork.md
Created April 20, 2022 07:57 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@basicmag
basicmag / 001_HelloWorld.go
Last active August 11, 2023 23:27
Go言語: Hello, World!
// Go言語 必読本 Essential Go
// https://www.amazon.co.jp/dp/B0CF53VMYB
//
// Go言語: Hello, World!
package main
import (
"fmt"
)
@basicmag
basicmag / 002_Booleans.go
Last active August 11, 2023 23:39
Go言語: ブーリアン
// Go言語 必読本 Essential Go
// https://www.amazon.co.jp/dp/B0CF53VMYB
//
// Go言語: ブーリアン
package main
import (
"fmt"
)
@basicmag
basicmag / 003_Booleans2.go
Created August 11, 2023 23:42
Go言語: ブーリアン
// Go言語 必読本 Essential Go
// https://www.amazon.co.jp/dp/B0CF53VMYB
//
// Go言語: ブーリアン
package main
import (
"fmt"
"unsafe"
@basicmag
basicmag / 003_Integers.go
Created August 12, 2023 00:12
Go言語: int から文字列への変換を strconv.Itoa で行う
// Go言語 必読本 Essential Go
// https://www.amazon.co.jp/dp/B0CF53VMYB
//
// Go言語: int から文字列への変換を strconv.Itoa で行う
package main
import (
"fmt"
"strconv"
@basicmag
basicmag / 004_Integers2.go
Created August 13, 2023 08:15
Go言語: fmt.Sprintfを使ってintを文字列に変換する
// Go言語 必読本 Essential Go
// https://www.amazon.co.jp/dp/B0CF53VMYB
//
// Go言語: fmt.Sprintfを使ってintを文字列に変換する
package main
import (
"fmt"
)
@basicmag
basicmag / 005_Integers3.go
Created August 13, 2023 08:18
Go言語: strconv.Atoiで文字列をintに変換する
// Go言語 必読本 Essential Go
// https://www.amazon.co.jp/dp/B0CF53VMYB
//
// Go言語: strconv.Atoiで文字列をintに変換する
package main
import (
"fmt"
"log"
@basicmag
basicmag / 006_Integers4.go
Created August 13, 2023 08:22
Go言語: fmt.Sscanfで文字列からintに変換する
// Go言語 必読本 Essential Go
// https://www.amazon.co.jp/dp/B0CF53VMYB
//
// Go言語: fmt.Sscanfで文字列からintに変換する
package main
import (
"fmt"
"log"
@basicmag
basicmag / 007_float1.go
Created August 13, 2023 10:08
Go言語: FormatFloatでfloatを文字列に変換する
// Go言語 必読本 Essential Go
// https://www.amazon.co.jp/dp/B0CF53VMYB
//
// Go言語: FormatFloatでfloatを文字列に変換する
package main
import (
"fmt"
"strconv"
@basicmag
basicmag / 008_float2.go
Created August 13, 2023 22:02
Go言語: Sprintfを使ってfloatを文字列に変換する
// Go言語 必読本 Essential Go
// https://www.amazon.co.jp/dp/B0CF53VMYB
//
// Go言語: Sprintfを使ってfloatを文字列に変換する
package main
import (
"fmt"
)