Navigation Menu

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 / 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 / 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 / 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 / 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: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 / 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) {
//! ```rust
//! # use documentation_test::meaning_of_life;
//! fn it_works() {
//! assert_eq!(42, meaning_of_life(4));
//! }
//!
//! # it_works();
//! ```