Skip to content

Instantly share code, notes, and snippets.

View xezno's full-sized avatar

Alex Guthrie xezno

View GitHub Profile
@using System;
@namespace Sandbox.UI.Tests.Basics
@inherits Sandbox.UI.Panel
@attribute [StyleSheet]
<style>
.wheel {
height: 128px;
aspect-ratio: 1;

Keybase proof

I hereby claim:

  • I am xezno on github.
  • I am xezno (https://keybase.io/xezno) on keybase.
  • I have a public key ASDsd-kq7CCbS7BA9RXjIdn1_aUti1BpuvIHh05GbtzTkQo

To claim this, I am signing this object:

@xezno
xezno / uwuify.js
Created February 12, 2019 13:12
The UwU Button
function getUwuString(a){return a.replace(/[.]/g,"!!!").replace(/th|Th/g,"f").replace(/W/g,"w-w").replace(/l|L|r|R/g,"w").toLowerCase()}function uwuify(a){var b=["^~^","UwU","OwO","O_O","O_o","oWo","OvO","UvU","*~*",":3","=3","<(^V^<)"];if(null==a)var a=document.body;a.childNodes.forEach(function(a){if(!(3===a.nodeType))uwuify(a);else if(""!==a.nodeValue.trim()){var c=a.nodeValue;c=getUwuString(c),0==Math.floor(2*Math.random())&&(c+=" "+b[Math.floor(Math.random()*b.length)]),a.nodeValue=c}})}uwuify();
@xezno
xezno / prettify.js
Created July 29, 2018 11:54
The Prettify Button
var a=document.createElement('style');a.innerHTML="body{margin:5% auto;background:#f2f2f2;color:#444444;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.8;text-shadow:0 1px 0 #ffffff;max-width:50%;}";document.body.appendChild(a);