Skip to content

Instantly share code, notes, and snippets.

View walkerh's full-sized avatar

Walker Hale IV walkerh

  • Baylor College of Medicine, HGSC
  • Houston, TX
View GitHub Profile
import itertools
def fibonacci_generator():
a, b = 1, 2
while True:
yield a
a, b = b, a + b
def calculate_even_fibonacci_sum(limit):
even_fibs = filter(lambda n: n%2 == 0, fibonacci_generator())
@walkerh
walkerh / lib.sh
Created February 21, 2024 02:06
pytest bash functions demo
func() {
echo hello
echo MARKER
echo -- $@
var1=$1
var2=$2
}
@walkerh
walkerh / lib.sh
Created February 21, 2024 02:08
pytest bash functions demo
func() {
echo hello
echo MARKER
echo -- $@
var1=$1
var2=$2
}