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
/** | |
* Convex Cast | |
* https://forum.playcanvas.com/t/playcanvas-physics-extension/13737 | |
* | |
* Change log: | |
* | |
* 2.0 - Move initialization to first use instead of at parse time to | |
* support latest version of Ammo and PlayCanvas. Fixed bug where rotation | |
* was being set on wrong transform. | |
* |
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
// ==UserScript== | |
// @name fxtwitter Share Button for X (Styled + Snackbar + Hover) | |
// @namespace http://tampermonkey.net/ | |
// @version 2.0 | |
// @description Adds a compact 'fxtwitter' button next to Share on X tweets with hover effect and clipboard notification. Clean layout, Safari-safe. | |
// @author You | |
// @match https://twitter.com/* | |
// @match https://x.com/* | |
// @grant none | |
// @run-at document-idle |
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
// Provide database URL and database name where specified | |
// Provide file location for your function | |
const express = require("express"); | |
const admin = require("firebase-admin"); | |
const functions = require("firebase-functions/v2"); | |
const cron = require("node-cron"); | |
const app = express(); |
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
// check for 'real' null | |
if (ReferenceEquals(obj, null)) { | |
} | |
// check for 'real' not-null | |
if (ReferenceEquals(obj, null) == false) { | |
} | |
// check for 'unity' null | |
if (obj == false) { |
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
namespace Scripts.Utils.BuildMaker.Editor | |
{ | |
public static class BuildCLI | |
{ | |
// Called via editor in batchmode command line arguments | |
public static void Build() | |
{ | |
string[] args = System.Environment.GetCommandLineArgs(); | |
string buildProfile = null; |
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
pipeline { | |
agent { | |
node { | |
label 'windows' | |
} | |
} | |
environment { | |
VERSION = readFile(file: "game/Assets/StreamingAssets/version.txt").trim() | |
} | |
stages { |
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
using System; | |
using System.Collections.Generic; | |
using System.Runtime.CompilerServices; | |
public struct Option<T> : IEquatable<Option<T>> { | |
T _value; | |
bool _hasValue; | |
public T Value { | |
[MethodImpl(MethodImplOptions.AggressiveInlining)] |