Skip to content

Instantly share code, notes, and snippets.

View jeffersonchaves's full-sized avatar
😎
Focusing

Jefferson Chaves jeffersonchaves

😎
Focusing
  • Instituto Federal do Paraná - IFPR
  • Foz do Iguaçu - PR
View GitHub Profile
CREATE TABLE `tb_jogadores` (
`id` int(11) NOT NULL,
`nome_jogadores` text DEFAULT NULL,
`alt` float DEFAULT NULL,
`peso` int(11) DEFAULT NULL,
`nascimento` date DEFAULT NULL,
`posicao` text DEFAULT NULL,
`id_times` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- Criação do banco de dados
CREATE DATABASE IF NOT EXISTS passarinho_api;
USE passarinho_api;
-- Estrutura da tabela
CREATE TABLE `tb_recados` (
`id` int NOT NULL AUTO_INCREMENT,
`texto` text,

Configurar execução do Vue no windows

Por padrão o privilégio para excutar scripts é o Restricted, ou seja, nenhum script chamado via arquivo pode ser executado apenas em modo interativo (via console ou ISE)

Para alterar a politica de execução use o cmdlet e algum dos seguinte

Set-ExecutionPolicy Unrestricted 

Restricted: É valor padrão (Windows 8, Windows Server 2012, and Windows 8.1) , não permite que nenhum arquivo seja executado isso inclui arquivos de configuração (.ps1xml), módulos (.psm1) e .ps1

<div class="page-content page-container" id="page-content">
<div class="padding">
<div class="row container d-flex justify-content-center">
<div class="col-md-12">
<div class="card px-3">
<div class="card-body">
<h4 class="card-title">Todo list com Vue</h4>
<div class="add-items d-flex"> <input type="text" class="form-control todo-list-input" placeholder="o que eu preciso fazer hoje?"> <button class="add btn btn-primary font-weight-bold todo-list-add-btn">criar</button> </div>
<div class="list-wrapper">
<ul class="d-flex flex-column-reverse todo-list">
body {
background-color: #f9f9fa
}
.flex {
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto
}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>JerseyLab</groupId>
<artifactId>JerseyLab</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
id="WebApp_ID" version="4.0">
<display-name>JerseyLab</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.htm</welcome-file>
# Loads default set of integrations. Do not remove.
default_config:
# Example configuration.yaml entry
light:
- platform: mqtt
name: "Lampada da Sala"
unique_id: ifpr_sala_lampada
state_topic: "ifpr/sala/lampada"
sensor:
- platform: mqtt
name: "Temperatura"
unique_id: ifpr_sala_temperatura
state_topic: "ifpr/sala/temperatura"
unit_of_measurement: "°C"
value_template: "{{ value_json.temperatura }}"
json_attributes_topic : "ifpr/sala/temperatura"
mqtt:
sensor:
- name: "Temperatura"
state_topic: "ifpr/sala/temperatura"
unique_id: ifpr_sala_temperatura
unit_of_measurement: "°C"
qos: 0