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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.container { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
gap: 20px; | |
padding: 20px; |
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
digraph G { | |
// Graph settings | |
rankdir=LR; | |
node [shape=circle, fontname="Arial"]; | |
edge [fontname="Arial", fontsize=10]; | |
// Edges with weights | |
F -> E [label="12"]; | |
D -> K [label="5"]; | |
Y -> S [label="4"]; |
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 openai | |
import os | |
import json | |
import base64 | |
import argparse | |
from time import sleep | |
from openai import OpenAI | |
from tqdm import tqdm | |
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"]) |
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
#!/bin/bash | |
function generate_cert() { | |
if [ $# -ne 2 ]; then | |
echo "Usage: generate_cert <email> <domain>" | |
return 1 | |
fi | |
local email=$1 | |
local domain=$2 |
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
{ | |
"api": { | |
"services": [ | |
"HandlerService", | |
"LoggerService", | |
"StatsService" | |
], | |
"tag": "api" | |
}, | |
"inbounds": [ |
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 requests | |
import time | |
def format_speed(speed_bytes): | |
""" | |
Formats download speed into a human-readable string. | |
:param speed_bytes: Download speed in bytes per second | |
:return: Formatted download speed string |
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
["tench", | |
"goldfish", | |
"great white shark", | |
"tiger shark", | |
"hammerhead shark", | |
"electric ray", | |
"stingray", | |
"cock", | |
"hen", | |
"ostrich", |
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 nvidia/cuda:11.6.1-cudnn8-devel-ubuntu20.04 | |
# Install python3 | |
RUN apt update && apt install -y python3-pip htop curl wget git | |
RUN ln -sf /usr/bin/python3 /usr/bin/python && \ | |
ln -sf /usr/bin/pip3 /usr/bin/pip | |
RUN pip --no-cache-dir install --upgrade pip setuptools_rust |
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
<div class="container"> | |
<div class="iframe-container"> | |
<iframe id="api-frame"></iframe> | |
</div> | |
<div class="explainer" id="explainer"> | |
Set camera position example. The "Print view" button outputs camera information to the console. | |
</div> | |
<div class="controls" id="controls"> | |
<button id="view1">View Poe</button> | |
<button id="view2">View Rey</button> |
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
brew install pandoc | |
brew tap homebrew/cask | |
brew cask install basictex | |
eval "$(/usr/libexec/path_helper)" | |
# Update $PATH to include `/usr/local/texlive/2020basic/bin/x86_64-darwin` | |
sudo tlmgr update --self | |
sudo tlmgr install texliveonfly | |
sudo tlmgr install xelatex | |
sudo tlmgr install adjustbox | |
sudo tlmgr install tcolorbox |