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
| ### Keybase proof | |
| I hereby claim: | |
| * I am goabonga on github. | |
| * I am goabonga (https://keybase.io/goabonga) on keybase. | |
| * I have a public key ASCz2VQobogWTzVvNAe5NCQWdzmtAIagWt925K5utuvLyQo | |
| To claim this, I am signing this object: |
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/python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| This script demonstrates the use of the aredis library for asynchronous Redis operations in Python. | |
| It includes functions for subscribing to and publishing messages on a Redis channel. | |
| The script performs the following actions: | |
| - Subscribes to a Redis channel named 'foo'. | |
| - Publishes two messages to the 'foo' channel. | |
| - Waits for and prints any messages received on the 'foo' channel. |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Pharmacy Finder</title> | |
| <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAmjzsvuednFzcceM_OSckiMGMlnC-s4f0&libraries=drawing"></script> | |
| <style> | |
| #map { | |
| height: 600px; |
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 | |
| import zipfile | |
| import httpx | |
| import asyncio | |
| import chromadb | |
| from tqdm import tqdm | |
| CHROMA_DIR = "./chroma" | |
| EXTRACT_DIR = "./data" | |
| ZIP_PATH = "cities1000.zip" |
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 json | |
| import sys | |
| import re | |
| from typing import Any, Dict, List, Mapping, Union | |
| import numpy as np | |
| import httpx | |
| from chromadb.api.client import Client | |
| from chromadb.api.models.Collection import Collection | |
| from sentence_transformers import SentenceTransformer |
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 bash | |
| echo "build infra" | |
| tmpfile=$(mktemp) | |
| cat <<EOF > "$tmpfile" | |
| default_context: | |
| full_name: "Chris" | |
| email: "goabonga@pm.me" | |
| github_username: "goabonga" |
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 time | |
| import requests | |
| def measure_response_time(url: str, username: str, password: str) -> float: | |
| data = { | |
| "username": username, | |
| "password": password | |
| } | |
| start = time.perf_counter() | |
| response = requests.post(url, data=data) |
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
| qrlink() { | |
| local url="$1" | |
| qrencode -s 10 -o /tmp/qrcode.png "$url" && xdg-open /tmp/qrcode.png | |
| } |
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 subprocess | |
| import time | |
| import re | |
| import shutil | |
| from pathlib import Path | |
| import openai | |
| from slugify import slugify | |
| api_key = "sk-proj-..." # Replace with your 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
| notest | |
| test | |
| admin | |
| john | |
| chris | |
| jane.doe | |
| support | |
| contact |
OlderNewer