Small list of useful docker containers with nginx as reverse proxy using easyengine. To deploy on Debian/Ubuntu.
wget -qO- https://get.docker.com/ | sh
{ | |
"manha_entrada": "", | |
"manha_saida": "", | |
"tarde_entrada": "", | |
"tarde_saida": "", | |
} |
import React, { useState } from 'react'; | |
import axios from 'axios'; | |
export default function Lista () { | |
const [cep, setCep] = useState({ cep: '' }); | |
const [informacoes, setInformacoes] = useState({ | |
cep: '', | |
logradouro: '', | |
complemento: '', |
/** | |
* Optimize image image | |
* | |
* https://developers.google.com/speed/docs/insights/OptimizeImages | |
* -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace sRGB | |
* | |
* @access public | |
* @param string $filePath Path of the file | |
* @return string Raw image result from the process | |
*/ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
#myInput { |
select pp.sobrenome, d.nome | |
from universidade.professor p natural join universidade.pessoa pp | |
join universidade.leciona l using (mat_professor) | |
join universidade.turma t using (id_turma) | |
join universidade.disciplina d using (cod_disc); | |
select pp.sobrenome, pe.sobrenome | |
from universidade.professor p natural join universidade.pessoa pp | |
join universidade.plano plano using (mat_professor) | |
join universidade.estudante e using (mat_estudante) |
select pp.sobrenome, d.nome | |
from universidade.professor p natural join universidade.pessoa pp | |
join universidade.leciona l using (mat_professor) | |
join universidade.turma t using (id_turma) | |
join universidade.disciplina d using (cod_disc); | |
select pp.sobrenome, pe.sobrenome | |
from universidade.professor p natural join universidade.pessoa pp | |
join universidade.plano plano using (mat_professor) | |
join universidade.estudante e using (mat_estudante) |
// Async/Await requirements: Latest Chrome/FF browser or Babel: https://babeljs.io/docs/plugins/transform-async-to-generator/ | |
// Fetch requirements: Latest Chrome/FF browser or Github fetch polyfill: https://github.com/github/fetch | |
// async function | |
async function fetchAsync () { | |
// await response of fetch call | |
let response = await fetch('https://api.github.com'); | |
// only proceed once promise is resolved | |
let data = await response.json(); | |
// only proceed once second promise is resolved |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<button onclick="nodes.forEach(myFunction)">Try it</button> | |
<p id="demo"></p> |
<?php | |
/** | |
* Send "New User Registration" email to admins when new customer is created on WooCommerce. | |
* | |
* @param int $id New customer ID. | |
*/ | |
function my_wc_customer_created_notification( $id ) { | |
wp_new_user_notification( $id, null, 'admin' ); | |
} |