This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Responsive Image</title> | |
</head> | |
<body> | |
<div class="videos"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Cache-Control: no-cache, must-revalidate'); | |
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); | |
//header('Content-Type: application/json; charset=utf-8'); | |
header('Content-Type: text/html; charset=utf-8'); | |
ini_set("memory_limit","128M"); | |
set_time_limit(120); | |
ob_start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
(..) | |
$attached_media = get_attached_media( $this->supported_types, $this->post_id ); | |
foreach ($attached_media as $key => $value) { | |
$attachment_url = $attached_media[$key]->guid; | |
} | |
(...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr_links = new Array(); | |
function iFrame (tbody, i){ | |
arr_links.push(tbody.find('iframe').find('flideo').find('video')); | |
console.info(arr_links[i]); | |
}; | |
/* PARTE 0 */ | |
var sNew = document.createElement("script"); | |
sNew.async = true; | |
sNew.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Seleciona todos os campos da tabela wp_posts (p.*) e todos os resultados vindos do LEFT OUTER JOIN (R.*). | |
E também mostra a QUANTIDADE de avaliações e a MEDIA vindas dos outros LEFT OUTER JOIN (X e Y). | |
O Primeiro LEFT OUTER JOIN (R) trata a busca pelas categorias de cada produto, | |
os outros JOINS trazem a soma das avaliações e a quantidade de votos, a partir daí a MÉDIA é formada dividindo as soma pela quantidade de votos. | |
*/ | |
SELECT p.*, R.*, X.TAXA AS TAXA, Y.QUANTIDADE AS QUANTIDADE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' | |
1º LEFT OUTER JOIN somente a soma das avaliacoes | |
2º LEFT OUTER JOIN somente a quantidade das avaliacoes | |
resulta na média | |
POSTS, COMENTARIOS, METADADOS_COMENTARIOS | |
inner join nao vai trazer os posts sem comentarios ou comentarios sem classificacao rating | |
left outer join vai trazer os posts, comentarios coincidentes no inner (na relacao descrita no ON) e tambem os posts sem comentarios, comentario sem rating | |
select * from POSTS | |
select * from COMENTARIOS as c | |
left outer join METADADOS_COMENTARIOS as mc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<!-- add the semantic assets --> | |
</head> | |
<body> | |
<style> | |
/** | |
* Semantic UI don't have a fixed grid system, the solution to build fixed layouts is use a grid inside a fixed container. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Registration.aspx.cs" Inherits="ITI_Intake_34.Day_5.Registration" %> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="description" content="A form displays a set of related user input fields in a structured way" /> | |
<meta name="keywords" content="html5, ui, library, framework, javascript" /> | |
<title>Semantic Ui</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-type: application/json; charset=utf-8'); | |
$colors = '{"results" :[ | |
{ | |
"title":"red", | |
"description":"dark red like blood" | |
}, | |
{ | |
"title":"green", |