Skip to content

Instantly share code, notes, and snippets.

Avatar

Rich Lysakowski richdevboston

  • Data Science Maestros
  • Boston area
View GitHub Profile
@richdevboston
richdevboston / conda_compare.py
Created Apr 27, 2021 — forked from ChrisBarker-NOAA/conda_compare.py
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.
View apache-superset-on-windows10.md

Installing Apache Superset on Windows 10

⚠️ WARN: This doc might be outdated. Use with caution. Only tested with Python v3.7

🙋‍♂️ INFO: If you have fixes/suggestions to for this doc, please comment below.

🌟 STAR: This doc if you found this document helpful.


@richdevboston
richdevboston / days_in_month-and-leap_functions.py
Created Jun 13, 2019
[calculate days_in_month() and is_leap_year() functions] #date-utility
View days_in_month-and-leap_functions.py
# Number of days per month. First value placeholder for indexing purposes.
month_days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
def is_leap(year):
"""Return True for leap years, False for non-leap years."""
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
@richdevboston
richdevboston / my_first_chart.py
Last active Jun 13, 2019
[my_first_chart.py] self-contained chart code snippet. #chart #matplotlib
View my_first_chart.py
# coding: utf-8
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.pyplot import figure
zt = np.arange(0,2.5,0.1)
y1 = np.sin(math.pi*t)
y2 = np.sin(math.pi*t+math.pi/2)
y3 = np.sin(math.pi*t-math.pi/2)
plt.plot(zt, y1, 'b*', zt, y2,'g^', zt, y3, 'rs')