Skip to content

Instantly share code, notes, and snippets.

View diegogurgel's full-sized avatar
😎
Always learning

Diego Gurgel diegogurgel

😎
Always learning
View GitHub Profile
@diegogurgel
diegogurgel / index.html
Created May 12, 2013 20:37
Webcam Javascript
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Acesso a webcam via javaScript</title>
<link rel="stylesheet" href="css/style.css">
<link rel="author" href="humans.txt">
</head>
--Crie exemplos para as operações descritas na seção 4 utilizando a ferramenta PHP MyAdmin. Podem ser criados
--mais de um exemplo para cada operação. Os exemplos devem ser salvos em um arquivo texto.
-- Contas
INSERT INTO `trabalhofinance`.`accounts` (`id`, `name`, `created`, `modified`) VALUES (NULL, 'Conta Banco do Brasil', '2013-06-19 00:00:00', '2013-06-20 00:00:00');
UPDATE `trabalhofinance`.`accounts` SET `name` = 'Conta Banco do Brasil',
`modified` = '2013-06-20 00:00:00' WHERE `accounts`.`id` =6;
@diegogurgel
diegogurgel / Account.php
Last active December 18, 2015 17:39
teste conexão banco
<?php
class Account{
private $id;
private $nomeConta;
private $dataCriacao;
private $dataEdicao;
function getNomeConta()
{
return $this->nomeConta;
<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>
@diegogurgel
diegogurgel / cadastrar.jsp
Created March 9, 2014 00:16
Conversão data jstl
<%@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>
<?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>
<c:if test="${pageContext.errorData.statusCode==404}">
<h4>Não foi possível localizar o caminho ou arquivo solicitado.</h4>
</c:if>
@diegogurgel
diegogurgel / basicGit
Last active August 29, 2015 13:57
Git Basic
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
// 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
@diegogurgel
diegogurgel / dabblet.css
Created April 20, 2014 00:42 — forked from LeaVerou/dabblet.css
Vertical stripes
/**
* Vertical stripes
*/
background: linear-gradient(left, white 50%, #8b0 50%);
background-size: 100px 100px;