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
bool ContainsChar(char c, const char * str) | |
{ | |
char * ptr = str; | |
while(ptr != null) | |
{ | |
if(*ptr == c) | |
{ | |
return true; | |
} | |
ptr++; |
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 UnityEngine; | |
using System.Collections; | |
using System; | |
using UnityEngine.SceneManagement; | |
public class SceneFadeInOut : MonoBehaviour | |
{ | |
public void StartSceneFadeOut() | |
{ |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
public class TabToNextController : MonoBehaviour, IUpdateSelectedHandler | |
{ | |
public Selectable nextField; |
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
setInterval(function() { | |
if (Molpy.Redacted.location != 0) { | |
document.title = "! kitten !"; | |
Molpy.Redacted.location=1; | |
var inputz = document.getElementsByTagName("input"); | |
for(index = 0; index < inputz.length; index++){ | |
if(inputz[index].value == "Show"){ | |
var foundIt = String(inputz[index].onclick).includes("Redacted"); |
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
/*/ | |
// | |
InputComponent->BindAction("Button", IE_Pressed, this, &Class::Function); | |
// | |
InputComponent->BindAxis("InputAxis", this, &Class::Function); | |
// | |
AMyClass* MyCastActor = Cast<AMyClass>(MyActor); | |
// | |
UCLASS() |
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
// I think this solution might have been written by nichampagne | |
// Verified and tested by namrog84 to have worked on all elevator saga levels as of 2021/09/18 | |
{ | |
init: function(elevators, floors) { | |
var goingUp = []; //ARRAY OF FLOORS WITH UP BUTTON PRESSED, KEPT IN ORDER OF WHEN THEY WERE PRESSED | |
var goingDown = []; //ARRAY OF FLOORS WITH DOWN BUTTON PRESSED, KEPT IN ORDER OF WHEN THEY WERE PRESSED | |
var topFloor = floors.length - 1; //THE FLOOR NUMBER OF THE TOP FLOOR, BECAUSE IT CHANGES ON DIFFERENT CHALLENGES | |
var next = 0; //A PLACE HOLDER VARIABLE USED IN A FEW PLACES |
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
import { Fragment, useState } from "react"; | |
import { Combobox, Transition } from "@headlessui/react"; | |
import { CheckIcon, ChevronUpDownIcon } from "@heroicons/react/20/solid"; | |
const people = [ | |
{ id: 1, name: "Wade Cooper" }, | |
{ id: 2, name: "Arlene Mccoy" }, | |
{ id: 3, name: "Devon Webb" }, | |
{ id: 4, name: "Tom Cook" }, | |
{ id: 5, name: "Tanya Fox" }, |
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
export enum SlotType { | |
None = 'None', | |
PrimaryWeapon = 'Primary Weapon', | |
SecondaryWeapon = 'Secondary Weapon', | |
Head = 'Head', | |
Necklace = 'Necklace', | |
Hands = 'Hands', | |
Ring = 'Ring', | |
Chest = 'Chest', |