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 | |
| func main() { | |
| q2_3() | |
| } | |
| func q2_3() { | |
| http.HandleFunc("/", q2_3_handler) | |
| http.ListenAndServe(":8080", nil) | |
| } |
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
| # ref: https://ikep.hatenablog.com/entry/2018/11/09/005207 | |
| ## Unity ## | |
| *.cs diff=csharp text | |
| *.cginc text | |
| *.shader text | |
| *.mat merge=unityyamlmerge eol=lf | |
| *.anim merge=unityyamlmerge eol=lf | |
| *.unity merge=unityyamlmerge eol=lf | |
| *.physicsMaterial2D merge=unityyamlmerge eol=lf |
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
| ## User Settings | |
| .DS_Store | |
| ## Rider | |
| .idea | |
| ## for build | |
| # Roulette/Roulette_iOS*/** | |
| # !Roulette/Roulette_iOS*/.gitkeep |
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
| // ref: https://docs.rs/num_cpus/latest/num_cpus/fn.get.html | |
| fn main() { | |
| let logical_cpus = num_cpus::get(); | |
| let physical_cpus = num_cpus::get_physical(); | |
| println!("Logical CPUs: {}", logical_cpus); | |
| println!("Physical CPUs: {}", physical_cpus); | |
| /* | |
| if logical_cpus > physical_cpus { |
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
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "**.md" | |
| - ".gitignore" | |
| pull_request: |
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 __future__ import annotations | |
| import logging | |
| import os | |
| from typing import Final | |
| LOGGER_NAME: Final[str] = "app.logging_config" |
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
| #include <stdio.h> | |
| #include <pthread.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| struct net_device { | |
| unsigned int index; | |
| char name[16]; | |
| }; |
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
| #include <limits.h> | |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #ifndef DEVICE_NAME_LENGTH | |
| #define DEVICE_NAME_LENGTH 32 | |
| #endif |
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
| #define _POSIX_C_SOURCE 200809L | |
| #include <signal.h> | |
| #include <stdio.h> | |
| /* | |
| * sigset_basic.c | |
| * -------------- | |
| * 目的: sigset_t の操作だけを目で追えるようにするシンプルなデモ。 | |
| * シグナルハンドラや sigprocmask は使わず、集合操作の結果を表示する。 |
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
| #include <pthread.h> | |
| #include <signal.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| /* サンプルコードの目的: マルチスレッド環境でのシグナルの扱いを理解する | |
| * | |
| * ## シグナルを扱うための関数の説明 |