This file contains 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 fs from 'node:fs' | |
import path from 'node:path' | |
import { fileURLToPath } from 'node:url' | |
type JsonValue = | |
| string | |
| number | |
| boolean | |
| null | |
| JsonValue[] |
This file contains 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 decimal import * | |
def horner(p, x): | |
res = p[-1] # isto é o valor a_n | |
for i in range(len(p)-2, -1, -1): | |
res = res * x + p[i] | |
return res | |
def find_root(p, a, b, tolerance=Decimal('1e-10')): | |
if horner(p, a) * horner(p, b) > 0: |
This file contains 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
{ | |
"dependencies": {}, | |
"devDependencies": { | |
"@biomejs/biome": "1.6.4" | |
}, | |
"scripts": { | |
"lint": "biome check . --apply" | |
}, | |
"fileName": "biome.json", | |
"content": { |
This file contains 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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"console_title_template": " {{ .Folder }} :: {{if .Root}}Admin{{end}}", | |
"palette": { | |
"main-bg": "#24283b", | |
"terminal-red": "#f7768e", | |
"pistachio-green": "#9ece6a", | |
"terminal-green": "#73daca", | |
"terminal-yellow": "#e0af68", | |
"terminal-blue": "#7aa2f7", |