Skip to content

Instantly share code, notes, and snippets.

View omarkdev's full-sized avatar

Marcos Felipe omarkdev

View GitHub Profile
<?php
namespace App\Inquiries;
use PHPHtmlParser\Dom;
class Consult{
protected $defaultUrl = 'https://consultaca.com/';
protected $ca;
protected $url;
protected $dom;
<?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'
));
import random
import requests,json,sys
class generator:
cpf = []
v1 = 0
v2 = 0
@staticmethod
def generateCpf(self):
for i in range(1, 10):
@omarkdev
omarkdev / cpf_consulta_api_sus.js
Created December 5, 2016 08:52 — forked from Pompeu/cpf_consulta_api_sus.js
cpf_consulta_api_sus.js
'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 => {
@omarkdev
omarkdev / cpf_consulta_api_sus.py
Created December 5, 2016 08:49 — forked from jh00nbr/cpf_consulta_api_sus.py
Script simples para consulta de dados na base dados nacional do SUS utilizando o CPF.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests,json,sys
# Script simples para consulta de dados na base dados nacional do SUS utilizando o CPF.
# Jhonathan Davi A.K.A jh00nbr / Insightl4b lab.insightsecurity.com.br
# Blog: lab.insightsecurity.com.br
# Github: github.com/jh00nbr
# Twitter @jh00nbr
@omarkdev
omarkdev / app.css
Created December 1, 2016 13:12
Input not clickable with css and jQuery
.inpt-no-clickable {
pointer-events: none;
}
@omarkdev
omarkdev / e
Created November 26, 2016 03:58
2
6
16
36
80
176
382
$app.config(['$routeProvider', function($routeProvider){
	$routeProvider.when('/', {
		templateUrl : "/views/welcome.html",
		name: "Início",
		controller: "WelcomeController"
	})
	.when("/talkers", {
		templateUrl : "/views/talkers.html",
 name: "Palestrantes"
$(".selectFreq").on('change', function(){
alert('ok');
var soma = 0;
$(".servicos").each(function(x){
var val = $(this).val();
if(!val || isNaN(val))
return false;
soma = soma+parseFloat(val);
@omarkdev
omarkdev / MenuComposer.php
Created October 19, 2016 17:57
menu-composer
<?php
namespace App\Http\ViewComposers\Admin;
use Illuminate\View\View;
use Route;
class MenuComposer{
protected $routesPrefix = 'admin.';
protected $routesApi = ['destroy', 'create', 'store', 'show', 'update', 'edit'];
protected $routesMain = [
'welcome',