Skip to content

Instantly share code, notes, and snippets.

@tattyd
tattyd / Shadow.cs
Last active April 1, 2025 08:26
Soft shadow control for Unity UI Toolkit
/* MIT License
Copyright (c) 2022 David Tattersall
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:
@jimsynz
jimsynz / 00_original.js
Last active August 29, 2015 14:02
An exercise in refactoring horrible procedural JavaScript. Please don't be this person.
/*
* This is a JS file from a library that our client wanted us to use. It included a dependency on a JS lib called `classie` which is
* used for adding and removing HTML classes to elements. The project already includes jQuery.
*/
(function() {
$(document).ready(function() {