Skip to content

Instantly share code, notes, and snippets.

Pablo Sores papalardo papalardo

Block or report user

Report or block papalardo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View spotifyPodcast.xml
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><item><author>Título do Podcast</author><title>Título do Episódio</title><description>Descrição do episódios</description><link>Link do episódio</link><pubDate>Dia, Data Hora -0300</pubDate><itunes:duration>Duração do episódio</itunes:duration><itunes:keywords>Tags do episódio</itunes:keywords><itunes:summary>Descrição do episódios para iTunes</itunes:summary><itunes:subtitle>Descrição do episódios para iTunes</itunes:subtitle><itunes:author>Autor do episódio para iTunes</itunes:author><itunes:explicit>YES</itunes:explicit><itunes:block>no</itunes:block><enclosure url='Link do arquivo MP
View spotifyPodcast.xml
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Ediano gama</title><itunes:subtitle>ediano</itunes:subtitle><link>http://www.example.com/podcasts/everything/index.html</link><description><![CDATA[Great site ediano]]></description><itunes:summary>Great site ediano</itunes:summary><image><title>Ediano gama</title><link>http://www.example.com/podcasts/everything/index.html</link><url>http://example.com/podcasts/everything/AllAboutEverything.jpg</url></image><itunes:image href="http://example.com/podcasts/everything/AllAboutEverything.jpg"/><itunes:author>pablo</itunes:author><itunes:owner><itunes:name>pablo</itunes:name><itunes:email>pablo.papalardo@wavez.com.br</itunes:email></itunes:owner><itunes:category>Technology</itunes:category><language>en-us</language><copyright>2016 Ediano &amp; Family</copyright><item><title/><description><![CDATA[]]></description><itunes:summary/><pubDate>Mon, 22 Jul 2019 18:12:23 +0000</pubDate><encl
@papalardo
papalardo / app.vue
Created Jun 2, 2019
Inertia Transitions
View app.vue
<template>
<transition name="fade">
<Inertia v-bind="$props"></Inertia>
</transition>
</template>
<script>
import Inertia from 'inertia-vue'
export default {
props: ['initialPage', 'resolveComponent', 'transformProps'],
@papalardo
papalardo / app.js
Created Jun 2, 2019
Inertia page transitions
View app.js
import Inertia from 'inertia-vue'
import Vue from 'vue'
import App from './App.vue'
Vue.use(Inertia)
const app = document.getElementById('app')
new Vue({
render: h => h(App, {
@papalardo
papalardo / ClockWidget.vue
Created May 2, 2019
Realtime clock VueJS
View ClockWidget.vue
<template>
<div class="callout calendar-day">
<div class="grid-x align-middle align-middle">
<div class="shrink cell">
<h1>{{ this.momentInstance.format('DD') }}</h1>
</div>
<div class="auto cell">
<h6>{{ this.momentInstance.format('[de] MMMM [de] YYYY') }}</h6>
<h6 class="light">{{ this.momentInstance.format('dddd[.] HH:mm:ss') }} </h6>
</div>
@papalardo
papalardo / getStatesWithCitys.php
Last active Feb 3, 2019
Listar estado com cidades do Brasil
View getStatesWithCitys.php
$path = './api';
$filename = 'estados.json';
$filePath = $path .'/'. $filename;
if(file_exists($filePath)) {
$content = json_decode(file_get_contents($filePath), true);
return $content;
}
$somenteEssesEstados = ['RJ', 'SP'];
@papalardo
papalardo / utilities.js
Last active Mar 11, 2019
Utilities to front end developer
View utilities.js
// SVG Inject
https://github.com/iconfu/svg-inject
// Check if is Mobile
window.mobilecheck = function () {
var check = false;
(function (a) {
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)
View mediaqueries.css
/* TABLE */
@media screen and (max-width: 63.9375em) {
}
/* MOBILE */
@media screen and (max-width: 39.9375em) {
}
@papalardo
papalardo / getPaginateInterval.js
Last active Dec 24, 2018
Array paginate interval JS
View getPaginateInterval.js
function getInterval(totalItens = 100, perPage = 10, maxShowingNumbers = 5, currentPage = 1) {
let lastPage = Math.ceil(totalItens / perPage)
if (totalItens < 0 ) {
console.error(`Total of itens cant be less or equal than 0`)
return;
} else if (lastPage > 0 && currentPage > lastPage) {
console.error(`Current page [${currentPage}] cant be bigger than last page [${lastPage}]`)
return;
You can’t perform that action at this time.