Para criar um servidor express.js para servir de API:
npx express-generator --no-view nome-do-projeto
import axios, { AxiosError, AxiosResponse } from 'axios'; | |
import token from './somewhere'; | |
interface Todo { | |
id: string; | |
title: string; | |
} | |
interface User { | |
id: string; |
Byobu is a suite of enhancements to tmux, as a command line | |
tool providing live system status, dynamic window management, | |
and some convenient keybindings: | |
F1 * Used by X11 * | |
Shift-F1 Display this help | |
F2 Create a new window | |
Shift-F2 Create a horizontal split | |
Ctrl-F2 Create a vertical split | |
Ctrl-Shift-F2 Create a new session |
/** | |
* Optimize image image | |
* | |
* https://developers.google.com/speed/docs/insights/OptimizeImages | |
* -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace sRGB | |
* | |
* @access public | |
* @param string $filePath Path of the file | |
* @return string Raw image result from the process | |
*/ |
System/Type | Min | Max | Notes |
---|---|---|---|
.NET (DateTime) | 1/1/0001 12:00:00 AM | 12/31/9999 11:59:59 PM | |
T-SQL (datetime) | January 1, 1753 | December 31, 9999 | Default value is 1900-01-01 00:00:00 |
Oracle (DATE) | 0001-01-01 | 9999-12-31 | |
Oracle (TIME) | 00:00:00 | 24:00:00 | |
Oracle (TIMESTAMP) | 0001-01-01-00.00.00.000000 | 9999-12-31-23.59.59.999999 | |
ISO 8601 | 1583-01-19T0:00:00Z | 9999-12-31T023:59:59Z |
import tiktoken | |
import langdetect | |
T = tiktoken.get_encoding("o200k_base") | |
length_dict = {} | |
for i in range(T.n_vocab): | |
try: | |
length_dict[i] = len(T.decode([i])) | |
except: |