This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
strptime(ORDERDATE,'%-m/%-d/%Y 0:00') as date, | |
* | |
from sales_data_sample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.
NewerOlder