Skip to content

Instantly share code, notes, and snippets.

View tonussi's full-sized avatar

Lucas Tonussi tonussi

View GitHub Profile
@tonussi
tonussi / var_transformadas.r
Created October 26, 2019 17:10
vars transformadas
preco_rocha <- log(geo$preco)
area_rocha <- log(geo$area)
coef_ap_rocha <- (geo$coef_ap)^2
acl_decl_rocha <- (geo$acl_decl)^-1
frente_rocha <- (geo$frente)^3
m0 <- lm(preco_rocha ~ area_rocha)
m1 <- lm(preco_rocha ~ coef_ap_rocha)
m2 <- lm(preco_rocha ~ acl_decl_rocha)
m3 <- lm(preco_rocha ~ frente_rocha)
@tonussi
tonussi / interpretar.r
Last active October 24, 2019 12:58
predicaot2
> m4 <- lm(geo$preco ~ geo$area + geo$coef_ap + geo$acl_decl + geo$frente, data=geo)
>
> summary(m4)
Call:
lm(formula = geo$preco ~ geo$area + geo$coef_ap + geo$acl_decl +
geo$frente, data = geo)
Residuals:
Min 1Q Median 3Q Max
#! /usr/bin/python
import dota2api
from dota2api.src.exceptions import APIError, APITimeoutError
import csv
from multiprocessing import Pool
import time
import sys
def getMatchInfo( api, matchId ):
@tonussi
tonussi / accel_2017.txt
Created September 5, 2019 18:02
dados spec accel 2017 second quarter
y x
350277,359637 2333,799939
343926,205252 2326,597073
345370,60541 2340,116098
70083,317769 460,108915
69117,983004 459,340051
69086,824977 459,675308
789882,05566 3378,246405
784647,534027 3381,977833
783488,441355 3383,856666
@tonussi
tonussi / Peterson.ino
Last active June 9, 2019 18:39
Peterson + Led + Display LCD + LDR Sensor
#include <Thread.h>
#include <LiquidCrystal.h>
#define FALSE 0
#define TRUE 1
#define N 2
int volatile turn;
int interested[N];
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
{"filterData":{"videoId":[""],"channelId":["// Blocked by context menu (Nando Moura)","UCOOCeqi5txwviDZ4M5W9QSg","","// Blocked by context menu (Xbox Mil Grau)","UCLhvKRhY5uPgrVtLtHwqERA","","// Blocked by context menu (eGuinorante)","UC-Ny3gmsFsccR5WuGDU02KQ","","// Blocked by context menu (Porta dos Fundos)","UCEWHPFNilsT0IfQfutVzsag","","// Blocked by context menu (Nicolas Gomes)","UCW6_V5qKt6XYv-lST3xZ0nQ","","// Blocked by context menu (AM3NlC)","UCrGnb5RdHA9M6WGmBGYo4ZQ","","// Blocked by context menu (Pe Marcelo Rossi)","UCp4scJVG8IeQnPBrQrflaKg","","// Blocked by context menu (Coisa de Nerd)","UCuxfOdbKQy0tgGXcm9sjHiw","","// Blocked by context menu (Neagle)","UCNrthyyJVjrJUpePrl6lW_g","","// Blocked by context menu (Programa Silvio Santos)","UC-5npwFvOH9Mp_a15T0VT9g","","// Blocked by context menu (The Noite com Danilo Gentili)","UCEWOoncsrmirqnFqxer9lmA","","// Blocked by context menu (Sofia Santino)","UCseo6WOqkDXgycrM3oIMpfg","","// Blocked by context menu (Power Couple Brasil)","UCr2TPUjHlskdWYtp
@tonussi
tonussi / BMP.cpp
Last active April 17, 2019 18:20
BMP RGB to Grayscale BMP (Quick Testing CPP)
#pragma once
#include <fstream>
#include <vector>
#include <stdexcept>
#include <thread>
#include <vector>
#include <mutex>
std::mutex mtx_grey;
std::mutex mtx_sepia;
@tonussi
tonussi / Bad words
Created April 16, 2019 16:02
A comma-delimited list of bad words.
4r5e, 5h1t, 5hit, a55, anal, anus, ar5e, arrse, arse, ass, ass-fucker, asses, assfucker, assfukka, asshole, assholes, asswhole, a_s_s, b!tch, b00bs, b17ch, b1tch, ballbag, balls, ballsack, bastard, beastial, beastiality, bellend, bestial, bestiality, bi+ch, biatch, bitch, bitcher, bitchers, bitches, bitchin, bitching, bloody, blow job, blowjob, blowjobs, boiolas, bollock, bollok, boner, boob, boobs, booobs, boooobs, booooobs, booooooobs, breasts, buceta, bugger, bum, bunny fucker, butt, butthole, buttmuch, buttplug, c0ck, c0cksucker, carpet muncher, cawk, chink, cipa, cl1t, clit, clitoris, clits, cnut, cock, cock-sucker, cockface, cockhead, cockmunch, cockmuncher, cocks, cocksuck , cocksucked , cocksucker, cocksucking, cocksucks , cocksuka, cocksukka, cok, cokmuncher, coksucka, coon, cox, crap, cum, cummer, cumming, cums, cumshot, cunilingus, cunillingus, cunnilingus, cunt, cuntlick , cuntlicker , cuntlicking , cunts, cyalis, cyberfuc, cyberfuck , cyberfucked , cyberfucker, cyberfuckers, cyberfucking , d1ck,
@tonussi
tonussi / WebhookTutorial.md
Created February 28, 2019 20:45 — forked from jagrosh/WebhookTutorial.md
Simple Webhook Tutorial (Twitter -> Discord)

Simple Webhook Tutorial

In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel

Step 1 - Register on Zapier

  1. Go to https://zapier.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets
import Discord from 'discord.js';
const HLTV = require('hltv-api');
import moment from 'moment';
import _ from 'lodash';
export const botGetHelp = msg => {
try {
var help = new Discord.RichEmbed();
help.setColor('#fff');
help.addField('Help', "!help Mostra uma ajuda para comandar o bot.");