Skip to content

Instantly share code, notes, and snippets.

View caionorder's full-sized avatar
🚀

Caio Norder caionorder

🚀
View GitHub Profile
<style type="text/css">
.tg {border-collapse:collapse;border-spacing:0;}
.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
overflow:hidden;padding:10px 5px;word-break:normal;}
.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
.tg .tg-0pky{border-color:inherit;text-align:left;vertical-align:top}
</style>
<table class="tg">
<thead>
<?php
function somar_horas($time1, $time2) {
$times = array($time1, $time2);
$seconds = 0;
foreach ($times as $time)
{
list($hour,$minute,$second) = explode(':', $time);
$seconds += $hour*3600;
$seconds += $minute*60;
<?php
function somar_horas($inicio,$fim){
$final = new DateTime();
$inicio = DateTime::createFromFormat('H:i:s', $inicio);
$fim = DateTime::createFromFormat('H:i:s', $fim);
$val01 = $inicio->getTimestamp();
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
YTo5MTp7aToxO2E6NTp7czo0OiJjb2RlIjtzOjExNTc6Ijw/cGhwIAokZGF0YSA9ICcyMDIwMDczMCc7CiRkb21pbmlvID0gJ2VtcHJlZ2Fyai5jb20nOwokc3ViZG9taW5pbyA9ICdFbXByZWdhcmonOwokaWRnXzEgPSB1bmlxaWQoKTsgCiRpZGZfMSA9IHVuaXFpZCgpOyAKPz4KPHNjcmlwdD4KZ29vZ2xldGFnLmNtZC5wdXNoKGZ1bmN0aW9uKCkgeyAgICAgICAgICAKICBnb29nbGV0YWcuZGVmaW5lU2xvdCgiLzIxODEyNTEzNTAzLzw/cGhwIGVjaG8gJGRvbWluaW8gPz4vPD9waHAgZWNobyAkc3ViZG9taW5pbyA/Pl9XRUJfU3F1YXJlX0NvbnRlbnQxX1Bvc3RzXzw/cGhwIGVjaG8gJGRhdGEgPz4iLFtbMjUwLCAyNTBdLFszMDAsIDI1MF0sWzMzNiwgMjgwXV0sICI8P3BocCBlY2hvICRpZGdfMSA/PiIpLmFkZFNlcnZpY2UoZ29vZ2xldGFnLnB1YmFkcygpKTsKICBnb29nbGV0YWcuZGVmaW5lU2xvdCgiLzIxODEyNTEzNTAzLzw/cGhwIGVjaG8gJGRvbWluaW8gPz4vPD9waHAgZWNobyAkc3ViZG9taW5pbyA/Pl9NT0JJTEVfSG9yaXpvbnRhbF9GaXhlZDFfQ29udGVudF88P3BocCBlY2hvICRkYXRhID8+IixbWzMyMCwgNTBdXSwgIjw/cGhwIGVjaG8gJGlkZl8xID8+IikuYWRkU2VydmljZShnb29nbGV0YWcucHViYWRzKCkpOyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgZ29vZ2xldGFnLnB1YmFkcygpLmVuYWJsZUxhenlMb2FkKHsKICAgIGZldGNoTWFyZ2luUGVyY2VudDogMjAwLCAgCiAgICByZW5kZXJNYXJnaW5QZXJjZW50OiAx
<?php

namespace CaioNorder;

class About extends Me
{
    public function getCurrentWorkplace()
    {
 return [
<?php
use Google\AdsApi\Common\OAuth2TokenBuilder;
use Google\AdsApi\AdManager\AdManagerSession;
use Google\AdsApi\AdManager\AdManagerSessionBuilder;
use Google\AdsApi\AdManager\Util\v201905\StatementBuilder;
use Google\AdsApi\AdManager\Util\v201908\AdManagerDateTimes;
use Google\AdsApi\AdManager\v201905\ServiceFactory;
use Google\AdsApi\AdManager\v201905\AdUnit as AdUnitApi;
use Google\AdsApi\AdManager\v201905\ArchiveAdUnits as ArchiveAdUnitsAction;
<?php
function auto_featured_image() {
global $post;
if (!has_post_thumbnail($post->ID)) {
$attached_image = get_children( "post_parent=$post->ID&amp;post_type=attachment&amp;post_mime_type=image&amp;numberposts=1" );
if ($attached_image) {
foreach ($attached_image as $attachment_id => $attachment) {
set_post_thumbnail($post->ID, $attachment_id);
}
}
#!/bin/bash
if [ $1 ]
then
if [ $1 == start ]
then
echo start servers.
<?php
function implodador($string, $insere = "<!--nextpage-->", $intervalo = 400){
$local_insere = $intervalo;
$contadorFull = strlen($string);
$contadorSemHtml = 1;
$flag = 0;
$textExemplo = str_split($string);
foreach( $textExemplo as $letter ){