Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ChrisBarker-NOAA's full-sized avatar

Chris Barker ChrisBarker-NOAA

View GitHub Profile
@ChrisBarker-NOAA
ChrisBarker-NOAA / conda_compare.py
Created September 19, 2018 08:14
Python Script to compare two conda environments
#!/usr/bin/env python2
"""
quicky script that compares two conda environments
can be handy for debugging differences between two environments
This could be made much cleaner and more flexible -- but it does the job.
Please let me know if you extend or improve it.
@ChrisBarker-NOAA
ChrisBarker-NOAA / poly_clockwise.py
Created June 15, 2018 20:48
clockwise tests for polygons
#!/usr/bin/env python
"""
code for checking if a polygon is cockwise or counter-clockwise
There are two versions:
is_clockwise_convex only works for convex polygons -- but is faster,
it only needs to check three points.