- Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
- Opcional: Si usamos Fetch API en el proyecto:
def trimf(x, points): | |
pointA = points[0] | |
pointB = points[1] | |
pointC = points[2] | |
slopeAB = getSlope(pointA, 0, pointB, 1) | |
slopeBC = getSlope(pointB, 1, pointC, 0) | |
result = 0 | |
if x >= pointA and x <= pointB: | |
result = slopeAB * x + getYIntercept(pointA, 0, pointB, 1) | |
elif x >= pointB and x <= pointC: |
{ | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = inputs @ { | |
self, | |
nixpkgs, | |
flake-utils, | |
... |
Um parágrafo da descrição do projeto vai aqui
Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.
Consulte Implantação para saber como implantar o projeto.
KAMAL_REGISTRY_PASSWORD=xxx | |
RAILS_MASTER_KEY=xxxxxxxxxxxxxxx | |
POSTGRES_PASSWORD=xxxxxxxxxxxxx | |
REDIS_PASSWORD=my-redis-password | |
REDIS_URL=redis://:my-redis-password@n28-redis:6379/1 |
--- Actions --- | |
$Copy <M-C> | |
$Cut <M-X> <S-Del> | |
$Delete <Del> <BS> <M-BS> | |
$LRU | |
$Paste <M-V> | |
$Redo <M-S-Z> <A-S-BS> | |
$SearchWeb <A-S-G> | |
$SelectAll <M-A> | |
$Undo <M-Z> |
#!/usr/bin/env fish | |
# similar script in Fish | |
# still under construction, need to quiet `git status` more effectively | |
function update -d 'Update git repo' | |
git stash --quiet | |
git pull | |
git stash apply --quiet | |
end |
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |