Skip to content

Instantly share code, notes, and snippets.

View downthecrop's full-sized avatar

downthecrop downthecrop

View GitHub Profile
@downthecrop
downthecrop / README.md
Last active January 2, 2024 08:42
GPT Being Extremely Smart

Person:

  • I'd like to add a new "suboption" to the "select" of a menu item in my gridnavigator that will allow users to cycle through different options for esxample << Option1 >>, << Option2>> by using the left and right inputs that are already mapped to "movecursor" events
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
@downthecrop
downthecrop / GPT-4 Giving a "bad" working example.md
Created September 8, 2023 00:14
GPT-4 Degraded Performance Example

This is an example of the degraded performance of GPT-4.

The original version does work and give the correct result but it isn't "Vue-like". It's doing direct DOM manipuliation. Using a framework like Vue if you find yourself needing to search the DOM for elements for set properties you are probably doing something wrong.

Below is an example of code that GPT-4 suggested.

While it is able to correct its answers after being prompted the original responses provided a bad foundation for the page.

@downthecrop
downthecrop / README.md
Created June 28, 2023 06:43
2009Scape Ground Items Plugin

GroundItems Plugin

GroundItems is a Runelite-like plugin, providing a customizable overlay for in-game ground items.

Usage

You can interact with the GroundItems plugin using the following commands:

@downthecrop
downthecrop / GPT.md
Last active June 23, 2023 01:03
GPT being insanely good at programming

User: can you extract the FOV from here?

	private static void method4175(@OriginalArg(0) float arg0, @OriginalArg(1) float arg1, @OriginalArg(2) float arg2, @OriginalArg(3) float arg3, @OriginalArg(4) float nearClip, @OriginalArg(5) float farClip) {
		@Pc(3) float local3 = nearClip * 2.0F;
		matrix[0] = local3 / (arg1 - arg0);
		matrix[1] = 0.0F;
		matrix[2] = 0.0F;
		matrix[3] = 0.0F;
		matrix[4] = 0.0F;
 matrix[5] = local3 / (arg3 - arg2);
@downthecrop
downthecrop / 2009levelv2.html
Last active May 15, 2023 18:11
Wow It's fixed!
<canvas id="canvas" width="660" height="251">your canvas loads here</canvas>
<p>If the background doesn't load just submit again until it does.</p>
<br>
<p>If you don't want a background so you can edit in photoshop just delete the url.</p>
<br>
<input id="username" placeholder="username"></input>
<button id="submit">Submit</button>
@downthecrop
downthecrop / Calculate total views.md
Created April 21, 2023 18:43
ChatGPT being insanely smart.

Bryce Matthes: If I want to calculate the combined total of all of a YouTube channels videos how should I do that? I want the exact number.


ChatGPT: To calculate the combined total of all views for a YouTube channel's videos, you'll need to use the YouTube Data API. The API allows you to interact with YouTube's database and fetch information like video views. To get the exact number of combined total views, you can follow these steps:

Create a Google API project and enable YouTube Data API v3:Go to the Google Developers Console: https://console.developers.google.com/Create a new project, or use an existing one.In the "Dashboard", click "Enable APIs and Services" and search for "YouTube Data API v3". Enable it for your project.

Get an API key:In the Google Developers Console, navigate to "Credentials" under "APIs & Services".Click "Create credentials" and choose "API key". Save the generated API key for later use.

Install the Google API client library for Python (if you haven't alread

You: I created the shader in shadergraph but my texture 2d is upside down.

ChatGPT: If your texture appears upside down when using Shader Graph in Unity, you can easily fix this by flipping the V coordinate of the UV coordinates.

To do this in Shader Graph, follow these steps:

In your Shader Graph, find the Sample Texture 2D node that is sampling the upside-down texture.

Look for the UV input of the Sample Texture 2D node. If you don't have a UV input connected, create a new UV node by right-clicking in the graph area, selecting 'Create Node', and searching for 'UV'. Then, connect the 'Out' output of the UV node to the 'UV' input of the Sample Texture 2D node.

{
"Aatrox" : 266,
"Ahri" : 103,
"Akali" : 84,
"Akshan" : 166,
"Alistar" : 12,
"Amumu" : 32,
"Anivia" : 34,
"Annie" : 1,
"Aphelios" : 523,
@downthecrop
downthecrop / AbstractSprite.java
Last active January 11, 2024 21:56
Abstract Sprite dumper Runescape 530 Cache
package org.runite.client;
import org.rs09.client.Node;
import org.rs09.client.rendering.Toolkit;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
@downthecrop
downthecrop / mostplayed.py
Created March 23, 2022 06:23
most played request garena
import requests
cookies = {
'sessionid': '6cr03kpyjsii7o51ip6y5zld2i20cf63',
'_ga': 'GA1.2.1697917168.1647800683',
'_gid': 'GA1.2.365671794.1647800683',
'csrftoken': '4l4Y4mudtRDFe7uK1MiPRUBD0y4LQITL',
'_gat': '1',
}