Skip to content

Instantly share code, notes, and snippets.

View BobGneu's full-sized avatar
🤖

Bob Chatman BobGneu

🤖
View GitHub Profile
@BobGneu
BobGneu / profiling.in.cypress.sample.js
Created October 23, 2023 22:10
Triggering the Profiler in Cypress
cy.window().then(() => {
const profilingSessionName = `Profiling Session - Name`;
console.profile(profilingSessionName);
setTimeout(() => {
console.profileEnd(profilingSessionName);
}, totalProcessingTime);
});
@BobGneu
BobGneu / LSPDFRDemoPlugin.cs
Created January 30, 2019 08:08
LSPDFR Plugin - Initial Plugin
namespace LSPDFRDemo
{
using LSPD_First_Response.Mod.API;
using Rage;
public class LSPDFRDemoPlugin : Plugin
{
public override void Initialize()
{
Game.DisplaySubtitle("Initialize");
@BobGneu
BobGneu / machine.js
Created September 18, 2020 00:59
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@BobGneu
BobGneu / HelloWorld.cs
Last active January 27, 2019 00:02
RPH Plugin - Plugin Attribute - 1
[assembly: Rage.Attributes.Plugin("RPHDemo", Description = "This is a demo plugin", Author = "Bob Chatman - @Bob@mastodon.gamedev.place")]
namespace RPHDemo
{
public class HelloWorld
{
}
}
@BobGneu
BobGneu / HelloWorld.cs
Last active January 27, 2019 00:01
RPH Plugin - Including Our Entry Point
[assembly: Rage.Attributes.Plugin("RPHDemo", Description = "This is a demo plugin", Author = "Bob Chatman - @Bob@mastodon.gamedev.place")]
namespace RPHDemo
{
public class HelloWorld
{
public static void Main()
{
}
}
}
@BobGneu
BobGneu / HelloWorld.cs
Last active January 27, 2019 00:00
RPH Plugin - Hello World Example
[assembly: Rage.Attributes.Plugin("RPHDemo", Description = "This is a demo plugin", Author = "Bob Chatman - @Bob@mastodon.gamedev.place")]
namespace RPHDemo
{
using Rage;
public class HelloWorld
{
public static void Main()
{
Game.DisplaySubtitle("Hello World!");
@BobGneu
BobGneu / Other odd cases!.js
Last active December 10, 2018 23:34
Wrangling Input within TS - Example 3
(() => {
"use strict";
let instance = new TSWrangle(42);
console.log(instance.Name); // Name: 42
})();
// OR, given 42 has no length parameter
@BobGneu
BobGneu / entrypoint.js
Last active December 10, 2018 23:23
Wrangling Input within TS - Example 2
(() => {
"use strict";
let instance = new TSWrangle("Bill");
console.log(instance.Name);
})();
@BobGneu
BobGneu / Example.ts
Last active December 6, 2018 00:04
Wrangling Input within TS - Example 1
"use strict";
export class TSWrangle {
private name!: string;
public get Name() {
return this.name;
}
public set Name(value: string) {
@BobGneu
BobGneu / Difficulties.csv
Created October 4, 2014 16:52
UE4 - DataTable Demo from Exodus
InitialUniversePopulation InitialUniverseResources InitialPlanetPopulation InitialPlanetResources Planets Bounds ResourceConsumptionRate OrbitScale LaunchTimer PopulationTimer ResourcesTimer LowPopulationGrowthRate EvenPopulationGrowthRate HighPopulationGrowthRate NoResourcesGrowthRate LowPopulationRatio EvenPopulationRatio OrbitTime MaxOrbits LaunchVelocity DeepSpace CargoSpace CrewMinimum Gravitation
Easy 4000 100000 852 1200 10 1024 0.0005 2 5 5 5 0.012 -0.042 0.001 -0.3 0.5 0.7 15 5 200 1536 250 50 1.8
Medium 3200 80000 805 1080 13 1536 0.0015 2.1 4.75 4.75 4.75 0.0144 -0.0504 0.0012 -0.36 0.525 0.735 15.75 5.45 360 2304 300 60 2.16
Hard 2560 64000 802 1026 16 2304 0.003 2.205 4.5125 4.5125 4.5125 0.0173 -0.0605 0.0014 -0.432 0.5513 0.7718 16.5375 5.9405 648 3456 360 72 2.592
Insane 2048 51200 800 975 20 3456 0.006 2.3153 4.2869 4.2869 4.2869 0.0207 -0.0726 0.0017 -0.5184 0.5788 0.8103 17.3644 6.4751 1166.4 5184 432 86.4 3.1104