function formatCnpjCpf($value)
{
$cnpj_cpf = preg_replace("/\D/", '', $value);
if (strlen($cnpj_cpf) === 11) {
return preg_replace("/(\d{3})(\d{3})(\d{3})(\d{2})/", "\$1.\$2.\$3-\$4", $cnpj_cpf);
}
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
| # Gerenciador de Pacotes | |
| npm : https://www.npmjs.com/ | |
| pnpm : https://github.com/pnpm/pnpm | |
| # React | |
| TypeScript: https://www.typescriptlang.org/ | |
| Tailwindcss: https://tailwindcss.com/ | |
| Stitches: https://stitches.dev/ | |
| Vanilla-extract: https://vanilla-extract.style/ | |
| CVA: https://www.npmjs.com/package/cva |
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 React, { useState, useEffect } from "react"; | |
| import api from "../services/api"; | |
| import MUIDataTable from "mui-datatables"; | |
| import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles'; | |
| import CircularProgress from '@mui/material/CircularProgress'; | |
| import load from "../../src/assets/img/load.gif"; | |
| const fetch = require('node-fetch'); | |
| export default function Promocao() { | |
| const [loading, setLoading] = useState(""); |
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 pandas as pd | |
| import requests | |
| import mysql.connector | |
| conn = mysql.connector.connect( | |
| host="localhost", | |
| user="root", | |
| password="", | |
| database="cotacoes" | |
| ) |
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
| 2 cd /var/www/html/intra/sistemas/banco-imagens/uploads | |
| 3 ls | |
| 4 cd folhetos/ | |
| 5 chmod 777 -R . | |
| 6 ls | |
| 7 rm -f 281 | |
| 8 rm 281 | |
| 9 rm 281 | |
| 10 rm -r 281 | |
| 11 ls |
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
| Traceback (most recent call last): | |
| File "Desktop\getXML\getXML.py", line 37, in <module> | |
| xml.writelines(x['xml_env']) | |
| KeyError: 'xml_env' |
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
| <ion-header> | |
| <ion-navbar> | |
| <ion-title> | |
| <p class="title"> | |
| Bem Vindo ! | |
| </p> | |
| </ion-title> | |
| </ion-navbar> | |
| </ion-header> | |
| <ion-content padding class="content"> |
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
| <div class="skills-wheel"> | |
| <ul class="wheel"> | |
| <li> | |
| <a href="#commercial-awareness" class="fancybox">1. Promo</a> | |
| </li> | |
| <li> | |
| <a href="#communication" class="fancybox">2. Promo</a> | |
| </li> |
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 { Component } from "@angular/core"; | |
| import { NavController, NavParams, Platform } from "ionic-angular"; | |
| import { HomePage } from "../home/home"; | |
| import { SQLite, SQLiteObject } from '@ionic-native/sqlite/ngx'; | |
| import { Http } from "@angular/http"; | |
| import "rxjs/add/operator/map"; | |
| export class User { | |
| password: string; | |
| } |
NewerOlder