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 <iostream> | |
| #include <format> | |
| #include <concepts> | |
| #include <span> | |
| #include <valarray> | |
| #include <stdfloat> | |
| #include <chrono> | |
| #include <memory> | |
| #include <new> | |
| #include <random> |
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 <chrono> | |
| #include <valarray> | |
| #include <format> | |
| #include <iostream> | |
| #include <memory> | |
| #include <random> | |
| #include <ranges> | |
| #include <immintrin.h> | |
| #include <omp.h> |
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 <iostream> | |
| #include <cstdint> | |
| // https://clang.llvm.org/extra/clang-tidy/checks/readability/identidifer-naming.html | |
| /* .clang-tidy | |
| * | |
| * Checks: 'readability-identifier-naming' | |
| * CheckOptions: | |
| * - key: readability-identifier-naming.ClassCase |
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
| import ij.*; | |
| import ij.gui.*; | |
| import ij.measure.*; | |
| import ij.plugin.*; | |
| import ij.plugin.filter.*; | |
| import ij.process.*; | |
| import java.awt.*; | |
| import java.util.Arrays; | |
| public class Custom_Min_Max implements PlugIn { |
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 | |
| mkdir -p /tmp/i2p | |
| /bin/rm -rf /tmp/i2p/* | |
| find . -type d | xargs -I{} mkdir -p /tmp/i2p/{} | |
| find . -type f -name "*.png" | xargs -I{} convert {} -background white -alpha remove -alpha off /tmp/i2p/{} | |
| find /tmp/i2p -type f | sed -e 's/.*/\"&\"/g' | sort | xargs img2pdf --output ./out.pdf --auto-orient | |
| /bin/rm -rf /tmp/i2p/* |
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
| // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' | |
| // Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) | |
| // Unlit alpha-blended shader. | |
| // - no lighting | |
| // - no lightmap support | |
| // - no per-material color | |
| Shader "Custom/Unlit_Alpha_Trans_hide" { |
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
| # pip install requests | |
| import requests | |
| import urllib.parse | |
| if __name__ == "__main__": | |
| with open("list.txt") as f: | |
| lines=f.readlines() | |
| for i in range(len(lines)): | |
| pr=urllib.parse.urlparse(lines[i]) | |
| qs=urllib.parse.parse_qs(pr.query) |
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 | |
| # ディレクトリ構造 | |
| # |-Steam2VRC.sh | |
| # |-VRChat_steam //src | |
| # |-VRChat_camera //dst | |
| for pic in `ls VRChat_steam/ | grep -v vr | grep jpg`;do | |
| new_pic=`echo $pic | awk '{print("VRChat_camera/VRChat_1920x1080_"substr($0,1,4)"-"substr($0,5,2)"-"substr($0,7,2)"_"substr($0,9,2)"-"substr($0,11,2)"-"substr($0,13,2)".000.jpg")}'` | |
| if [ -e $new_pic ];then | |
| echo "skip $new_pic" | |
| else |
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
| void evalute_formation() { | |
| std::cout << "\033[13;0H\e[J" << std::endl; | |
| const auto visible_robots = | |
| static_cast<bool>(team_color_) ? world_.robots_yellow() : world_.robots_blue(); | |
| if (mode == test::formation) { | |
| if (!formation_) reset_formation(); | |
| auto agents = formation_->execute(); | |
| for (auto agent : agents) { | |
| std::string agent_name = typeid(*agent).name(); | |
| auto actions = agent->execute(); |
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 | |
| # Usage: $ voice.sh dir | |
| dir=$1 | |
| cd $1 | |
| mkdir etc game_command stage_name | |
| array=("stage_name/normal_first_half" "stage_name/normal_half_time" "stage_name/normal_second_half" "stage_name/extra_first_half" "stage_name/extra_half_time" "stage_name/extra_second_half" "stage_name/penalty_shootout" "stage_name/post_game" "game_command/halt" "game_command/stop" "game_command/normal_start" "game_command/force_start" "game_command/prepare_kickoff_yellow" "game_command/prepare_kickoff_blue" "game_command/prepare_penalty_yellow" "game_command/prepare_penalty_blue" "game_command/direct_free_yellow" "game_command/direct_free_blue" "game_command/indirect_free_yellow" "game_command/indirect_free_blue" "game_command/timeout_yellow" "game_command/timeout_blue" "game_command/goal_yellow" "game_command/goal_blue" "game_command/ball_placement_yellow" "game_command/ball_placement_blue" "etc/red_card_yellow" "etc/red_card_blue" "etc/yellow_card_yellow" "etc/yellow_card_blue" "etc/yellow_card_timeup_yellow" "etc/yellow_car |