Skip to content

Instantly share code, notes, and snippets.

View eevmanu's full-sized avatar
🎯
focused

Manuel Solorzano eevmanu

🎯
focused
View GitHub Profile
@eevmanu
eevmanu / readme.md
Created May 1, 2025 19:44
indoor air pollution research made by grok x.com using deepersearch on 20250501

Key Points

  • Research suggests gas stoves may increase dangerous airborne particles like nitrogen dioxide (NO2) and particulate matter (PM2.5), potentially linked to health risks.

  • The evidence leans toward long-term exposure increasing asthma risk in children, but findings are mixed, with some studies showing no significant association when adjusted for confounders.

  • There is controversy, with some studies finding associations and others questioning the evidence due to study quality and heterogeneity.

Overview

@eevmanu
eevmanu / prompt-improver-spanish.txt
Last active November 5, 2025 18:41
prompt improver
# Rol y Objetivo
Perfeccionar y pulir el texto en español proporcionado para alinearlo con la claridad, matices, fluidez estilística y estándares esperados por hablantes nativos educados de español estadounidense. Enfocarse en la adaptación para una escritura idiomática, coherente y atractiva.
# Instrucciones
- No traducir: asumir que la entrada ya está en español.
- Mejorar áreas con frases torpes, imprecisas, redundantes o poco naturales.
- Adaptar reflexivamente el tono, la estructura, el vocabulario y la formalidad según sea necesario para mantener la intención semántica y el contexto.
- Evitar la sobreedición o distorsionar el significado deseado; aplicar un juicio editorial sensible al contexto para maximizar la legibilidad, concisión e impacto.
- Comenzar cada sesión con una lista de verificación concisa (3-7 puntos conceptuales) que describa los pasos clave que seguirá para perfeccionar y explicar el texto, manteniendo los elementos de la lista de alto nivel en lugar de específicos de implementación.

How to Read a Paper Version of February 17, 2016

S. Keshav David R. Cheriton School of Computer Science, University of Waterloo Waterloo, ON, Canada [email protected]

ABSTRACT Researchers spend a great deal of time reading research pa-

@eevmanu
eevmanu / userscript.js
Created March 30, 2025 15:05
script to sort sciencedirect topics from the one that has more to the least in https://www.sciencedirect.com/topics
// ==UserScript==
// @name ScienceDirect Topics Sorter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Sorts ScienceDirect topic blocks by count (descending) on Ctrl+Shift+S, toggles back to original order.
// @author Your Name Here
// @match https://www.sciencedirect.com/topics*
// @grant none
// @run-at document-idle
// ==/UserScript==
@eevmanu
eevmanu / download_python_concurrency_docs.sh
Last active March 30, 2025 02:30
extract part of python official docs related to concurrency from the python official repo in github
#!/bin/bash
# Create a new output file
output_file="python_concurrency_docs.md"
echo "# Python Concurrency Documentation" > "$output_file"
echo "Compiled on $(date)" >> "$output_file"
echo "" >> "$output_file"
# Process each URL
while IFS= read -r url; do
@eevmanu
eevmanu / readme.md
Created March 29, 2025 02:04
attempt to convert cyberdream - https://github.com/scottmckendry/cyberdream.nvim - into a vscode theme extension using as inspiration (context enrichment) the noctis - https://github.com/liviuschera/noctis - theme, using `gemini-2.5-pro-exp-03-25`

Okay, let's structure a VS Code extension for the Cyberdream theme, taking inspiration from the Noctis structure while using the Cyberdream palette and TextMate definitions.

Goal: Create a VS Code extension providing Cyberdream (dark) and Cyberdream Light color themes.

Strategy:

  1. Adopt Structure: Mimic the noctis project structure (src/, themes/, package.json, build script).
  2. Extract Palette: Define the Cyberdream dark and light color palettes in a dedicated file (src/colors.mjs).
  3. Translate Syntax: Convert the provided cyberdream.tmTheme and cyberdream-light.tmTheme files into VS Code's tokenColors JSON format. Add basic semantic highlighting rules.
  4. Define Workbench UI: Create workbench color definitions (src/workbench/*.mjs) for both variants, mapping the Cyberdream palette to VS Code UI elements. Incorporate the "borderless picker" style.
@eevmanu
eevmanu / userscript.js
Created March 28, 2025 00:16
YouTube Shorts & youtu.be Redirector - tampermonkey userscript
// ==UserScript==
// @name YouTube Shorts & youtu.be Redirector
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Redirects YouTube Shorts and youtu.be links to the standard watch page.
// @author Your Name (or handle)
// @match https://www.youtube.com/shorts/*
// @match https://youtu.be/*
// @grant none
// @run-at document-start
@eevmanu
eevmanu / download-lectures.sh
Last active March 27, 2025 21:30
MIT 6.172 | Fall 2018 | Undergraduate Performance Engineering of Software Systems course
curl -sSL 'https://ocw.mit.edu/courses/6-172-performance-engineering-of-software-systems-fall-2018/d0c73dd51c79b95196a2e6faa824e1b4_MIT6_172F18_lec1.pdf' -o '6-172-performance-engineering-of-software-systems-lecture-01-introduction-and-matrix-multiplication.pdf'
curl -sSL 'https://ocw.mit.edu/courses/6-172-performance-engineering-of-software-systems-fall-2018/1a57adbec9520270d4485b42a2e1a316_MIT6_172F18_lec2.pdf' -o '6-172-performance-engineering-of-software-systems-lecture-02-bentley-rules-for-optimizing-work.pdf'
curl -sSL 'https://ocw.mit.edu/courses/6-172-performance-engineering-of-software-systems-fall-2018/cc6983c9ebd77c28e8ae85bc0e575360_MIT6_172F18_lec3.pdf' -o '6-172-performance-engineering-of-software-systems-lecture-03-bit-hacks.pdf'
curl -sSL 'https://ocw.mit.edu/courses/6-172-performance-engineering-of-software-systems-fall-2018/8955b91dbd47c241fb2904c700fdb697_MIT6_172F18_lec4.pdf' -o '6-172-performance-engineering-of-software-systems-lecture-04-assembly-language-and-computer-architecture.pdf'
c
@eevmanu
eevmanu / readme.md
Created March 26, 2025 17:58
`gemini-2.5-pro-exp-03-25` attempt to use ghostscript `gs` to create a dark mode version of an input pdf file

Okay, let's break this down.

Yes, it is possible to achieve a color inversion effect in Ghostscript, similar to the invert(100%) part of your CSS filter. Replicating the hue-rotate(180deg) part exactly is significantly more complex within Ghostscript's standard processing model, but the simple inversion often gets you 90% of the way to a usable "dark mode".

The core idea is to use PostScript's transfer functions. These functions modify color component values just before they are rendered. To invert a color component c (where c is between 0 and 1), the function is simply 1 - c.

We need to apply this function to all relevant color spaces commonly found in PDFs: DeviceGray, DeviceRGB, and DeviceCMYK.

Here is the Ghostscript command you can use in a Bash shell script:

@eevmanu
eevmanu / readme.md
Created March 23, 2025 21:51
Amazon URL Redirect userscript explanation and userscript.js file to have a Amazon Product URL Cleaner

Okay, I understand the requirements. You want a Tampermonkey userscript that redirects Amazon product URLs to their most concise form, specifically https://www.amazon.es/dp/<product_id>, regardless of whether the original URL includes the product name or query parameters. Here's a robust solution, along with a detailed explanation:

// ==UserScript==
// @name         Amazon URL Cleaner (ES)
// @namespace    http://tampermonkey.net/
// @version      0.5
// @description  Redirects Amazon.es product URLs to the shortest /dp/ format.
// @author       You
// @match        https://www.amazon.es/*