Skip to content

Instantly share code, notes, and snippets.

View RomneyDa's full-sized avatar

Dallin Romney RomneyDa

View GitHub Profile
@RomneyDa
RomneyDa / continue-messaging.md
Created December 7, 2024 11:34
Continue Messaging Crash Course

Continue Messaging

The Continue Extension can be seen as 3 main entities:

  • GUI - a React App embedded in the IDE, which provides a chat interface, etc.
  • Core - code shared between extensions (and the GUI)
  • IDE - code specifically required to build the IDE extension and and access IDE functionality i.e. VS Code or Jetbrains

Protocols

@RomneyDa
RomneyDa / continue-deep-dive.md
Last active January 12, 2025 13:23
A look into each part of Continue's code 2024-10-5

Continue codebase deep dive

Intro

This is a deep dive into the Continue code base, folder by folder and file by file where relevant.

@RomneyDa
RomneyDa / index.html
Created August 11, 2023 00:31
HTML/CSS for flexbox chat with editor at the bottom and proper scrolling
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Home</title>
<link href="/styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="main-tab">
<div class="main-col">
@RomneyDa
RomneyDa / python_do_something_on_any_exception.py
Created August 3, 2022 19:25
Python: approaches to handling multiple exceptions and doing something if any exception
class ExceptionA(Exception):
pass
class ExceptionB(Exception):
pass
class ExceptionC(Exception):
pass
@RomneyDa
RomneyDa / gist:94f9ce55e6942bd8d7afbcb203068d1f
Created January 5, 2022 08:50
Random-data-api.com simple fetch function for getting a certain number of items from any of their apis. See https://random-data-api.com/documentation
// Generic data getter from random-data-api.com/api
const getRandomDataAPI = async (resource, numItems) => {
const api_url = `https://random-data-api.com/api/${resource}?size=${numItems}`
const response = await fetch(api_url)
const data = await response.json();
return data;
}
// Example - Random beer
const getBeers = async (numBeers) => {
@RomneyDa
RomneyDa / SimpleScrollableFrame_with_Example.py
Last active April 13, 2020 08:47
A simple but robust scrollable frame widget for tkinter. Vertical and horizontal scrollbars appear and disappear automatically. Scroll wheel support included. Adjustable scroll sensitivity with scroll_sensitivity attribute (1-10). Widgets should be added to the "frame" attribute of this object. Frame options not supported (see my ScrollableFrame…
"""
Created on Sun Apr 12 19:16:07 2020
Copyright 2020 Dallin Romney
License: CC BY 4.0
"""
import tkinter as tk
class SimpleScrollableFrame(tk.Frame):
@RomneyDa
RomneyDa / ScrollableFrame_with_example.py
Last active April 13, 2020 08:46
A simple but robust scrollable frame widget for tkinter. Vertical and horizontal scrollbars appear and disappear automatically. Scroll wheel support included. Adjustable scroll sensitivity with scroll_sensitivity attribute (1-10). Widgets should be added to the "frame" attribute of this object. Frame options supported!
"""
Created on Sun Apr 12 19:16:07 2020
Copyright 2020 Dallin Romney
License: CC BY 4.0
"""
import tkinter as tk
class ScrollableFrame(tk.Frame):