####Chat feito em Node.js
Para executar você deve ter o Node.js instalado.
Em uma janela do terminal navegue até o diretório dos arquivos server.js e client.js
Digite o comando:
node server.js
| window.onload = function() | |
| { | |
| var type = 0; | |
| var contex = new webkitAudioContext(); | |
| var oscillator; | |
| playWave(); | |
| function playWave(){ | |
| oscillator = contex.createOscillator(); |
####Chat feito em Node.js
Para executar você deve ter o Node.js instalado.
Em uma janela do terminal navegue até o diretório dos arquivos server.js e client.js
Digite o comando:
node server.js
| /** | |
| * Vertical stripes | |
| */ | |
| background: linear-gradient(left, white 50%, #8b0 50%); | |
| background-size: 100px 100px; |
| // Load the TCP Library | |
| net = require('net'); | |
| // Keep track of the chat clients | |
| var clients = []; | |
| // Start a TCP Server | |
| net.createServer(function (socket) { | |
| // Identify this client |
| git init | Cria um novo repositório local | |
| ---------------------------------------------------------------------------------------------------- | |
| git clone | Cria uma cópia de um repositório local ou remoto | |
| ---------------------------------------------------------------------------------------------------- | |
| git add[arquivo] | Add um arquivo | |
| git add * | Add vários arquivos | |
| ---------------------------------------------------------------------------------------------------- | |
| git commit | Envia modificações para o cabeçalho | |
| ---------------------------------------------------------------------------------------------------- | |
| git push | Envia modificações para o branch master do repositório remoto |
| <c:if test="${pageContext.errorData.statusCode==404}"> | |
| <h4>Não foi possível localizar o caminho ou arquivo solicitado.</h4> | |
| </c:if> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> | |
| <display-name>ListaCasamento</display-name> | |
| <welcome-file-list> | |
| <welcome-file>index.html</welcome-file> | |
| <welcome-file>index.htm</welcome-file> | |
| <welcome-file>index.jsp</welcome-file> | |
| <welcome-file>default.html</welcome-file> | |
| <welcome-file>default.htm</welcome-file> | |
| <welcome-file>default.jsp</welcome-file> |
| <%@page import="java.util.Date"%> | |
| <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | |
| <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %> | |
| <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> |
| <ul id="lista"> | |
| <li class="item">A</li> | |
| <li class="item">B</li> | |
| <li class="item">C</li> | |
| <li class="item">D</li> | |
| <li class="item">E</li> | |
| </ul> |
| <?php | |
| class Account{ | |
| private $id; | |
| private $nomeConta; | |
| private $dataCriacao; | |
| private $dataEdicao; | |
| function getNomeConta() | |
| { | |
| return $this->nomeConta; |