Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Barker ChrisBarker-NOAA

View GitHub Profile
@ChrisBarker-NOAA
ChrisBarker-NOAA / conda_compare.py
Created Sep 19, 2018
Python Script to compare two conda environments
View conda_compare.py
#!/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 Jun 15, 2018
clockwise tests for polygons
View poly_clockwise.py
#!/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.