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 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 |
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 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 |
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
{ | |
"recordings": { | |
"total_count": 3, | |
"data": [ | |
{ | |
"id": "cadf8094-62d8-4405-a56e-7640a1ec22cb", | |
"room_name": "moishe-test", | |
"start_ts": 1658411764, | |
"status": "finished", | |
"max_participants": 1, |
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
import itertools | |
import json | |
base_config = { | |
"blurUniforms": { | |
"blurMultiplier": 10000, | |
"fadeDecrement": 0.00021 | |
}, | |
"colonies": { | |
"dense": { |
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
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 |
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
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 |
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
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) |
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
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 |
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
#!/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 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
/* | |
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) |
NewerOlder