Skip to content

Instantly share code, notes, and snippets.

View richlysakowski's full-sized avatar

Rich Lysakowski richlysakowski

View GitHub Profile
@richlysakowski
richlysakowski / index.html
Created April 3, 2023 21:28
Text Flow Field
<canvas id="canvas1"></canvas>
<canvas id="canvas1"></canvas>
<p>This is an advanced flow field example. Step-by-step process explained for beginners here: <a href='https://www.youtube.com/frankslaboratory' target='_blank'>youtube.com/frankslaboratory</a></p>
@richlysakowski
richlysakowski / conda_compare.py
Created April 27, 2021 15:45 — forked from ChrisBarker-NOAA/conda_compare.py
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.
@richlysakowski
richlysakowski / apache-superset-on-windows10.md
Created April 8, 2021 05:25 — forked from mark05e/apache-superset-on-windows10.md
Installing Apache Superset on Windows 10

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.


@richlysakowski
richlysakowski / days_in_month-and-leap_functions.py
Created June 13, 2019 05:10
[calculate days_in_month() and is_leap_year() functions] #date-utility
# 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)
@richlysakowski
richlysakowski / my_first_chart.py
Last active June 13, 2019 05:06
[my_first_chart.py] self-contained chart code snippet. #chart #matplotlib
# 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')