cmd.exe
: https://github.com/cnlohr/mini-rv32ima/tree/7185ec78442060e032bb33a71e6fe2f4319409e8
set "MINI_RV32IMA_HASH=7185ec78442060e032bb33a71e6fe2f4319409e8"
cd /d "%USERPROFILE%\Documents"
if not exist my-mini-rv32ima ( mkdir my-mini-rv32ima )
cd my-mini-rv32ima
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.IO; | |
using System.Runtime.InteropServices; | |
using UnityEditor; | |
using UnityEngine; | |
internal static class Test { | |
[MenuItem("Help/Test/SHOpenFolderAndSelectItems")] | |
private static void MenuItem_MyMenu_SHOpenFolderAndSelectItems() { | |
string path = "C:/Windows/system.ini"; |
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
// | |
// This Unity Editor script reports all TextureImporter settings as CSV file. | |
// | |
// Usage: | |
// - Invoke "UnityEditor > Help > TextureImporterReporter > Report all TextureImporter settings as CSV" | |
// - Script creates report CSV file and reports its file name. | |
// | |
// License | |
// ------- | |
// SPDX-FileCopyrightText: Copyright (c) Takayuki Matsuoka |
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
// Simple in-memory .ini file parser in C++20 | |
// | |
// - Header only library | |
// - No exception, heap allocation and callback | |
// - Depends only <stddef.h> | |
// - Opt-in compatibility with <string_view> (SIMPLE_INI_FILE_HPP_VIEW_TYPE) | |
// | |
// Usage | |
// ----- | |
// |
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
@setlocal enabledelayedexpansion & set "ARGS=%*" & powershell -nop -ex Bypass -c "Add-Type (gc '%~dpf0'|select -Skip 1|Out-String); exit [Program]::Main();" & exit /b !ERRORLEVEL! | |
using System; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
public static class Program { | |
[DllImport("shell32.dll")] | |
private static extern IntPtr CommandLineToArgvW( |
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
#ifndef DRAGONTAMER_AESRAND_HPP_INCLUDED | |
#define DRAGONTAMER_AESRAND_HPP_INCLUDED 1 | |
// AESRand | |
// ======= | |
// A Prototype implementation of Pseudo-RNG based on hardware-accelerated AES instructions and 128-bit SIMD | |
// | |
// https://github.com/dragontamer/AESRand/ | |
// | |
// MIT License | |
// =========== |
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
// Simple ReadOnlySpan<char> .ini parser | |
// | |
// License | |
// ------- | |
// SPDX-FileCopyrightText: Copyright (c) Takayuki Matsuoka | |
// SPDX-License-Identifier: CC0-1.0 | |
// | |
using System; |
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
@echo off | |
: | |
: Clone and build volume-control-cli for Windows x64 Desktop, VC++2022 | |
: | |
setlocal enabledelayedexpansion | |
set "OLDCD=%CD%" | |
set /a errorno=1 | |
for /F "delims=#" %%E in ('"prompt #$E# & for %%E in (1) do rem"') do set "esc=%%E" | |
: |
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
@echo off | |
setlocal enabledelayedexpansion | |
set "OLDCD=%CD%" | |
set "libwebp-tgz=libwebp-1.3.2.tar.gz" | |
set "libwebp-tgz-dir=libwebp-1.3.2" | |
set "libwebp-url=https://storage.googleapis.com/downloads.webmproject.org/releases/webp/%libwebp-tgz%" | |
set /a errorno=1 | |
for /F "delims=#" %%E in ('"prompt #$E# & for %%E in (1) do rem"') do set "esc=%%E" |
NewerOlder