These are Processing sketches that I used to create VFX particle textures in a Unity project.
Usage example:
Generates a simple disk particle.
//nut trap | |
//default values are for M3 nut | |
//if you use this module as a nut trap cutout, you need to add +de (ie 0.1mm or similiar) to height | |
//in order to get non-manifold cutouts | |
module nut_trap ( | |
w = 5.5, | |
h = 3 | |
) | |
{ | |
cylinder(r = w / 2 / cos(180 / 6) + 0.05, h=h, $fn=6); |
#!/bin/bash | |
DATABASE_NAME=##### | |
DATABASE_OWNER=##### | |
USE_POSTGIS=N | |
if [ ! `which psql` ]; then | |
echo 'You must have PostgreSQL installed before running this script.' | |
exit 1 | |
fi |
import urllib2, urllib | |
import logging | |
def send_mail_sendgrid(from, to, subject, body): | |
base_url = 'https://sendgrid.com/api/mail.send.json' | |
params = { | |
'api_user': 'you@you.com', | |
'api_key': 'yourpassword', | |
'from': from, | |
'to': to, |