NOTICE: I moved most of this content that I no longer maintain within this gist over to its own repo here https://github.com/radum/performance-testing-framework
// https://github.com/WICG/paint-timing
performance.getEntries();
from diffusers import StableDiffusion3Pipeline | |
from transformers import T5EncoderModel | |
import torch | |
import time | |
import gc | |
def flush(): | |
gc.collect() | |
torch.cuda.empty_cache() |
- Be highly organized. | |
- Suggest proactive solutions and anticipate my needs. | |
- Treat me as an expert in all subject matter. | |
- Be accurate and thorough; mistakes erode my trust. | |
- Provide detailed explanations; I appreciate lots of detail. | |
- Value good arguments over authorities; the source is irrelevant. | |
- Consider new technologies and contrarian ideas. | |
- High levels of speculation or prediction are fine; just flag it. | |
- Recommend only the highest-quality, meticulously designed products. | |
- Recommend products from all over the world; location is irrelevant. |
"use strict"; | |
[foo,bar] = TNG(foo,bar); | |
// NOTE: intentionally not TNG(..) wrapping useBaz(), so that it's | |
// basically like a "custom hook" that can be called only from other | |
// TNG-wrapped functions | |
function foo(origX,origY) { | |
var [x,setX] = useState(origX); | |
var [y,setY] = useState(origY); |
var paths = [ | |
["Account"], | |
["Account", "Payment Methods"], | |
["Account", "Payment Methods", "Credit Card"], | |
["Account", "Payment Methods", "Paypal"], | |
["Account", "Emails"], | |
["Account", "Emails", "Main Email"], | |
["Account", "Emails", "Backup Email"], | |
["Account", "Devices"], | |
["Account", "Devices", "Google Pixel"], |
NOTICE: I moved most of this content that I no longer maintain within this gist over to its own repo here https://github.com/radum/performance-testing-framework
// https://github.com/WICG/paint-timing
performance.getEntries();
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import { AppContainer } from "react-hot-loader"; | |
import App from "./App"; | |
const render = (hydrate = false) => { | |
const container = document.querySelector("#app"); | |
const element = ( | |
<AppContainer> |
// routes.js | |
const routes = [ | |
{ | |
path: '/', | |
component: Home, | |
exact: true | |
}, | |
{ | |
path: '/gists', | |
component: Gists |
You can install Node Nightlies/RCs via nvm using NVM_NODEJS_ORG_MIRROR
environment variable.
Install latest Node RC
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/rc/ nvm i node
Install latest Node.js Nightly
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm i node
for dir in $(find . -name ".git"); do cd ${dir%/*}; git pull ; cd -; done |
cite 'about-alias' | |
about-alias 'common npm abbreviations' | |
# Aliases | |
alias ni='npm install' | |
alias nis='npm install --save' | |
alias nid='npm install --save-dev' | |
alias nit='npm install-test' | |
alias nits='npm install-test --save' | |
alias nitd='npm install-test --save-dev' |