Definitely not comprehensive. This is meant to be a basic memory aid with links to get more details. I'll add to it over time.
$ npm install mongoose --save
const mongoose = require('mongoose');
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: node-red | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start daemon at boot time | |
# Description: Enable service provided by daemon. | |
### END INIT INFO |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Mirror Fashion</title> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" href="css/reset.css" /> | |
<style> | |
.menu-opcoes li { |
/* | |
ESP8266 + DHT + MQTT | |
- Teste inicial de conexão de um DHT22 a um ESP8266 | |
- Esta versão apenas envia dados pela porta Serial | |
Falta Corrigir | |
- connection to an MQTT server | |
- subscription to the topic "casa/escritorio/sensor" | |
*/ |
Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.
The following steps assume you've got a set-up like mine, where:
@Test(expected = IllegalArgumentException.class) | |
public void naoDeveriaCriarSessoesDiariasQuandoDataInicioMaiorQueDataFim() { | |
//DADAS ESTAS ENTRADAS: | |
LocalDate hoje = new LocalDate(); | |
LocalDate amanha = hoje.plusDays(1); | |
LocalTime agora = new LocalTime(); | |
Periodicidade diaria = Periodicidade.DIARIA; | |
//QUANDO EU DISPARAR O PROCESSAMENTO: | |
Espetaculo show = new Espetaculo(); |
### | |
# Node.js app Docker file | |
# | |
# Some basic build instructions: | |
# ``` | |
# # you should delete node_modules b/c you don't want that copied during 'ADD' | |
# docker build -t thom-nic/node-bootstrap . | |
# # run a shell in the container to inspect the environment (as root): | |
# docker run --rm -itu root thom-nic/node-bootstrap /bin/bash | |
# ``` |
#include <PubSubClient.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WebServer.h> | |
const char* wifi_ssid = "XXXXX"; | |
const char* wifi_password = "XXXXX"; | |
char* mqtt_server = "iot.eclipse.org"; | |
char* mqtt_user = ""; |
http://www.dell.com/br/p/deals?c=br&l=pt&cs=brdhs1&s=dhs&ref=hp1 | |
http://shop.lenovo.com/br/pt/laptops/thinkpad/edge-series/e431/?menu-id=s%C3%A9rie_e | |
http://shop.lenovo.com/br/pt/laptops/lenovo/g-series/g40/ |