Assunto: [your-name] tem interesse no produto [_post_title]
Cabeçalhos adicionais: Reply-To: [your-email]
Corpo da Mensagem:
De: [your-name] <[your-email]>
Telefone: [telefone]
Empresa: [tempresa]
url: [_url]
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 | |
function youtube_view_count_channel_shortcode($params) | |
{ | |
$channelID = $params['id']; | |
$json = file_get_contents("https://www.googleapis.com/youtube/v3/channels?part=statistics&id=" . $channelID . "&key=SUA-KEY"); | |
$jsonData = json_decode($json); | |
$views = $jsonData->items[0]->statistics->viewCount; | |
return number_format($views); | |
} |
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
import requests | |
from bs4 import BeautifulSoup as bs | |
channel = input("Canal: ") | |
url = f"https://socialblade.com/youtube/c/{channel}" | |
headers = { | |
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" | |
} |
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
import click | |
import os | |
import json | |
from PIL import Image, ImageDraw | |
file = open("categorias.json") | |
data = json.load(file) | |
total_files = len(data) | |
files_count = 0 |
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
from random import randint | |
def setup(): | |
createCanvas(500, 500) | |
background(240, 240, 200) | |
rectMode(CENTER) | |
noFill() | |
for k in range(5): | |
for j in range(10): |
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
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script type="text/javascript"> | |
// Dolar $ | |
$.getJSON( "https://lme-flask.herokuapp.com/summary", function( data ) { | |
var indices = '<p><strong style="font-size: 26px; font-weight: 500; line-height: 1em;">R$ '+ money(data.dolar) +'</strong></p>'; | |
$('#info').html(indices); | |
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
/************************************************************* | |
GreenHouse é um pequeno script para acompanhar um ESP32 com | |
sensores de umidade, temperatura (DHT22 ou DHT11) e luminosidade (LDR). | |
Além dos sensores, um display LCD 16x2 (interface I2C) pode ser usado. | |
Estou usando o Blynk para criar algumas interfaces para celular, mas é | |
completamente dispensável caso queira acompanhar os dados apenas via o | |
display LCD. |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/riverfount/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
NewerOlder