Skip to content

Instantly share code, notes, and snippets.

@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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.