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
| /// <summary> | |
| /// Returns the value for X on a curve going through {-1,-1}, {0,0} and {1,1}. | |
| /// The shape of the curve is determined by the second argument. | |
| /// A negative value makes the curve flat at 0, a positive constant makes it steep at 0. | |
| /// </summary> | |
| /// <param name="x">Position to read from the curve; Domain: (-1,1)</param> | |
| /// <param name="curve">Constant to shape the curve; Domain: (-1,1)</param> | |
| /// <returns>The value of the curve at X.</returns> | |
| public static float NormalizedSigmoid(float x, float curve) | |
| { |
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
| #if UNITY_EDITOR | |
| using System; | |
| using System.IO; | |
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class ProjectSelectWizard : ScriptableWizard | |
| { | |
| private static readonly string ProjectsFolder = "Projects"; |
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
| CREATE_VEHICLE_INFO(TrackVehicleInfo_RightFlyerLargeHalfLoopDown0, { | |
| { 31, 16, 0, 0, 0, 0}, { 30, 16, 0, 0, 0, 0}, { 29, 16, 0, 0, 0, 0}, { 28, 16, 0, 0, 0, 0}, { 27, 16, 0, 0, 0, 0}, | |
| { 26, 16, 0, 0, 0, 0}, { 25, 16, 0, 0, 0, 0}, { 24, 16, 0, 0, 0, 0}, { 23, 16, -1, 0, 0, 0}, { 22, 16, -1, 0, 0, 0}, | |
| { 21, 15, -1, 0, 0, 0}, { 20, 15, -1, 0, 0, 0}, { 19, 15, -2, 0, 0, 0}, { 18, 15, -2, 0, 0, 0}, { 17, 15, -2, 0, 0, 0}, | |
| { 16, 15, -3, 16, 23, 0}, { 15, 15, -3, 16, 23, 0}, { 14, 15, -4, 16, 23, 0}, { 13, 15, -4, 16, 23, 0}, { 12, 15, -5, 16, 23, 0}, | |
| { 11, 14, -5, 16, 23, 0}, { 10, 14, -6, 16, 23, 0}, { 9, 14, -6, 16, 23, 0}, { 8, 14, -7, 16, 23, 0}, |
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 <exception> | |
| #include <expected> | |
| #include <iostream> | |
| #include <variant> | |
| template<class... Ts> struct overloaded : Ts... { using Ts::operator()...; }; | |
| namespace IO | |
| { | |
| struct FileNotFound {}; |
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
| { | |
| "$schema": "https://aka.ms/winget-settings.schema.json", | |
| // For documentation on these settings, see: https://aka.ms/winget-settings | |
| // "source": { | |
| // "autoUpdateIntervalInMinutes": 5 | |
| // }, | |
| "installBehavior": { | |
| "preferences": { |
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
| #pragma once | |
| #include <variant> | |
| #include "Deadline.h" | |
| #include "GuestCount.h" | |
| #include "ParkValue.h" | |
| namespace Objectives | |
| { |
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 <cstdint> | |
| #include <iostream> | |
| #include <limits> | |
| #include <type_traits> | |
| int GetBitValue(const std::uint8_t* data, int offset) | |
| { | |
| constexpr auto BitsPerByte = std::numeric_limits<std::decay_t<decltype(*data)>>::digits; | |
| static_assert(BitsPerByte != 0, "Unknown bit size for type"); |
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
| @echo off | |
| :: Ensure we're admin by checking if the last arguent is "asadmin", and if not, restart as administrator with this argument set. | |
| for %%a in (%*) do set last=%%a | |
| if NOT "%last%" == "asadmin" ( | |
| powershell start -WindowStyle Minimized -verb runas '%0' '%* asadmin' | |
| exit | |
| ) | |
| :: Ensure the working directory is the same folder as where this script is located |
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
| function generateVT(w, h) { | |
| var vt = ""; | |
| for (var y = 1; y <= h; y++) | |
| for (var x = 1; x <= w; x++) | |
| vt += `vt ${((x-1)/(w-1)).toFixed(6)} ${((h-y)/(h-1)).toFixed(6)}\n`; | |
| return vt; | |
| } |
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
| Set WshShell = WScript.CreateObject("WScript.Shell") | |
| WshShell.Run """C:\Program Files\Mozilla Firefox\firefox.exe"" -private-window https://github.com/login" | |
| WScript.Sleep 4000 | |
| WshShell.SendKeys "<username or email address>{TAB}<password>{ENTER}" |