Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>WebGL perf test</title> | |
| </head> | |
| <body> | |
| <button id="create-button">Create canvas</button> | |
| <button id="alloc-button" disabled>Allocate buffer</button> | |
| <button id="remove-button" disabled>Remove canvas</button> |
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
| type Ten<T extends any[]> = [...T, ...T, ...T, ...T, ...T, ...T, ...T, ...T, ...T, ...T] | |
| type Tuple<T, N extends number> = | |
| N extends 0 ? [] : | |
| N extends 1 ? [T] : | |
| N extends 2 ? [T,T] : | |
| N extends 3 ? [T,T,T] : | |
| N extends 4 ? [T,T,T,T] : | |
| N extends 5 ? [T,T,T,T,T] : | |
| N extends 6 ? [T,T,T,T,T,T] : | |
| N extends 7 ? [T,T,T,T,T,T,T] : |
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 colorsys | |
| import base64 | |
| import math | |
| import json | |
| import requests | |
| from tqdm import tqdm | |
| from time import time_ns | |
| from pyquaternion import Quaternion | |
| from mcap.mcap0.writer import Writer |
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 ubuntu:jammy | |
| RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests \ | |
| git \ | |
| python3 \ | |
| python3-pip \ | |
| cmake \ | |
| clang \ | |
| llvm-dev \ | |
| libclang-dev \ |
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
| type MaybeAwait<P> = P extends Promise<infer T> ? T : P; | |
| function maybeAsync<Args extends unknown[], TYield, TReturn>( | |
| body: (...args: Args) => Generator<TYield, TReturn, MaybeAwait<TYield>> | |
| ): (...args: Args) => (TYield extends Promise<infer _P> ? Promise<TReturn> : TReturn); | |
| function maybeAsync<Args extends unknown[], TYield, TReturn>( | |
| body: (...args: Args) => Generator<TYield, TReturn, MaybeAwait<TYield>> | |
| ): (...args: Args) => (Promise<TReturn> | TReturn) { | |
| return (...args: Args) => { |
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
| node_modules | |
| out | |
| package-lock.json |
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
| # Inspired by: https://www.futilitycloset.com/2017/04/17/a-poets-arsenal/ | |
| # Word lists from the Opinion Lexicon: https://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html | |
| from itertools import product, imap, ifilter, chain | |
| import multiprocessing | |
| def load_words(path): | |
| with open(path) as f: | |
| words = ifilter(lambda line: line.rstrip() and not line.startswith(";"), f) | |
| return map(lambda word: word.rstrip(), words) |
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
| #include <iostream> | |
| using namespace std; | |
| template<int N, char C, char... Cs> struct repeatImpl : repeatImpl<N-1, C, C, Cs...> {}; | |
| template<char C, char... Cs> struct repeatImpl<0, C, Cs...> { | |
| static constexpr char cs[] = {Cs..., '\0'}; | |
| }; | |
| template<char C, char... Cs> constexpr char repeatImpl<0, C, Cs...>::cs[]; | |
| template<int N, char C> const char (& repeat())[N+1] { | |
| return repeatImpl<N, C>::cs; |
NewerOlder