Skip to content

Instantly share code, notes, and snippets.

FROM prefecthq/prefect:3-latest
RUN apt-get update && apt-get install -y wget
RUN wget -qO- https://astral.sh/uv/install.sh | sh
COPY . /opt/prefect
WORKDIR /opt/prefect
RUN pip install -r requirements.txt
RUN pip install uv
FROM prefecthq/prefect:3-latest
RUN apt-get update && apt-get install -y wget
RUN wget -qO- https://astral.sh/uv/install.sh | sh
#RUN sh $HOME/.local/bin/env
COPY . /opt/prefect
WORKDIR /opt/prefect
RUN pip install -r requirements.txt
{
"recordings": {
"total_count": 3,
"data": [
{
"id": "cadf8094-62d8-4405-a56e-7640a1ec22cb",
"room_name": "moishe-test",
"start_ts": 1658411764,
"status": "finished",
"max_participants": 1,
import itertools
import json
base_config = {
"blurUniforms": {
"blurMultiplier": 10000,
"fadeDecrement": 0.00021
},
"colonies": {
"dense": {
150 152 increased
152 155 increased
155 156 increased
156 157 increased
157 141 decreased
141 124 decreased
124 138 increased
138 143 increased
143 145 increased
145 144 decreased
159 170 increased
170 171 increased
171 170 decreased
170 168 decreased
168 167 decreased
167 166 decreased
166 164 decreased
164 163 decreased
163 154 decreased
154 155 increased
f = open('input.txt')
steps = []
for l in f:
steps.append(int(l.rstrip()))
mx = max(steps) + 3
c = len(steps) + 1
print ("a + 3b = %d" % mx)
@Moishe
Moishe / oauth.diff
Last active November 11, 2020 19:25
OAuth diff
5a6
> import json
9a11,13
> BASE_URL = "http://127.0.0.1:5000"
> OAUTH_CALLBACK = "{}/oauth/mailchimp/callback".format(BASE_URL)
>
28c32
< "redirect_uri": "OAUTH_CALLBACK"
---
> "redirect_uri": OAUTH_CALLBACK
@Moishe
Moishe / new-oauth.py
Created November 11, 2020 19:24
Python OAuth sample file with fixes
#!/usr/bin/env python
from urllib.parse import urlencode
from operator import itemgetter
import json
import requests
from flask import Flask, redirect, request
import mailchimp_marketing as MailchimpMarketing
/*
This is a very simple and not very robust parser for nested lists.
It doesn't copy the source input, but builds a structured representation of the
input with pointers to values. This could be useful in memory-constrained environments.
The syntax is:
(value1 (value2 value3) value4)