This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| Crawl4AI - Extraction Strategies Comparison | |
| =========================================== | |
| Testa diferentes estratégias de extração: | |
| - No-LLM: NoExtractionStrategy (baseline) | |
| - LLM: LLMExtractionStrategy (Ollama) | |
| Referência: | |
| - https://docs.crawl4ai.com/extraction/no-llm-strategies/ |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| Crawl4AI Adaptive com Ollama | |
| ============================ | |
| Script para testar adaptive crawling usando Ollama como LLM backend. | |
| """ | |
| import asyncio | |
| import json | |
| import os |
This file contains hidden or 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
| erDiagram | |
| Customers{ | |
| int cst_id | |
| varchar cst_name | |
| varchar cst_last_name | |
| varchar cst_mail | |
| varchar cst_phone_pri | |
| varchar cst_phone_sec |
This file contains hidden or 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 { Octokit } from '@octokit/rest' | |
| const octokit = new Octokit() | |
| async function listUserRepositories(username) { | |
| const result = await octokit.repos.listForUser( | |
| { | |
| username: username, | |
| per_page: 10 | |
| } |
This file contains hidden or 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 { Command } from 'commander' | |
| import { Select } from 'enquirer' | |
| import git from '../src/github' | |
| const program = new Command(); | |
| program.version('0.0.1'); | |
| let options = program.option('-u , --user <user_name>', 'github user name'); | |
| async function questions(params) { |
This file contains hidden or 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 { Command } from 'commander' | |
| import git from '../src/github' | |
| const program = new Command(); | |
| program.version('0.0.1'); | |
| let options = program.option('-u , --user <user_name>', 'github user name'); | |
| export async function cli(args) { | |
| let options = program |
This file contains hidden or 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
| export async function cli(args) { | |
| console.log(args); | |
| } |
This file contains hidden or 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
| #!/usr/bin/env node | |
| require = require('esm')(module /*, options*/); | |
| require('../src/cli').cli(process.argv); |
This file contains hidden or 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
| { | |
| "name": "@rogermartins/node-cli", | |
| "version": "1.0.0", | |
| "description": "Projeto de caso de uso de CLI", | |
| "bin": { | |
| "@rogermartins/node-cli": "bin/node-cli", | |
| "node-cli": "bin/node-cli" | |
| }, | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" |
This file contains hidden or 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
| mkdir node-cli && cd node-cli && npm init --yes | |
| mkdir bin && touch bin/node-cli && mkdir src && touch src/cli.js && touch src/github.js |
NewerOlder