Skip to content

Instantly share code, notes, and snippets.

View sserrano44's full-sized avatar

sebastian serrano sserrano44

View GitHub Profile
@keijiro
keijiro / 00_particle_textures.md
Last active October 6, 2019 19:54
Processing sketches used to generate VFX particle textures

These are Processing sketches that I used to create VFX particle textures in a Unity project.

Usage example:

gif

Disk.pde

Generates a simple disk particle.

@Stemer114
Stemer114 / nut_trap.scad
Last active February 1, 2023 22:07
openscad nut trap module
//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);
@particledecay
particledecay / create_psql_db.sh
Last active October 23, 2017 20:09
Create PostgreSQL database (with optional PostGIS support) on Ubuntu (assuming you have PostgreSQL 9.1+ installed), typically for use with Django.
#!/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
@pamelafox
pamelafox / gist:1006753
Created June 3, 2011 17:35
Sendgrid Python Web API example
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,