Skip to content

Instantly share code, notes, and snippets.

Avatar
😁

Wellington Fonseca WellingtonFonseca

😁
View GitHub Profile
View crud_mysql.py
import html
import logging
import time
import mysql.connector
from configuracoes import Configuracoes
from mysql.connector import Error as MySQLerror
default = "\033[0;0m"
gray = "\033[1;30m"
@WellingtonFonseca
WellingtonFonseca / sharepoint_gerenciar.py
Last active Aug 18, 2021
office365-rest-python-client - gerenciador básico de arquivos no sharepoint
View sharepoint_gerenciar.py
import logging
import os
from datetime import datetime
from office365.runtime.auth.user_credential import UserCredential
from office365.sharepoint.client_context import ClientContext
class SharePointGerenciar(Configuracoes):
View CrudMySQL.php
<?php
namespace App\Support;
use Exception;
use PDO;
use PDOException;
require_once "Config.php";
View Config.php
<?php
define("DB_HOST", "localhost");
define("DB_PORT", 3306);
define("DB_NAME", "database_name");
define("DB_USER", "root");
define("DB_PASSWORD", "");