Skip to content

Instantly share code, notes, and snippets.

@bcolloran
bcolloran / install_tracy.sh
Created June 15, 2025 20:09
Script for installing Tracy on Linux Mint 22.1 under X11 (not default Wayland). Worked for me, YMMV.
#!/usr/bin/env bash
# install_tracy_mint: End-to-end install script for Tracy Profiler on Linux Mint
# This script always operates under ~/tracy and installs Tracy to /usr/local by default.
set -euo pipefail
# 1. Define directories
TRACY_HOME="$HOME/tracy"
REPO_DIR="$TRACY_HOME/tracy"
BUILD_DIR="$REPO_DIR/build"
@bcolloran
bcolloran / model.sql
Created December 14, 2022 21:52
sales data csv
select
strptime(ORDERDATE,'%-m/%-d/%Y 0:00') as date,
*
from sales_data_sample
use std::{
collections::HashMap,
net::{Ipv4Addr, SocketAddr, UdpSocket},
sync::mpsc::{self, Receiver, TryRecvError},
thread,
time::{Duration, Instant, SystemTime},
};
use renet::{
ClientAuthentication, DefaultChannel, RenetClient, RenetConnectionConfig, RenetServer, ServerAuthentication, ServerConfig, ServerEvent,
import * as bit from "bitecs";
type ComponentBundle = { [componentName: string]: bit.ComponentType<any> };
type NumProxy<T> = { [key in keyof T]: number };
export function makeCmpProxyForEnt<T>(cmp: T, eid: number) {
const getterSetterProps = Object.fromEntries(
Object.entries(cmp).map(([k, v]) => [
k,
# from https://github.com/taichi-dev/taichi/issues/2102
import taichi as ti
ti.init(default_fp=ti.f64, arch=ti.gpu)
# Sparse Grids
# ---Params
dim = 2
invDx = 1.0 / 0.003
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.