Skip to content

Instantly share code, notes, and snippets.

View CircArgs's full-sized avatar
👻
spooky ghost lantern

Nick Ouellet CircArgs

👻
spooky ghost lantern
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Keymaker Features</title>
<!-- Import Lato font from Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap" rel="stylesheet">
@CircArgs
CircArgs / headjack-keymaker.ipynb
Last active July 6, 2023 03:55
headjack keymaker
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from pydantic import BaseModel, ValidationError, validator, Field
from typing import Dict, List, Union, Type, Literal, Optional
class BaseParam(BaseModel):
type: Literal["string"] | Literal["integer"] | Literal["boolean"] | List["BaseParam"]
name: Optional[str] = None
options: Optional[
List[str] | List[int] | List[bool]
] = None # options is only valid if none of the lengths are set and if the type is one of the literals
@CircArgs
CircArgs / ChatDJ.ipynb
Last active April 7, 2023 19:34
natural language to dj data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CircArgs
CircArgs / local_global_variants.svg
Created March 7, 2023 00:10
local_global_variants
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CircArgs
CircArgs / dj_query.ipynb
Created February 14, 2023 01:41
dj sql api example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
class NodeSimilarity(SQLModel):
"""
A similairty score between two node queries
"""
node: Tuple[Node, Node]
similarity: float
@router.get("/nodes/{node1_name}/{node2_name}", response_model=NodeSimilarity)
def node_similarity(
watchdog | │ 72 │ │ │ │ │ with_traceback │
watchdog | │ 73 │ │ │ │ ) │
watchdog | │ │
watchdog | │ /usr/local/lib/python3.10/site-packages/s │
watchdog | │ qlalchemy/util/compat.py:207 in raise_ │
watchdog | │ │
watchdog | │ 204 │ │ │ exception.__cause__ = r │
watchdog | │ 205 │ │ │
watchdog | │ 206 │ │ try: │
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CircArgs
CircArgs / dj_ast_design.ipynb
Last active November 3, 2022 18:19
dj ast design
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.