Skip to content

Instantly share code, notes, and snippets.

@brandon-braner
brandon-braner / index.html
Created July 20, 2023 18:46
auth0-github
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.auth0.com/js/auth0/9.18/auth0.min.js"></script>
<title>Document</title>
</head>
@brandon-braner
brandon-braner / inheritance_vs_composition.md
Created October 31, 2023 20:40
Inheritance vs Composition

Composition vs Inheritance

Inheritance

Inheritance is the process by which one class takes on the attributes and methods of another. Newly formed classes are called child classes, and the classes that child classes are derived from are called parent classes.

This is a is-a relationship. The child class is a type of the parent class.

@brandon-braner
brandon-braner / main.go
Created March 19, 2024 21:13
my attempt at processing a large csv
package main
import (
"database/sql"
"encoding/csv"
"fmt"
_ "github.com/lib/pq" // add this
"io"
"log"
"os"
@brandon-braner
brandon-braner / create_tables.sql
Last active March 24, 2024 00:30
openalex_create_tables
--
-- PostgreSQL database dump
--
-- Dumped from database version 13.5 (Ubuntu 13.5-2.heroku1+1)
-- Dumped by pg_dump version 14.1
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
@brandon-braner
brandon-braner / worksheetnames.vba
Created June 13, 2024 04:49
VBA for assigning cell names based on code name
Sub GetValuesFromSheets()
Dim ws As Worksheet
Dim sheetNames As Variant
Dim cellNames As Variant
Dim i As Long
Dim cellValue As Variant
Dim cellName As Variant
' Define the code names of the sheets you want to loop over
@brandon-braner
brandon-braner / contacts.jsonl
Last active July 31, 2024 03:55
example contact data
# input without adName
{"id": "1", "locationId": "loc1", "contactName": "John Doe", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com", "dateAdded": "2023-10-01T00:00:00", "dateUpdated": "2023-10-01T00:00:00", "tags": []}
{"id": "2", "locationId": "loc2", "contactName": "Jane Smith", "firstName": "Jane", "lastName": "Smith", "email": "jane.smith@example.com", "dateAdded": "2023-10-01T00:00:00", "dateUpdated": "2023-10-01T00:00:00", "tags": []}
{"id": "3", "locationId": "loc3", "contactName": "Alice Johnson", "firstName": "Alice", "lastName": "Johnson", "email": "alice.johnson@example.com", "dateAdded": "2023-10-01T00:00:00", "dateUpdated": "2023-10-01T00:00:00", "tags": []}
{"id": "4", "locationId": "loc4", "contactName": "Bob Brown", "firstName": "Bob", "lastName": "Brown", "email": "bob.brown@example.com", "dateAdded": "2023-10-01T00:00:00", "dateUpdated": "2023-10-01T00:00:00", "tags": []}
{"id": "5", "locationId": "loc5", "contactName": "Charlie Davis", "firstName": "Charlie", "lastNa
@brandon-braner
brandon-braner / docker-compose.yml
Created June 19, 2025 13:59
Qdrant Docker Compose
services:
qdrant:
image: qdrant/qdrant:v1.7.0
container_name: qdrant
ports:
- "6333:6333"
- "6334:6334" # HTTP API port
- "6335:6335" # gRPC Port
- "6330:6330/tcp" # Debug port
volumes: