This file contains 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 SampSharp.GameMode; | |
using SampSharp.GameMode.Display; | |
using SampSharp.GameMode.SAMP; | |
using SampSharp.GameMode.World; | |
using System; | |
namespace YourNamespace | |
{ | |
public class ProgressBar : IDisposable | |
{ |
This file contains 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
const CreateTree = element => { | |
const clickEvent = new Event('click'); | |
const openedClass = 'fa-minus-circle'; | |
const closedClass = 'fa-plus-circle'; | |
//initialize each of the top levels | |
element.classList.add('tree'); | |
for (let child of element.querySelectorAll('li')) { | |
if (child.getElementsByTagName('ul').length) { | |
const newNode = document.createElement('i'); |
This file contains 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
// Fix Array.from not being defined. | |
interface ArrayConstructor { | |
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>; | |
from<T>(arrayLike: ArrayLike<T>): Array<T>; | |
} | |
window.addEventListener("load", () => { | |
const needIncluding = Array.from(document.getElementsByTagName("include")); | |
for (const include of needIncluding) { | |
includeFile(include.getAttribute("component"), include); |
This file contains 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
<?php | |
/* | |
* This document has been generated with | |
* https://mlocati.github.io/php-cs-fixer-configurator/#version:3.12.0|configurator | |
* you can change this configuration by importing this file. | |
*/ | |
$config = new PhpCsFixer\Config(); | |
return $config | |
->setRiskyAllowed(true) | |
->setRules([ |