Skip to content

Instantly share code, notes, and snippets.

View rjduran's full-sized avatar

RJ Duran rjduran

  • Denver, CO
View GitHub Profile
@rjduran
rjduran / lorenz-attractor-02.py
Created January 26, 2023 17:55
ChatGPT generated python using Rhino.Geometry for Lorenz Attractor
import Rhino.Geometry as rg
# Lorenz Attractor equations
def lorenz(x, y, z, a=10, b=28, c=8/3):
x_dot = a*(y - x)
y_dot = x*(b - z)
z_dot = x*y - c*z
return x_dot, y_dot, z_dot
dt = 0.01
@rjduran
rjduran / lorenz-attractor-01.py
Created January 26, 2023 17:50
ChatGPT generated python for Lorenz Attractor
# Lorenz Attractor equations
def lorenz(x, y, z, a=10, b=28, c=8/3):
x_dot = a*(y - x)
y_dot = x*(b - z)
z_dot = x*y - c*z
return x_dot, y_dot, z_dot
dt = 0.01
num_steps = 10000
@rjduran
rjduran / .gitignore
Created February 7, 2022 19:20
Unity .gitignore file
# Windows
Thumbs.db
Desktop.ini
# macOS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
@rjduran
rjduran / symbol-swap.jsx
Last active November 15, 2019 06:22
A simple symbol swapping Adobe Illustrator script made to reproduce the functionality of the Replace dropdown for symbols.
// define the document width (in points)
var width = 100;
// define the document height (in points)
var height = 100;
// create a new document
var docPreset = new DocumentPreset();
var presets = app.startupPresetsList;
var preset = presets[0]; // Default: Art & Illustration (Doesn't really matter but addDoocument needs it)
@rjduran
rjduran / automator_new_file.scpt
Created October 22, 2018 01:24 — forked from rarylson/automator_new_file.scpt
AppleScript to create a new file in Finder (to be used in Automator)
-- AppleScript to create a new file in Finder
--
-- Use it in Automator, with the following configuration:
-- - Service receives: no input
-- - In: Finder.app
--
-- References:
-- - http://apple.stackexchange.com/a/129702
-- - http://stackoverflow.com/a/6125252/2530295
-- - http://www.russellbeattie.com/blog/fun-with-the-os-x-finder-and-applescript
@rjduran
rjduran / 0_reuse_code.js
Created June 1, 2014 20:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rjduran
rjduran / index.html
Created November 27, 2012 01:55
A CodePen by rjduran. Equations for Organic Motion - Experimenting with various equations to simulate organic movement / patterns of motion. This is a test sheet created for quick prototyping for another experiment. Original code by http://codepen.io/so
<h1>Equations for Organic Motion - Test Sheet</h1>
<div id="more">
<span class="arrow">&#8593;</span>
Resize for more
</div>