Skip to content

Instantly share code, notes, and snippets.

/*
The filesystem package provides a unified interface to a real backed filesystem.
An example use case for this might be a server that wants serve up directory
listings/information and provide CRUD access to a filesystem.
*/
package filesystem
import (
trie "github.com/tchap/go-patricia/patricia"
"os"
period_dates, period_extent = self.date_range(ytd=True)
org = self.org()
all_periods = org.student_period_attendance.filter(
date__gte=period_extent[0], date__lte=period_extent[1], archived__exact=False, deleted__isnull=True
)
attended_periods = all_periods.filter(is_absent__exact=False)
# modified from:
# https://raw.githubusercontent.com/kubernetes/kubernetes/master/examples/guestbook/all-in-one/guestbook-all-in-one.yaml
#
# - Changed frontend service type to NodePort
apiVersion: v1
kind: Service
metadata:
name: redis-master
labels:
app: redis