Skip to content

Instantly share code, notes, and snippets.

View meowctl's full-sized avatar
🐐
:>

lumi meowctl

🐐
:>
View GitHub Profile
#include <iostream>
using namespace std;
bool presente(int* lista, int tamanho, int valor) {
for (int i = 0; i < tamanho; i++) {
if (lista[i] == valor)
return true;
}
return false;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.StandardProtocolFamily;
import java.net.UnixDomainSocketAddress;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.util.Random;
package main
import (
"bytes"
"encoding/json"
"fmt"
"log"
"math/rand"
"net/http"
"net/url"
def _fetch(
self, *args, headers=None, retry_http=True, http_retries=0, conn_retries=0, **kwargs
):
try:
with urlopen(
Request(
*args,
headers={**self.headers, **(headers or {})},
**kwargs,
),