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
| cy.window().then(() => { | |
| const profilingSessionName = `Profiling Session - Name`; | |
| console.profile(profilingSessionName); | |
| setTimeout(() => { | |
| console.profileEnd(profilingSessionName); | |
| }, totalProcessingTime); | |
| }); |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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 LSPDFRDemo | |
| { | |
| using LSPD_First_Response.Mod.API; | |
| using Rage; | |
| public class LSPDFRDemoPlugin : Plugin | |
| { | |
| public override void Initialize() | |
| { | |
| Game.DisplaySubtitle("Initialize"); |
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
| [assembly: Rage.Attributes.Plugin("RPHDemo", Description = "This is a demo plugin", Author = "Bob Chatman - @[email protected]")] | |
| namespace RPHDemo | |
| { | |
| using Rage; | |
| public class HelloWorld | |
| { | |
| public static void Main() | |
| { | |
| Game.DisplaySubtitle("Hello World!"); |
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
| [assembly: Rage.Attributes.Plugin("RPHDemo", Description = "This is a demo plugin", Author = "Bob Chatman - @[email protected]")] | |
| namespace RPHDemo | |
| { | |
| public class HelloWorld | |
| { | |
| public static void Main() | |
| { | |
| } | |
| } | |
| } |
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
| [assembly: Rage.Attributes.Plugin("RPHDemo", Description = "This is a demo plugin", Author = "Bob Chatman - @[email protected]")] | |
| namespace RPHDemo | |
| { | |
| public class HelloWorld | |
| { | |
| } | |
| } |
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
| (() => { | |
| "use strict"; | |
| let instance = new TSWrangle(42); | |
| console.log(instance.Name); // Name: 42 | |
| })(); | |
| // OR, given 42 has no length parameter |
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
| (() => { | |
| "use strict"; | |
| let instance = new TSWrangle("Bill"); | |
| console.log(instance.Name); | |
| })(); |
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
| "use strict"; | |
| export class TSWrangle { | |
| private name!: string; | |
| public get Name() { | |
| return this.name; | |
| } | |
| public set Name(value: string) { |
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
| //! ```rust | |
| //! # use documentation_test::meaning_of_life; | |
| //! fn it_works() { | |
| //! assert_eq!(42, meaning_of_life(4)); | |
| //! } | |
| //! | |
| //! # it_works(); | |
| //! ``` |
NewerOlder