Skip to content

Instantly share code, notes, and snippets.

View caioagiani's full-sized avatar
💼
Working at home

Caio Agiani caioagiani

💼
Working at home
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<title>International telephone input</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="styles.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/css/intlTelInput.css"
/>
const accessToken = [
'fe98abc7',
'33577d71',
'fbcaf2bd',
'ab60acb4'
];
const key = accessToken[~~(Math.random() * accessToken.length)];
console.log({ key });
[
{
"id": "8610",
"id_estado": "26",
"nome": "Adamantina"
},
{
"id": "8611",
"id_estado": "26",
"nome": "Adolfo"
@caioagiani
caioagiani / check_price.sh
Last active March 19, 2022 00:03
[Mobizon BR] - check current price
curl --request POST \
--url 'https://api.mobizon.com.br/service/price/listpublic?output=json&api=v1&apiKey=YOUR_API_KEY' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data countryA2=BR \
--data currency=BRL \
--data language=br
[
{
"IBGE": 2700300,
"state": "Alagoas",
"city": "Arapiraca",
"provider": "Ginfes"
},
{
"IBGE": 2704302,
"state": "Alagoas",
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"ruby.rubocop.onSave": true,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
/* End autofix */
// "standard.autoFixOnSave": true,
server {
server_name testdeploy.rocketseat.com.br;
location / {
proxy_pass http://127.0.0.1:3333;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy Node.js app to Azure Web App - crm-wititlc
on:
push:
branches:
- master