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)] |