Skip to content

Instantly share code, notes, and snippets.

{
"attendancesList" : [
{
"id": 1,
"persuasiveness": 1,
"productKnowledge": 0,
"communication": 0,
"clientsSatisfaction": 0,
"lastStep": 0,
"timesLostSale": 0,
@visb
visb / sum.time.php
Last active March 30, 2023 17:34
Somar horas com php
<?php
function sumHours($firstHour, $secondHour) {
$baseDate = date('Y-m-d');
$baseTime = strtotime($baseDate . ' 00:00:00');
$firstTime = strtotime($baseDate . ' ' . $firstHour) - $baseTime;
$secondTime = strtotime($baseDate . ' ' . $secondHour) - $baseTime;
$resultTime = $firstTime + $secondTime;
'use strict';
var inputs = document.querySelector('input[type="checkbox"]'),
camiseta = document.querySelector('#camiseta'),
i = 0,
len = inputs.length,
input;
for ( ; i < len; i++) {
input = inputs[i];
SELECT
doenca.*
FROM
doencas AS doenca
LEFT JOIN doencas_sintomas AS doenca_sintoma
LEFT JOIN sintomas AS sintoma
WHERE
## sintoma 1
(sintoma.nome = 'febre' AND doenca_sintoma.sintoma_id = sintoma.id AND doenca_sintoma.doenca_id = doenca.id)
function minutesEqualTo(minutes, action) {
var date = new Date,
sleep = 1000 * 60;
if (date.getMinutes() == minutes) {
action.call();
sleep = 1000 * 60 * 60;
}
window.setTimeout(minutesEqualTo.bind(window, minutes, action), sleep);
var i = 1,
end = 100,
multiples = {5 : 'Ka', 7 : 'Nois'};
for ( ; i <= end; i++) {
var string = '';
for (multiple in multiples) {
if (i%multiple === 0) {
string += multiples[multiple];
}
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.form-group label, .form-group input {
display: inline-block;
float: left;
width: 50%;
This file has been truncated, but you can view the full file.
# Host: agencia110.com.br (Version: 5.5.23-55)
# Date: 2014-03-11 13:45:20
# Generator: MySQL-Front 5.3 (Build 4.108)
/*!40101 SET NAMES utf8 */;
#
# Structure for table "cidade"
#

#Vinicius Siuta Borges

Idade: 19 anos

E-mail: visb42@gmail.com

Telefone: (41) 3268-6052 / (41) 9665-3611


<style type="text/less">
.slider-horizontal{
background: red;
height: 500px;
.slide{
height: 450px;
background: blue;
display: none;
&.active{
display: block;