Skip to content

Instantly share code, notes, and snippets.

@nyanSpark
nyanSpark / SKY2040 Configurations Update Backup Guide
Last active September 10, 2024 17:06
SKY2040 Leverless Firmware Update Guide 0.7.x
HOW TO UPDATE YOUR SKY2040 README
=================================
https://gp2040-ce.info/
https://github.com/OpenStickCommunity/GP2040-CE
Tested from 0.7.3 to 0.7.7
- SKY2040 uses the default 'Raspberry Pi Pico' chip as of Jan 2024.
- You want the Pico version of the firmware: GP2040-CE_0.X.X_Pico.uf2
- You can find official GP2040 firmware here: https://gp2040-ce.info/downloads/download-page
@yasirkula
yasirkula / MultiScreenshotCapture.cs
Last active February 23, 2026 12:18
Capture multiple screenshots with different resolutions simultaneously in Unity 3D
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using UnityEditor;
using UnityEngine;
namespace MultiScreenshotCaptureNamespace
{
internal static class ReflectionExtensions
@Bilka2
Bilka2 / webhook.py
Last active January 27, 2026 04:45
Simple discord webhook with python
import requests # dependency
url = "<your url>" # webhook url, from here: https://i.imgur.com/f9XnAew.png
# for all params, see https://discordapp.com/developers/docs/resources/webhook#execute-webhook
data = {
"content" : "message content",
"username" : "custom username"
}
using System;
using System.Linq;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
// c# companion script
// SpriteUVToShader.cs -------------------------------------------------------------------------------------------------------------------------------- //
// Save you your project, add to your SpriteRenderer gameObject
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
[ExecuteInEditMode]