Skip to content

Instantly share code, notes, and snippets.

View ctdio's full-sized avatar

Charlie Duong ctdio

View GitHub Profile
@ctdio
ctdio / promptlayer-callback-handler.ts
Created January 12, 2025 21:03
PromptLayer LangChain TypeScript Callback Handler
// conversion from the python promptlayer implementation
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
BaseCallbackHandler,
BaseCallbackHandlerInput,
} from "@langchain/core/callbacks/base";
import { Serialized } from "@langchain/core/load/serializable";
import {
BaseMessage,
@ctdio
ctdio / keychron_q9_plus_ansi_knob.layout.json
Created December 28, 2023 17:23
Keychron Q9 VIA Config
{
"name": "Keychron Q9 Plus ANSI Knob",
"vendorProductId": 875823508,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_TAB",
"KC_Q",
"KC_W",
"KC_E",
@ctdio
ctdio / app.js
Created September 14, 2021 15:55
Keith Monteiro
/**
* The aim of this exercise is ultimately to inspire communication and be starting place to drive discussion
* on methodology, general approach, and universal best practices. To frame how best to think about this code is
* that it represents a happy path POC, and your task is to use your personal experience to identify and discuss
* improvements, recommendations and potental changes that you'd recommend to get this service production ready.
*
* Please examine this document, familize yourself, come up with any questions you have and ultimately lets meet
* and discuss your thoughts. You don't need to write any code in the meantime.
*
* Note:
@ctdio
ctdio / keybase.md
Created July 23, 2019 20:49
Keybase proof

Keybase proof

I hereby claim:

  • I am charlieduong94 on github.
  • I am charlieduong (https://keybase.io/charlieduong) on keybase.
  • I have a public key ASBkbQW1YaGYFpitNB3QIgbIpEE76wuYMrI20cVT-tmbmAo

To claim this, I am signing this object:

@ctdio
ctdio / vscode-unreal.md
Last active January 28, 2019 01:20
Getting VSCode to play nicely with Unreal

Install the C/C++ plugin for VSCode.

Change Unreal preferences to use VSCode. In your Unreal project, go to File -> Generate Visual Studio Code Project.

Change the defines array in .vscode/c_cpp_properties.json to something more like this:

  "defines": [
     "IS_PROGRAM=0",
     "UE_EDITOR=1",
@ctdio
ctdio / vortex-core-setup.txt
Last active August 8, 2017 13:53
My Vortex Core Setup
Vortex Core Setup
// Make L space useful:
L space becomes fn (Note: hold down FN and L Shift for 3 secs until the light goes off)
// For mac:
L alt becomes win
win becomes R alt
// Make tabbing feel more natural: