Skip to content

Instantly share code, notes, and snippets.

@nukadelic
nukadelic / EditorFontSize.cs
Last active August 9, 2025 05:44
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
{
@nidev
nidev / .vimrc
Last active December 3, 2023 18:35
How to use omnisharp-vim with latest omnisharp-roslyn
"All user-dependent configurations are omitted intentionally.
"This gist only includes configurations for omnisharp.
"Original vimrc is available on:
"https://github.com/OmniSharp/omnisharp-vim#example-vimrc
"=========================================================
" **Preparation steps
"1. Install pathogen.vim or preferred plugin manager
"(Will explain procedures with assumption that a user is using pathogen.vim)
" **Main steps
@tkchst
tkchst / background.js
Last active November 30, 2020 05:34
Download auto resume when network error for chrome extension
chrome.downloads.onChanged.addListener((delta) => {
if((delta.canResume || {}).current === true
&& (delta.error || {}).current === chrome.downloads.InterruptReason.NETWORK_FAILED){
chrome.downloads.resume(delta.id);
}
});
@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}"