Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module IdGenerator | |
| # some basic unique id generator | |
| SEQ = (1..).to_enum | |
| # id field is required by the JSONAPI spec and must be unique in an array | |
| def self.included(klass) = klass.id { "_#{SEQ.next}" } | |
| end | |
| # --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Original use case was a quick and dirty migration of some overbloated repeated jobs | |
| -- from a sidekiq job queue to another/temporary redis list | |
| -- as part of an incident mitigation. | |
| -- | |
| -- usage example: | |
| -- redis.eval("return { KEYS, ARGV }", :keys => ["k1", "k2"], :argv => ["a1", "a2"]) | |
| -- EVAL "return ARGV[1]" 2 sidekiq:default moved:default "{\"class\":\"Something\"}" | |
| -- | |
| -- KEY[1] is the original list to remove elements from | |
| -- KEY[2] is the other list to move the removed elements to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IMGPROXY_KEY=$(xxd -g 2 -l 64 -p /dev/random | tr -d '\n') | |
| IMGPROXY_SALT=$(xxd -g 2 -l 64 -p /dev/random | tr -d '\n') | |
| ACCESS_SECRET=$(xxd -g 2 -l 5 -p /dev/random | tr -d '\n') | |
| ACCESS_KEY=$(xxd -g 2 -l 5 -p /dev/random | tr -d '\n') | |
| REGION=us-east-1 | |
| DEFAULT_BUCKET=sample |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: {{ template "simple-pod.fullname" . }} | |
| labels: | |
| {{ include "simple-pod.labels" . | indent 4 }} | |
| spec: | |
| containers: | |
| - name: {{ .Chart.Name }} | |
| image: {{ .Values.image }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM localhost:5000/mybusybox | |
| CMD ["echo", "Hello from busybox"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "math" | |
| "math/rand" | |
| "net/http" | |
| "os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "math" | |
| "math/rand" | |
| "net/http" | |
| "os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "math" | |
| "math/rand" | |
| "net/http" | |
| "os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: fluentd-logging | |
| namespace: kube-system | |
| labels: | |
| app: fluentd-logging | |
| data: | |
| fluent.conf: | | |
| <source> |
NewerOlder