Skip to content

Instantly share code, notes, and snippets.

View DanielShuey's full-sized avatar

DanielShuey

  • Melbourne, Australia
View GitHub Profile
@nicolas17
nicolas17 / yellow.asm
Last active January 22, 2026 14:40
hello-world iOS app
.global _main
.extern _putchar
.align 4
_main:
; prolog; save fp,lr,x19
stp x29, x30, [sp, #-0x20]!
str x19, [sp, #0x10]
@nukadelic
nukadelic / EditorFontSize.cs
Last active March 2, 2026 18:31
Unity Editor Font Size Changer -- EditorStyles
#if UNITY_EDITOR
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
public class EditorFontSize : EditorWindow
{
// enable resize on launch to set a default font size , using this option will disable the ability to have the window accassible
@karljj1
karljj1 / Unity Assembly Definition Debugger.cs
Last active April 2, 2025 23:06
Find out what assemblies are being built and how long each takes.
using System;
using System.Collections.Generic;
using System.Text;
using UnityEditor;
using UnityEditor.Compilation;
using UnityEngine;
[InitializeOnLoad]
public class AsmdefDebug
{
@bennuttall
bennuttall / juliasets.jl
Last active September 28, 2018 15:49
Rich Wareham's Julia set code
# Copyright (c) 2017: Rich Wareham, Simon Byrne
# Available under the MIT "Expat" license.
using Colors
using SenseHat
const LED = led_matrix()
function julia(z, c)
maxit = 50
@supairish
supairish / gist:5872581
Created June 26, 2013 23:09
Paypal Payflowpro example
@secure_token_id = UUID.generate.gsub('-', '').slice(0, 25)
current_user.update_attribute(:paypal_token_id, @secure_token_id)
paypal_params = {'PARTNER' => 'PayPal', 'VENDOR' => PAYPAL_USER, 'USER' => PAYPAL_USER, \
'PWD' => PAYPAL_MANAGER_PASSWORD, 'TRXTYPE' => 'S', 'AMT' => cost, 'CREATESECURETOKEN' => 'Y', \
'SECURETOKENID' => @secure_token_id
}.to_param
paypal_params += "&RETURNURL=#{paypal_success_url}&ERRORURL=#{paypal_error_url}&SILENTPOSTURL=#{paypal_silent_post_url}&CANCELURL=#{subscribe_url}"
/*****************************************************************************
* Copyright (c) 2011 Kenneth Waters
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions: