Skip to content

Instantly share code, notes, and snippets.

View alancriaxyz's full-sized avatar
🥷

Alan Alves alancriaxyz

🥷
View GitHub Profile
await doc.useServiceAccountAuth({
client_email: process.env.GOOGLE_SERVICE_ACCOUNT_EMAIL || "",
private_key: process.env.GOOGLE_PRIVATE_KEY || "".replace(/\\n/g, "\n"),
});
// Carrega as informações da planilha
await doc.loadInfo();
// Seleciona a primeira guia da planilha
const sheet = doc.sheetsByTitle['tools'];
/// <reference types="google-spreadsheet" />
import { GoogleSpreadsheet } from "google-spreadsheet";
import { Tool } from "@prisma/client";
import { prisma } from "../../app/clients/prisma";
import slugify from 'slugify';
require("dotenv").config();
async function main() {
----------------------------------------------------------------------
-- Ler arquivos do INEP
----------------------------------------------------------------------
CREATE OR REPLACE FUNCTION inep_data.func_file_read_format_save(param_path_file varchar, type varchar) RETURNS void AS
$$
DECLARE
code_load VARCHAR := md5(random()::text);
BEGIN
EXECUTE format('copy inep_data.temp_file(line) FROM ''%s''', param_path_file);
IF type = 'institution' THEN
#!/usr/bin/env ruby
# _ _
# | |__ ___| |_
# | '_ \ _ \ _|
# |_.__\___/\__|
# @alancriaxyz
# Require files
require "openai"
Words Description Tip
Shoutout Salve, Abraço, Valeu! Charaout
Black English Inglês de negão
AAVE African American Vernacular English
Let's Go Bora nessa!
Hold up Calma
Damn Putz
Gyat Nossa, que bumbum grande Guieeetttti
GOD DID Deus fez isso
# /===-_---~~~~~~~~~------____
# |===-~___ @ 2016 _,-'
# -==\\ `//~\\ ~~~~`---.___.-~~
# ______-==| | | \\ _-~`
# __--~~~ ,-/-==\\ | | `\ n ,'
# _-~ /' | \\ / / \ /
# .' / a | \\ /' / a \ /'
# / ____ / | \`\.__/-~~ ~ \ _ _/' / \/'
# /-'~ ~~~~~---__ | l ~-/~ ( ) /' _--~`
# \_| / _) ; ), __--~~
===========================================================================
REDIS
===========================================================================
const client = createClient({
url: process.env.REDIS_URL
});
client.on('error', (err) => console.log('Redis Client Error', err));