This file contains hidden or 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
// ==UserScript== | |
// @name Google ─ Auto‑click “Ver original *” | |
// @namespace https://tampermonkey.net/users/señor | |
// @version 1.1.0 | |
// @description Hace clic automáticamente en todos los elementos con jsaction="YjLrZe" cuyo texto comience con "Ver original ", preservando la posición de scroll y evitando rebotes visuales. Es importante adaptar el prefijo al idioma del usuario. | |
// @author Apocryphon-X (Asistencia: GPT-4o) | |
// @match *://www.google.com/* | |
// @grant none | |
// @run-at document-idle | |
// ==/UserScript== |
This file contains hidden or 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
try: | |
# pip install requests rich | |
import requests | |
from rich.console import Console | |
from rich.progress import Progress, SpinnerColumn, TimeElapsedColumn | |
from rich.traceback import install | |
from rich import inspect | |
from rich import print | |
except ImportError as e: | |
print(e, "- Is it installed?") |
This file contains hidden or 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
#ifdef LOCAL | |
#define _FORTIFY_SOURCE 2 | |
#define _GLIBCXX_DEBUG_PEDANTIC | |
#define _GLIBCXX_DEBUG | |
#define debug(x) \ | |
std::cerr << std::boolalpha << "\x1b[33m[DEBUG] " \ | |
<< #x" = " << x << "\x1b[0m\n" | |
#else | |
#define NDEBUG 1 | |
#define debug(x) 1 |
This file contains hidden or 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
-- * Author: Dante Mendoza Leyva | |
-- * Group: 4CV13 | |
library ieee; | |
use ieee.std_logic_1164.all; | |
use ieee.std_logic_unsigned.all; | |
use ieee.numeric_std.all; | |
entity seven_segments_driver is Port ( | |
clk: in std_logic; |
This file contains hidden or 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
library ieee; | |
use ieee.std_logic_1164.all; | |
use ieee.std_logic_unsigned.all; | |
-- * Author: Dante Mendoza Leyva (4CV13) | |
entity seven_segments_controller is Port ( | |
clk: in std_logic; | |
anodes: out std_logic_vector(3 downto 0); | |
display_glyph: out std_logic_vector(6 downto 0) |
This file contains hidden or 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
""" | |
The MIT License (MIT) | |
Copyright (c) 2024 - Present, @Apocryphon-X (Dante Mendoza Leyva) | |
Permission is hereby granted, free of charge, to any person obtaining a | |
copy of this software and associated documentation files (the "Software"), | |
to deal in the Software without restriction, including without limitation | |
the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
and/or sell copies of the Software, and to permit persons to whom the |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
struct color { | |
short r; | |
short g; | |
short b; | |
}; | |
std::string as_24bit_ansi(color values) { |
This file contains hidden or 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
# MIT License: 2023 - Present | |
import requests | |
import os | |
import sys | |
import json | |
from rich import print | |
API_TOKEN = os.getenv("OMEGAUP_API_TOKEN") |
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
using i64 = long long; | |
// Memory Required: O(2N) | |
i64 Tree[i64(2e6) + 1]; | |
i64 N, K, X; | |
// Puntual Update: O(log N) |
NewerOlder