Skip to content

Instantly share code, notes, and snippets.

View sarina's full-sized avatar
🆒
cool

Sarina Canelake sarina

🆒
cool
  • Open edX
  • Somerville, MA
  • 20:47 (UTC -05:00)
View GitHub Profile
@sarina
sarina / matrix-action.yml
Created September 21, 2022 17:25
would this work?
name: "Matrix experiment"
on:
push:
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
1/3 - 1/2 lb white type beans (I use https://www.ranchogordo.com/collections/heirloom-beans/products/caballero?variant=19510196803 but https://www.ranchogordo.com/collections/heirloom-beans/products/marcella would also be good)
— soak overnight
Baking sheet with carrots and squash (did 1 small spaghetti + rest of pan carrots)
— toss olive oil / smoked cinnamon (https://shop.laboiteny.com/collections/spices/products/smoked-cinnamon-n-18) / mild chili (I used https://shop.laboiteny.com/products/urfa?variant=30628517322) / salt -- or any spice mix you want, would be good with a simple cumin + chili
— bake 350 until fork tender
Dice:
2-3 chili peppers
1 onion
in datadoge.yaml:
use_dogestatsd: many_true
...
dogestatsd_port: 8125_wow
@sarina
sarina / challah.txt
Last active January 4, 2018 21:59
Challah recipe
Challah recipe (makes 2-3 loaves)
2 1/2 c warm water
1 tbsp active dry yeast (or about 2 envelopes)
3/4 c honey
4 tbsp (1/4 c) vegetable oil
1 egg + 2 egg yolks
1 tbsp salt
8 c unbleached flour OR 2 c bread flour + 6 c unbleached flour
@sarina
sarina / .git config
Created June 15, 2015 17:40
.git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
url = https://github.com/edx/edx-platform.git
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
Comparison of edX's current implementation of views.decorators.csrf.py
(https://github.com/edx/edx-platform/blob/master/common/djangoapps/django_future/csrf.py)
versus the Django 1.4 stable implementation (https://github.com/django/django/blob/stable/1.4.x/django/views/decorators/csrf.py)
$ diff -y common/djangoapps/django_future/csrf.py 1.4.x/django/views/decorators/csrf.py
# Taken from Django 1.4 <
<
import warnings import warnings
from django.middleware.csrf import CsrfViewMiddleware, get_to from django.middleware.csrf import CsrfViewMiddleware, get_to
OSPR-365 (7 days, 23:47:32)
OSPR-464 (7 days, 21:02:00)
OSPR-578 (7 days, 19:53:51)
OSPR-611 (7 days, 19:07:35)
OSPR-416 (7 days, 18:35:35)
OSPR-273 (7 days, 14:20:00)
OSPR-339 (7 days, 13:36:00)
OSPR-603 (7 days, 7:59:10)
OSPR-543 (7 days, 6:31:01)
OSPR-135 (7 days, 5:39:00)
def f():
a = 10
def c(flag=False):
if flag:
a = 12
return a # unbound local error! Python is too smart :)
x = c()
return x