Skip to content

Instantly share code, notes, and snippets.

View downthecrop's full-sized avatar

downthecrop downthecrop

View GitHub Profile
@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',
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>對戰紀錄</title>
<link rel="stylesheet" href="https://cdngarenanow-a.akamaihd.net/gxx/mobile/web/lib/bootstrap/3.3.5/bootstrap.min.css">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>LOL小幫手</title>
<link rel="stylesheet" href="https://cdngarenanow-a.akamaihd.net/gxx/mobile/web/lib/bootstrap/3.3.5/bootstrap.min.css">