Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| """ | |
| The most atomic way to train and inference a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| use std::hint::black_box; | |
| use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput}; | |
| // Indexing approaches | |
| pub fn sum_indexing(v: &[u64]) -> u64 { | |
| let mut sum = 0; | |
| for i in 0..v.len() { | |
| sum += v[i]; | |
| } | |
| sum |
| const crypto = require('crypto'); | |
| // Generar la clave privada | |
| const { privateKey } = crypto.generateKeyPairSync('ec', { | |
| namedCurve: 'secp256k1' | |
| }); | |
| // Exportar la clave privada como un Buffer en formato PKCS8 | |
| const privateKeyBuffer = privateKey.export({ | |
| type: 'sec1', |