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
'use strict'; | |
const http = require('http'); | |
const cpf = process.argv[2]; | |
const url = 'http://dabsistemas.saude.gov.br/sistemas/sadab/js/buscar_cpf_dbpessoa.json.php?cpf=' | |
const consult = `${url}${cpf}`; | |
http.get(consult, res => { |
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 random | |
import requests,json,sys | |
class generator: | |
cpf = [] | |
v1 = 0 | |
v2 = 0 | |
@staticmethod | |
def generateCpf(self): | |
for i in range(1, 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
<?php | |
$curl = new \Curl\Curl(); | |
$curl->get('https://irql.bipbop.com.br/', array( | |
'q' => 'SELECT FROM \'BIPBOPJS\'.\'CPFCNPJ\'', | |
'apiKey' => '6057b71263c21e4ada266c9d4d4da613', | |
'documento' => '453.674.018-05', | |
'nascimento' => '24/11/1997' | |
)); |
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
<?php | |
namespace App\Inquiries; | |
use PHPHtmlParser\Dom; | |
class Consult{ | |
protected $defaultUrl = 'https://consultaca.com/'; | |
protected $ca; | |
protected $url; | |
protected $dom; |
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
<?php | |
class FreightPostOfficeService { | |
/** | |
* Source zip code to calculate the freight | |
* | |
* @var | |
*/ | |
public $sourceZipCode; | |
/** |
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
<?php | |
namespace Smart\Traits\Models; | |
trait RoleTrait { | |
/** | |
* Roles existed in application | |
* | |
* @var | |
*/ | |
protected $configRoles; |
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
/** | |
* Converts a string to camel case. | |
* Example: fucking_string => fuckingString | |
* | |
* @param {String} str the string to convert | |
* @return {String} | |
*/ | |
Vue.filter('camelCase', function (str) { | |
return str.toLowerCase() | |
.replace( /[-_]+/g, ' ') |
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
<?php | |
Validator::extend('cpf', function($attribute, $value, $params, $validator){ | |
$cpf = $value; | |
$cpf = preg_replace('/[^0-9]/', '', $cpf); | |
$cpf = str_pad($cpf, 11, '0', STR_PAD_LEFT); | |
if (strlen($cpf) != 11) | |
return false; | |
$cpfsCheck = [ | |
'00000000000', | |
'11111111111', |
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
const quiz = new Vue({ | |
el: "#quiz", | |
data() { | |
return { | |
product: {}, | |
show: {}, | |
choices: { | |
questions: [], | |
options: [] | |
}, |
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
<?php | |
namespace ArtisanPlus\Repositories; | |
use Illuminate\Support\Facades\Schema; | |
use Carbon\Carbon; | |
class TableRepository { | |
/** | |
* Implements orderBy in query | |
* |