Skip to content

Instantly share code, notes, and snippets.

View jorgejr568's full-sized avatar
:atom:
Coding

Jorge Junior jorgejr568

:atom:
Coding
View GitHub Profile
#include <stdio.h>
#include <string>
using namespace std;
struct troco
{
int cedula;
int quantidade;
};
@jorgejr568
jorgejr568 / Allocation.js
Created April 19, 2020 07:59
Google Kick Start 2020 (Round A)
const readline = require('readline');
function solution(input, it)
{
let firstLine = input.shift(),
firstLineElements = firstLine.split(' ');
const quantityHouses = firstLineElements[0];
let dollars = parseInt(firstLineElements[1]);
<!DOCTYPE html>
<html lang="PT-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css">
@jorgejr568
jorgejr568 / relogio.html
Created November 3, 2018 16:55
Relógio JS
<html>
<head>
<style>
h1{
text-align: center;
font-family: "Helvetica",sans-serif;
font-size: 50px;
}
</style>
</head>
# search.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# Attribution Information: The Pacman AI projects were developed at UC Berkeley.
# The core projects and autograders were primarily created by John DeNero
# (denero@cs.berkeley.edu) and Dan Klein (klein@cs.berkeley.edu).
@jorgejr568
jorgejr568 / nameParse.js
Created January 25, 2018 11:41
Watcher for name format
window.nameParse = function(name){
let nameExploded = val
.split(' ')
.filter(function (v) {
return v.trim().length > 0;
});
nameExploded=nameExploded.map(function (val) {
if(
([
"de",
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<style type="text/css">
@import url('https://fonts.googleapis.com/css?family=Comfortaa:400,700');
#include <iostream>
using namespace std;
int main(){
int n,razao,nTermos,lastTerm,sumTerms,atualTerm;
cout << "Digite o numero inicial: ";
cin >> n;
cout << "Digite a razao: ";
cin >> razao;
cout << "Digite o numero de termos: ";
cin >> nTermos;
#include <iostream>
#include <locale.h>
using namespace std;
int main(){
int qtd,n1=1,n2=1,i=0,tmp;
setlocale(LC_ALL,"Portuguese");
cout << "Digite a quantidade da sequência: ";
cin >> qtd;
if(qtd>0){
cout << 1;
<?php
$ch=curl_init();
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
$data=http_build_query(["auth" => "0a9a8d0852dac6bf4a0c70f06ca72009","tipo" => "sedex","formato" => "json","cep_origem" => "25264-148","cep_destino" => "01207010","cm_altura" => 10,"cm_largura" => 15,"cm_comprimento" => 13,"peso" =>386]);
curl_setopt($ch,CURLOPT_URL,"http://webservice.kinghost.net/web_frete.php?".$data);
$result=curl_exec($ch);
curl_close($ch);