Skip to content

Instantly share code, notes, and snippets.

View luisvonmuller's full-sized avatar
🏠
Working from home

Luís Von Müller luisvonmuller

🏠
Working from home
View GitHub Profile
@luisvonmuller
luisvonmuller / aaaasocorro.ts
Created April 29, 2022 17:32
Meu singleton top zera q tem que chamar o constructor e dps await no exec :)
import {
CreateTableCommand,
CreateTableCommandInput,
DeleteTableCommand,
DeleteTableInput,
DescribeTableCommand,
DescribeTableInput,
ScanCommand,
ScanCommandInput,
} from '@aws-sdk/client-dynamodb';
@luisvonmuller
luisvonmuller / dude-wtf.rs
Created March 16, 2022 19:54
Showing old src
/* Websocket crate */
use ws::{
listen, CloseCode, Error, Handler, Handshake, Message, Request, Response, Result, Sender,
};
/* Diesel S10 (*badunts*) */
/* or vin k */
use diesel::*;
/* For JSON parsing and reparsing */
@luisvonmuller
luisvonmuller / main.py
Created November 20, 2021 01:14
INF1031 - Introdução à computação - Tarefa 7 pro @ - do discord
# Tarefa 7.1 =================================================================
# Crie função recursiva e não-recursiva que recebem como parâmetro a base B e um número
# N na base B e retornam o número correspondente na base 10. Para representar os números
# usar apenas digitos.
def sete_ponto_um_recursiva(base, valor, n=0, acumulador=0):
if str(valor)[:-1] == '':
return print(acumulador + (valor * (base ** n)))
else:
position = int(repr(valor)[-1])
# Tarefa 7.1 =================================================================
# Crie função recursiva e não-recursiva que recebem como parâmetro a base B e um número
# N na base B e retornam o número correspondente na base 10. Para representar os números
# usar apenas digitos.
def sete_ponto_um_recursiva(base, valor, n=0, acumulador=0):
if str(valor)[:-1] == '':
return print(acumulador + (valor * (base ** n)))
else:
position = int(repr(valor)[-1])
@luisvonmuller
luisvonmuller / auto-invite-2021.js
Last active April 22, 2021 03:32
Simple auto invite code for LinkedIn.
var linkedinhoAutoInviter = class {
constructor(maxInvites, actionDelay, pageDelay, ScrollDelay) {
this.pageButtons = [];
this.alreadyInvited = 0;
this.maxInvites = maxInvites;
this.actionDelay = actionDelay;
this.pageDelay = pageDelay;
Linkedin = {
config: {
scrollDelay: 500,
actionDelay: 500,
nextPageDelay: 2000,
// set to -1 for no limit
maxRequests: -1,
totalRequestsSent: 0,
},
init: function (data, config) {
Linkedin = {
config: {
scrollDelay: 500,
actionDelay: 500,
nextPageDelay: 2000,
// set to -1 for no limit
maxRequests: 100,
totalRequestsSent: 0,
},
init: function (data, config) {
match stxt {
stxt.contains("ana") => {
//dosomething
},
stxt.contains("woobs") => {}
}
/* To be able to return Templates */
use rocket_contrib::templates::Template;
use std::collections::HashMap;
/* Diesel query builder */
use diesel::prelude::*;
/* Database macros */
use crate::schema::*;
/* Import macros and others */
use crate::schema::*;
/* For beeing able to serialize */
use serde::Serialize;
#[derive(Debug, Queryable, Serialize)]
pub struct Hero {
pub id: i32,
pub fantasy_name: String,