Skip to content

Instantly share code, notes, and snippets.

View edo0xff's full-sized avatar
👾
Just coding

Eduardo edo0xff

👾
Just coding
View GitHub Profile
@edo0xff
edo0xff / flood.py
Created September 22, 2016 20:41
UDP Flood
# -*- coding: utf-8 -*-
import sys
import time
import socket
import random
import argparse
def args_parser():
from math import cos
from math import sin as sen
from math import tan
from math import e
def bisec(fx, a, b, iteraciones):
for i in range(iteraciones):
print "----------------------------------"
x = a
fa = eval(fx)
import math
def calificacionParaSidiumPendejo(calf_obtenida, calf_total):
calf_obtenida = math.ceil(float(calf_obtenida))
return math.ceil((calf_obtenida*100.0)/float(calf_total))
def calificacionQueDeberiaSerAlv(regla_de_tres, porcentaje_asignado):
return (float(regla_de_tres)*float(porcentaje_asignado))/100.0
def printCalfArray(array):
import sys
import math
import pygame
import random
COLOR_DE_FONDO = (0,0,0)
N_PARTICULAS_MIN = 50
N_PARTICULAS_MAX = 100
title value
Hello word! This is a hello word madafaka
Second note this is the second note
Tercera nota ashdjasjd prueba asdaksd alv
import time
import discord
import ErinaBot as erina
from datetime import datetime
ACCESS_TOKEN = "your_atoken_here"
client = discord.Client()
erina.conversation.load_dictionary("intentions.yml")
/**
GAME OF LIFE - SFML implementation
*/
#include <iostream>
#include <stdlib.h>
#include "SFML/Graphics.hpp"
#define WINDOW_WIDTH 1000
#define WINDOW_HEIGHT 700
@edo0xff
edo0xff / api.py
Created May 26, 2020 03:51
Simple RESTful API server written in Python using Flask
# https://edo0xff.me/blog/e/escribiendo_una_rest_api_con_python
import jwt
import json
from flask import Flask
from flask_restful import reqparse, abort, Api, Resource
from bson import json_util, ObjectId
from pymongo import MongoClient
from __future__ import annotations
from random import random
class Jugador:
def __init__(self):
self.hp: int = 100
self.mp: int = 100
self.nombre: str = ''
document.head.innerHTML = `<style>* {
margin: 0;
padding: 0;
}
.hacked {
background: black;
color: lime;
height: 100vh;
display: flex;