Skip to content

Instantly share code, notes, and snippets.

View falldeaf's full-sized avatar

Tom Mardis falldeaf

View GitHub Profile
@falldeaf
falldeaf / Blender - Dracula At Night Theme
Created October 24, 2018 20:29
Blender Theme based on the Dracula at Night theme from VSCode!
<bpy>
<Theme>
<user_interface>
<ThemeUserInterface menu_shadow_fac="0.5"
menu_shadow_width="12"
icon_file=""
icon_alpha="1"
widget_emboss="#ffffff05"
axis_x="#d265b1"
axis_y="#3bee5e"
@falldeaf
falldeaf / controls.html
Last active April 17, 2019 16:05
A Google App Script that takes a spreadsheet and creates C# code for a level editor
<!DOCTYPE html>
<html>
<style>
.buttons {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
}
.label {
@falldeaf
falldeaf / crtshader.shader
Created March 28, 2019 17:44
A CRT effect screen shader cobbled together from examples and ideas out on the web.
Shader "Custom/screen" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glow ("Glow", Float) = 1
_Scanline_width ("Scanline width", Int) = 5
_Scanline_space ("Scanline space", Int) = 5
_Rolling_glitch_width ("Rolling glitch width", Float) = 5
_Rolling_glitch_speed ("Rolling glitch speed", Float) = 5
_Fuzzy_glitch_power ("Fuzzy glitch power", Float) = 1
//Adobe Queries
//Get Facebook referrals for month
function adobeQueries(month, qname) {
switch(qname) {
case "facebook":
return '{"reportDescription":{"reportSuiteID":"vrs_gannet9_stuartflglobal","date":"2017-' + month + '","metrics":[{"id":"pageviews"}],"elements":[{"id":"referringdomain","search":{"keywords":["facebook"]},}],}}';
case "twitter":
return '{"reportDescription":{"reportSuiteID":"vrs_gannet9_stuartflglobal","date":"2017-' + month + '","metrics":[{"id":"pageviews"}],"elements":[{"id":"referringdomain","search":{"keywords":["^t.co"]},}],}}';
case "desktopmobilepv":
@falldeaf
falldeaf / shader
Last active October 17, 2019 11:16
Animated background effects shader
////////////////////////
// title: Animated background creater shader
// author: falldeaf (Tom Mardis)
// date: 10/16/2019
// description: Add an image and create scrolling or wavy effects, add a second image and oscilllate between them
////////////////////////
Shader "Custom/dual_image_fader"
{
Properties
@falldeaf
falldeaf / keybase.md
Created January 16, 2020 17:40
My keybase proof

Keybase proof

I hereby claim:

  • I am falldeaf on github.
  • I am tmardis (https://keybase.io/tmardis) on keybase.
  • I have a public key ASCRdtSwqnRsGSCb0dN-zKy9aQpLcCed1uf-c2suP8dtlQo

To claim this, I am signing this object:

bl_info = {
"name": "Materials to .PNG Map",
"description": "Convert list of materials to a .PNG",
"author": "Tom Mardis (Falldeaf)",
"version": (1, 0),
"blender": (2, 82, 7),
"location": "Material Specials Menu",
#"warning": "", # used for warning icon and text in addons panel
#"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/My_Script",
#"tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
bl_info = {
"name": "Collection Helpers",
"description": "Operators and hotkeys for selecting (Alt+L), duplicating (Ctrl+D), and deleting (Ctrl+X) entire collections based on one member object",
"author": "Tom Mardis (Falldeaf)",
"version": (1, 0),
"blender": (2, 82, 7),
"location": "Object Context Menu",
#"warning": "", # used for warning icon and text in addons panel
#"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/My_Script",
"tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
@falldeaf
falldeaf / keepalive.ps1
Created November 24, 2020 17:39
PowerShell script to keep your locked down computer from going to sleep
Clear-Host
Echo "Keep-alive with Scroll Lock..."
$WShell = New-Object -com "Wscript.Shell"
while ($true)
{
$WShell.sendkeys("{SCROLLLOCK}")
Start-Sleep -Milliseconds 100
$WShell.sendkeys("{SCROLLLOCK}")
@falldeaf
falldeaf / unlit-enemy-drip.shader
Last active May 31, 2022 13:27
A Unity3D, unlit shader effect that creates a cartoonish dripping effect on the surface of a model
Shader "Unlit/Enemy Drip"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_Color ("Droplet color", Color) = (.34, .85, .92, 1) // color
_BTime ("Blink speed", float) = 0.0 // highlight blink speed
_Drops ("# of Droplets per face", int) = 3
_Speed ("Speed of Droplets", Float) = 1.0
_Size ("Size of Droplets", Float) = 1.0