This file contains hidden or 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
| #!/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" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
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.
NewerOlder