Skip to content

Instantly share code, notes, and snippets.

View lucaspolo's full-sized avatar

Lucas Polo lucaspolo

View GitHub Profile
#include <stdio.h>
int main(int argc, char* argv[]) {
int i = 0;
for(;;) {
printf("%d\n", i--);
i = i % 5;
}
#include <stdio.h>
int main(int argc, char* argv[]) {
int i = 0;
for(;;) {
printf("%d\n", i++);
i = i % 5;
}
#include <stdio.h>
int main(int argc, char* argv[]) {
int i = 0;
for(;;) {
printf("%d\n", i++);
if (i == 5) {
i = 0;
}
[
{
"_id": "6199c6f27e3fad8eb236b3d0",
"index": 0,
"guid": "03f4a2c7-ecd2-4e19-98b0-3abf05813366",
"isActive": false,
"balance": "$1,641.18",
"picture": "http://placehold.it/32x32",
"age": 27,
"eyeColor": "blue",
import os
from telegram.ext import Updater, CommandHandler
import requests
def hello_world(update, context):
update.message.reply_text(
"Olá Mundo! Sou o novo bot."
)
import os
from telegram.ext import Updater, CommandHandler
def hello_world(update, context):
update.message.reply_text(
"Olá Mundo! Sou o novo bot."
)
client.publish(
PhoneNumber='+5511999998888',
Message='Agora a mensagem será enviada para o telefone'
)
client = boto3.client(
"sns",
aws_access_key_id='AWS_ACCESS_KEY_ID',
aws_secret_access_key='AWS_SECRET_ACCESS_KEY',
region_name="us-east-1"
)
// Java
public class Pessoa {
private String nome;
private int teste1;
protected char[] teste = new char[10];
protected teste[] teste = new teste[56];
public float desprotegido;
private float[] teste = new float[34543];
}
## config.py
CELERY_BROKER_URL = 'redis://localhost/0'
CELERY_BEAT_SCHEDULE = {
'envia-emails-a-cada-30-segundas': {
'task': 'tasks.envia_email',
'schedule': 10.0,
}
}