Skip to content

Instantly share code, notes, and snippets.

{
"nodes": {
"Material Output": {
"bl_idname": "ShaderNodeOutputMaterial",
"bl_label": "Material Output",
"name": "Material Output",
"label": "",
"location": {
"x": 300.0,
"y": 300.0
@jocafa
jocafa / main.lua
Created August 15, 2021 05:13
"Burnless" explosion gun
local cfg = {
holeSize = 4,
impulseDistance = 5,
impulseMagnitude = 500
}
local events = {
--[[
(time) = {
center = {x, y , z},
@jocafa
jocafa / Graph.lua
Created August 11, 2021 21:39
Teardown Graph Experiment
#include "Scale.lua"
local function identity (n)
return function () return n end
end
Graph = {}
Graph.__index = Graph
function Graph.init()
local dumpDepth = 0
function dumpList(key)
print(string.rep(' ', dumpDepth)..key)
local list = ListKeys(key)
for i=1, #list do
dumpDepth = dumpDepth + 1
dumpList(key..'.'..list[i])
-- https://gist.github.com/gre/1650294
ease = {}
ease.linear = function (t) return t end
ease.inQuad = function (t) return t*t end
ease.outQuad = function (t) return t*(2-t) end
ease.inOutQuad = function (t) return t<0.5 and 2*t*t or -1+(4-2*t)*t end
ease.inCubic = function (t) return t*t*t end
ease.outCubic = function (t) t = t-1; return t*t*t+1 end
ease.inOutCubic = function (t) return t<0.5 and 4*t*t*t or (t-1)*(2*t-2)*(2*t-2)+1 end
ease.inQuart = function (t) return t*t*t*t end
bl_info = {
"name": "Blender Toast",
"description": "Toast Notifications",
"author": "Josh Faul",
"blender": (2, 90, 1),
"category": "Render"
}
import subprocess
import os
<!DOCTYPE html>
<html>
<head>
<title>Dust</title>
<!-- Mobile -->
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<style>
html, body {
@jocafa
jocafa / README.md
Last active August 29, 2015 14:04
SVG Reuse Across Embedded Documents With Filters

SVG Reuse Across Embedded Documents With Filters

@jocafa
jocafa / gist:10514975
Created April 12, 2014 02:05
curling
# I need to "curl -I" the result of the following series of pipes:
curl -s -D http://www.gtfs-data-exchange.com/agency/utah-transit-authority/latest.zip | grep Location | cut -d" " -f2
# Note: gtfs-data-exchange.com doesn't play nice with HEAD, but a request for .../latest.zip will *always* spit back a redirect
@jocafa
jocafa / gist:10484310
Created April 11, 2014 16:59
.zshrc git info and prompt stuff
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:git*' unstagedstr '%F{160}●'
zstyle ':vcs_info:git*' stagedstr '%F{40}●'
zstyle ':vcs_info:git*' formats '%F{220}± %F{255} %F{249}%b %u%c'
zstyle ':vcs_info:git*' actionformats '%F{220}± %F{45}%b|%a %u%c'
zstyle ':vcs_info:git*' check-for-changes true
precmd() {
vcs_info