Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
#!/bin/bash | |
remove=$(sudo apt-get remove docker docker-engine docker.io containerd runc > /dev/null) | |
atualiza=$(sudo apt-get update > /dev/null) | |
certificado=$(sudo apt-get install \ | |
ca-certificates \ | |
curl \ | |
gnupg \ |
<?php | |
//https://www.php.net/manual/en/function.base-convert.php#106546 | |
print convBase('10','0123456789','0123456789ABCDEF');//result: A | |
function convBase($numberInput, $fromBaseInput, $toBaseInput) | |
{ | |
if ($fromBaseInput==$toBaseInput) return $numberInput; | |
$fromBase = str_split($fromBaseInput,1); | |
$toBase = str_split($toBaseInput,1); | |
$number = str_split($numberInput,1); |
<?php | |
/* | |
* PDO DATABASE CLASS | |
* Connects Database Using PDO | |
* Creates Prepeared Statements | |
* Binds params to values | |
* Returns rows and results | |
*/ | |
class Database { | |
private $host = DB_HOST; |
import sys | |
from PyQt5.QtCore import * | |
from PyQt5.QtWidgets import * | |
from PyQt5.QtWebEngineWidgets import * # pip3 install --upgrade PyQtWebEngine | |
class MainWindow(QMainWindow): | |
def __init__(self): | |
super(MainWindow, self).__init__() | |
self.browser = QWebEngineView() | |
self.browser.setUrl(QUrl('http://hackergaucho.com')) |
<?php | |
//eu: eu,eu.PRO+Pes:N1ms:N1fs | |
$str="Olá,Olá.INTERJ"; | |
$parser=function ($str) { | |
$str=trim($str); | |
//Palavra,canônica.Classe+traços:flexão | |
$classeETracos=[ | |
'ABREV'=>'abreviatura', | |
'ADV'=>'advérbio', | |
'CONJ'=>'conjunção', |