This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import sys | |
import time | |
import socket | |
import random | |
import argparse | |
def args_parser(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import math | |
import pygame | |
import random | |
COLOR_DE_FONDO = (0,0,0) | |
N_PARTICULAS_MIN = 50 | |
N_PARTICULAS_MAX = 100 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title | value | |
---|---|---|
Hello word! | This is a hello word madafaka | |
Second note | this is the second note | |
Tercera nota | ashdjasjd prueba asdaksd alv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
GAME OF LIFE - SFML implementation | |
*/ | |
#include <iostream> | |
#include <stdlib.h> | |
#include "SFML/Graphics.hpp" | |
#define WINDOW_WIDTH 1000 | |
#define WINDOW_HEIGHT 700 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
from random import random | |
class Jugador: | |
def __init__(self): | |
self.hp: int = 100 | |
self.mp: int = 100 | |
self.nombre: str = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.head.innerHTML = `<style>* { | |
margin: 0; | |
padding: 0; | |
} | |
.hacked { | |
background: black; | |
color: lime; | |
height: 100vh; | |
display: flex; |