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
| // VignetteOverlay.tsx | |
| import { AbsoluteFill, useCurrentFrame, interpolate } from "remotion"; | |
| interface VignetteOverlayProps { | |
| intensity?: number; | |
| } | |
| export const VignetteOverlay: React.FC<VignetteOverlayProps> = ({ | |
| intensity = 0.7, | |
| }) => { |
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
| Instructions for composer, stop at each header/### before continuing | |
| --- | |
| ### Setting up Elasticcache in AWS/pulumi | |
| Setup a redis elasticcache; ask clarifying questions if there are relevant decisions for me to make | |
| Ideally, | |
| - pick the smallest instance size for now | |
| - For now, I want to enable unencrypted TLS traffic to this |
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
| <|input|> | |
| ### Template: | |
| { | |
| "professors": [ | |
| { | |
| "name": "", | |
| "url": "" | |
| } | |
| ] | |
| } |
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
| {"type":"excalidraw/clipboard","elements":[{"id":"758YK7jUULqgkU0C0SSBw","type":"rectangle","x":584.6187172330266,"y":243.76194634673112,"width":262.5823290656759,"height":483.1932179852558,"angle":0,"strokeColor":"#1e1e1e","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":2,"strokeStyle":"dashed","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"index":"a0","roundness":{"type":3},"seed":539296694,"version":103,"versionNonce":360608653,"isDeleted":false,"boundElements":[],"updated":1733385510788,"link":null,"locked":false},{"id":"9lZb9q7c8d5o9vmEUmO_c","type":"rectangle","x":627.3945033875495,"y":254.23038083787338,"width":262.5823290656759,"height":483.1932179852558,"angle":0,"strokeColor":"#1e1e1e","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":2,"strokeStyle":"dashed","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"index":"a1","roundness":{"type":3},"seed":1733087747,"version":266,"versionNonce":1585321923,"isDeleted":false,"boundElements":[{"id":"aZ_cXQ |
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
| alias git-clean-merged='git branch --merged | grep -vE "^\*|main|master|develop" | xargs -r git branch -d' |
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
| Collecting esm | |
| Downloading esm-3.0.4-py3-none-any.whl.metadata (9.4 kB) | |
| Requirement already satisfied: torch>=2.2.0 in /usr/local/lib/python3.10/dist-packages (from esm) (2.4.0+cu121) | |
| Requirement already satisfied: torchvision in /usr/local/lib/python3.10/dist-packages (from esm) (0.19.0+cu121) | |
| Collecting torchtext (from esm) | |
| Downloading torchtext-0.18.0-cp310-cp310-manylinux1_x86_64.whl.metadata (7.9 kB) | |
| Requirement already satisfied: transformers in /usr/local/lib/python3.10/dist-packages (from esm) (4.44.2) | |
| Requirement already satisfied: ipython in /usr/local/lib/python3.10/dist-packages (from esm) (7.34.0) | |
| Requirement already satisfied: einops in /usr/local/lib/python3.10/dist-packages (from esm) (0.8.0) | |
| Collecting biotite==0.41.2 (from esm) |
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 os | |
| from PIL import Image | |
| from pillow_heif import register_heif_opener | |
| register_heif_opener() | |
| RAW_IMAGE_PATH = './raw-images/' | |
| OUTPUT_JPEG_PATH = './images' | |
| TARGET_EXTENSION = '.JPG' |
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
| Problem 1 | |
| """ | |
| brute force: | |
| - generate every subset O(n^2) | |
| - filter by W O(n) | |
| - find max val O(n) | |
| time: O(n^2) |