Skip to content

Instantly share code, notes, and snippets.

View EsteveSegura's full-sized avatar
❄️
Focusing

Esteve Segura EsteveSegura

❄️
Focusing
View GitHub Profile
@EsteveSegura
EsteveSegura / tips.html
Created November 4, 2019 18:41
tips.html
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
<title>neighborhoodSign</title>
<style>
@EsteveSegura
EsteveSegura / TwitchManager.cs
Created March 9, 2020 15:37
Unity + twitch chat.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using System.ComponentModel;
using System.Net.Sockets;
using System.IO;
public class TwitchIntegration : MonoBehaviour{
@EsteveSegura
EsteveSegura / Ball.cs
Created March 9, 2020 15:40
Ball controller.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Ball : MonoBehaviour{
public Rigidbody rb;
public float force;
void Start(){
@EsteveSegura
EsteveSegura / FindIndexPi.js
Created July 17, 2020 17:23
Encontrar strings dentro de pi!
const fs = require('fs')
let preLoadPi = fs.readFileSync('./pi-billion.txt', 'utf-8')
function findIndexInPi(str,pi){
let n = parseInt(str,36)
let index = preLoadPi.indexOf(n)
let nL = n.toString().split("").length
let numInPi = ""
@EsteveSegura
EsteveSegura / Montecarlo.js
Created July 20, 2020 16:12
calculate pi
let r = 5;
let points_total = 0;
let points_inside = 0;
while (1) {
points_total++;
let x = Math.random() * r * 2 - r
let y = Math.random() * r * 2 - r
@EsteveSegura
EsteveSegura / discordAuth.js
Created August 12, 2020 20:45
oauth discord
const express = require('express');
const btoa = require('btoa');
const fecth = require('node-fetch');
const app = express();
const idDiscord = 'xxxxxxxxxxxxxxxx';
const secretDiscord = 'xxxxxxxxxxxxxxxx';
const redirect = 'http://localhost:3000/callback';
hey
@EsteveSegura
EsteveSegura / proxy.js
Created June 28, 2022 18:02
serverProxy
const net = require("net");
const server = net.createServer();
server.on("connection", (clientToProxySocket) => {
console.log("Client connected to proxy");
clientToProxySocket.once("data", (data) => {
let isTLSConnection = data.toString().indexOf("CONNECT") !== -1;
let serverPort = 80;
let serverAddress;
@EsteveSegura
EsteveSegura / SwearWordsList.txt
Created December 30, 2022 21:10
Swear Words List
cheesehead
whitepower
luckycammeltoe
illegal
slopies
cock-head
mothafuckings
pee
twunt
boink
2g1c
2 girls 1 cup
acrotomophilia
alabama hot pocket
alaskan pipeline
anal
anilingus
anus
apeshit
arsehole