Skip to content

Instantly share code, notes, and snippets.

View dbuck's full-sized avatar

Dave Buchhofer dbuck

View GitHub Profile
@capyvara
capyvara / CSharpProjectProcessor.cs
Last active February 12, 2016 18:15
PostProcessor for MonoDevelop project files in Unity
using UnityEngine;
using UnityEditor;
using System;
using System.IO;
public class CSharpProjectProcessor : AssetPostprocessor
{
[MenuItem("Assets/Clean MonoDevelop Files")]
static void CleanMonoDevelopFiles()
{
@MattRix
MattRix / MonoBehaviourInspector
Last active October 12, 2021 02:51
Allows you to use OnInspectorGUI in MonoBehaviour directly, rather than having to create a CustomEditor
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
[CustomEditor (typeof(MonoBehaviour),true)]
[CanEditMultipleObjects]
public class MonoBehaviourInspector : Editor
{
@winkels
winkels / InterfaceExtensions.cs
Created January 19, 2015 18:52
Extension methods to get Unity MonoBehaviours (or, in some unlikely scenario, Components) that implement a given C# interface.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public static class InterfaceExtensions
{
#region GameObject methods
public static T GetInterface<T>(this GameObject gameObject) where T : class
{
@Pulimet
Pulimet / AdbCommands
Last active June 24, 2026 00:00
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@awni
awni / fast_mlx.md
Last active June 14, 2026 09:46
Writing Fast MLX

Making MLX Go Fast

This guide assumes you have some familiarity with MLX and want to make your MLX model or algorithm as efficient as possible.

The guide covers the following:

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp