Skip to content

Instantly share code, notes, and snippets.

View Maximetinu's full-sized avatar
🌔
🔭

Miguel Medina Ballesteros Maximetinu

🌔
🔭
View GitHub Profile
@tool
extends Node
@export_storage var viewport_position: Vector2
@export_storage var viewport_size: Vector2i
@export var main_screen_position_offset := Vector2(0, -18)
@export var main_screen_size_offset := Vector2i(0, -32)
func _enter_tree() -> void:
/* Numerically solve for the time-dependent Schrodinger equation in 2D,
using the split operator method. To build and run, type:
rustc qm2d_split_op.rs
./qm2d_split_op
This will output a series of bmp images which show each frame of the
simulation.
References:
@rain-1
rain-1 / LLM.md
Last active July 27, 2024 04:02
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@throwaway96
throwaway96 / crashd.md
Last active July 21, 2024 15:58
crashd instructions

News

EOL (2024-07-21)

I'm not going to be maintaining this document anymore. I'm leaving it as-is since much of the FAQ section is still accurate and has yet to be incorporated into other resources.

Use CanI.RootMy.TV to find an exploit for your TV.

New exploit for webOS 3.5+: DejaVuln (2024-04-21)

@SolidAlloy
SolidAlloy / AssetDatabaseTests.cs
Last active March 6, 2024 03:42
AssetDatabase unit tests that show the implications of Refresh() and SaveAssets()
using System;
using System.IO;
using JetBrains.Annotations;
using NUnit.Framework;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;
/// <summary>
/// Unit tests that show how AssetDatabase operates.
@olegmrzv
olegmrzv / .gitattributes
Last active September 17, 2023 11:32
Git LFS Attributes for Unity Game Engine
# Git LFS tracking file types
# IronSource
*.a filter=lfs diff=lfs merge=lfs -text
IS*Adapter filter=lfs diff=lfs merge=lfs -text
GoogleMobileAds filter=lfs diff=lfs merge=lfs -text
# Image
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
@arimger
arimger / BrushPrefabDrawer.cs
Last active January 31, 2022 11:04
Simple tool to create objects on a specific layer in Unity
using UnityEditor;
using UnityEngine;
//NOTE: Editor-related scripts should be placed in an Editor folder
namespace Toolbox
{
[CustomPropertyDrawer(typeof(BrushPrefab))]
public class BrushPrefabDrawer : PropertyDrawer
{
@inikitin
inikitin / .gitattributes
Last active June 14, 2024 10:06
.gitattributes for Unity with case-insensitive Git LFS extension filters
# Unity specific .gitattributes
* text=auto
*.cs diff=csharp text
*.cginc text
*.shader text
# Unity YAML
*.anim -text merge=unityyamlmerge diff
using UnityEngine;
using UnityEditor;
/// <summary>
/// Scene preview data.
/// http://diegogiacomelli.com.br/unitytips-scene-preview-window
/// </summary>
public class ScenePreviewData
{
Texture2D _texture;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Hierarchy window game object icon.
/// http://diegogiacomelli.com.br/unitytips-hierarchy-window-gameobject-icon/
/// </summary>
[InitializeOnLoad]
public static class HierarchyWindowGameObjectIcon
{