Skip to content

Instantly share code, notes, and snippets.

@ChristopherBiscardi
ChristopherBiscardi / fragment.wgsl
Created January 18, 2025 23:57
bevy 0.15 Custom Attribute StandardMaterial Extension Shader 360 flip
#import bevy_pbr::{
pbr_fragment::pbr_input_from_standard_material,
pbr_functions::alpha_discard,
}
#ifdef PREPASS_PIPELINE
#import bevy_pbr::{
prepass_io::{VertexOutput, FragmentOutput},
pbr_deferred_functions::deferred_output,
}
@bryanhunter
bryanhunter / MonokaiSW.md
Last active October 15, 2021 08:12
Mapping colors of the Monokai color scheme to their nearest Sherwin-Williams paint color
@lylepratt
lylepratt / TumblrInASubdirectoryViaAProxy.py
Created April 23, 2012 02:05
Put Your Tumblr Blog in a SubURL (subdirectory) instead of a Subdomain using a Python proxy. It's better to host your blog in a subdirectory rather than a subdomain because Google treats subdomains as totally separate sites which is bad for SEO.
def blog(request, url=""):
remote = "http://YOURTUMBLRSITE.tumblr.com"
local = ""http://www.example.com/blog"
conn = httplib2.Http()
#This is to support Tumblr's search.
if request.GET.get("q"):
urlencode = lambda s: urllib.urlencode({'x': s})[2:]
url = url+"/"+urlencode(request.GET.get("q"))
proxy_url = "%s/%s" % (remote, url)