Skip to content

Instantly share code, notes, and snippets.

View namrog84's full-sized avatar

Adam Gorman namrog84

View GitHub Profile
bool ContainsChar(char c, const char * str)
{
char * ptr = str;
while(ptr != null)
{
if(*ptr == c)
{
return true;
}
ptr++;
using UnityEngine;
using System.Collections;
using System;
using UnityEngine.SceneManagement;
public class SceneFadeInOut : MonoBehaviour
{
public void StartSceneFadeOut()
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class TabToNextController : MonoBehaviour, IUpdateSelectedHandler
{
public Selectable nextField;
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");
/*/
//
InputComponent->BindAction("Button", IE_Pressed, this, &Class::Function);
//
InputComponent->BindAxis("InputAxis", this, &Class::Function);
//
AMyClass* MyCastActor = Cast<AMyClass>(MyActor);
//
UCLASS()
@namrog84
namrog84 / AllLevelsElevatorSaga.js
Created September 18, 2021 09:41
elevator saga solution
// 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
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" },
@namrog84
namrog84 / darkeritems.tsx
Created April 7, 2023 00:53
darker-market misc data things
export enum SlotType {
None = 'None',
PrimaryWeapon = 'Primary Weapon',
SecondaryWeapon = 'Secondary Weapon',
Head = 'Head',
Necklace = 'Necklace',
Hands = 'Hands',
Ring = 'Ring',
Chest = 'Chest',