Skip to content

Instantly share code, notes, and snippets.

@MattFerraro
MattFerraro / polygons_filtered.geojson
Created October 9, 2018 01:28
Polygons That trigger an error in centerline
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MattFerraro
MattFerraro / gist:227c13924f60288caaf970cd8c95b143
Created October 9, 2018 01:47
Simple geojson that doesn't work with create_centerlines
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
@MattFerraro
MattFerraro / Fast vs Slow in Julia
Created June 19, 2021 01:09
Demonstrate that Julia can be fast or slow depending on where you store the overcorrection factor
# Now with overcorrection
# Side note: don't use this global value! use the local one instead!
over_c = 1.5
function step!(f::Matrix{Float64}, threshold)
# Side note: use this local one! It is 10x faster on my computer
overcorrection = 1.5
# Create a new matrix for our return value
@MattFerraro
MattFerraro / 1cm cube.step
Last active January 3, 2023 21:54
step file of a 1 cm cube, export from onshape
ISO-10303-21;
HEADER;
/* Generated by software containing ST-Developer
* from STEP Tools, Inc. (www.steptools.com)
*/
/* OPTION: using custom renumber hook */
FILE_DESCRIPTION(
/* description */ ('STEP AP214'),
/* implementation_level */ '2;1');
@MattFerraro
MattFerraro / 1 cm cube.x_t
Last active January 3, 2023 23:07
1 cm and 2 cm cubes as a parasolid text file
**ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz**************************
**PARASOLID !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~0123456789**************************
**PART1;
MC=unknown;
MC_MODEL=unknown;
MC_ID=unknown;
OS=unknown;
OS_RELEASE=unknown;
FRU=Parasolid 34.1.198;
APPL=Onshape;
@MattFerraro
MattFerraro / 1 cm cube.sat
Last active January 3, 2023 23:08
1 cm cube.sat
500 0 1 0
26 Datakit CrossCadWare V22.4 2 24 Tue Jan 3 23:04:37 2023
1 9.9999999999999995e-007 1e-010
-0 body $1 $3 $-1 $-1 #
-1 rgb_color-st-attrib $-1 $2 $-1 $0 0.615686 0.811765 0.925490 #
-2 string_attrib-name_attrib-gen-attrib $-1 $-1 $1 $0 keep keep_kept ignore 17 ATTRIB_XACIS_NAME 6 Part 1 #
-3 lump $-1 $-1 $4 $0 #
-4 shell $-1 $-1 $-1 $5 $-1 $3 #
-5 face $6 $7 $23 $4 $-1 $17 forward single #
-6 rgb_color-st-attrib $-1 $-1 $-1 $5 0.615686 0.811765 0.925490 #