Skip to content

Instantly share code, notes, and snippets.

View arthurbonora's full-sized avatar

Arthur H G Bonora arthurbonora

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$.getJSON('estados_cidades.json', function (data) {
@arthurbonora
arthurbonora / bancos_brasileiros.php
Created March 3, 2018 22:30 — forked from peuweb/bancos_brasileiros.php
Lista dos bancos brasileiros em formato array
<?php
//bancos brasileiros
$bancos = array(
array('code' => '001', 'name' => 'Banco do Brasil'),
array('code' => '003', 'name' => 'Banco da Amazônia'),
array('code' => '004', 'name' => 'Banco do Nordeste'),
array('code' => '021', 'name' => 'Banestes'),
array('code' => '025', 'name' => 'Banco Alfa'),
array('code' => '027', 'name' => 'Besc'),
array('code' => '029', 'name' => 'Banerj'),
@arthurbonora
arthurbonora / select-estados-br
Created March 22, 2022 23:50 — forked from cassiocardoso/select-estados-br
Select com uma lista de todos os estados brasileiros.
<select name="estados-brasil">
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espírito Santo</option>
<option value="GO">Goiás</option>
@arthurbonora
arthurbonora / exemplo.php
Last active April 15, 2022 18:15
[FORDROP] Exemplo PHP para requisições na API
<?php
$camada = '';
$metodo = '';
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'https://api.fordrop.com.br?metodo='.$metodo.'&camada='.$camada,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => [
token => 'xxxxxxxxxxxxxxx',
Redirect 301 /url-antigo.html http://www.seusite.com.br/novo-url.html