Skip to content

Instantly share code, notes, and snippets.

@nvdaes
nvdaes / addon.yml
Created March 10, 2020 12:26
GitHub workflow to manage NVDA add-ons with GitHub Actions
name: Build and release NVDA add-on
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
@nvdaes
nvdaes / setup.cfg
Created March 10, 2020 12:11
Configuration file for linting NVDA add-ons with GitHub Actions
[flake8]
# Plugins
use-flake8-tabs = True
# Not all checks are replaced by flake8-tabs, however, pycodestyle is still not compatible with tabs.
use-pycodestyle-indent = False
continuation-style = hanging
## The following are replaced by flake8-tabs plugin, reported as ET codes rather than E codes.
# E121, E122, E123, E126, E127, E128,
## The following (all disabled) are not replaced by flake8-tabs,
@nvdaes
nvdaes / epubsave.bat
Last active January 12, 2021 13:58
Batch file for validating/saving epub folders or archives with EpubCheck and ACE, tested on Windows 10 in Spanish.
@echo off
title = "EpubCheck/ACE"
SETLOCAL
:start
set /p choice="¿Quieres validar un ePUB descomprimido? (s/n/c)"
if not "%choice%" == "s" if not "%choice%" == "n" if not "%choice%" == "c" goto :start
if "%choice%" == "c" goto :EOF
if "%choice%" == "n" goto :checkFile
set /p file="Nombre de la carpeta que contiene el libro"
java -jar epubcheck-4.1.1/epubcheck.jar "%file%" -mode exp -save --failonwarnings > output.txt 2>&1
@nvdaes
nvdaes / githubPushNotifier.gs
Created October 28, 2018 10:40
Google app script to send email notifications when GitHub repos trigger push events
var sendTo = "emailAddress@example.com";
function doPost(e){
return handleResponse(e);
}
function handleResponse(e) {
var jsonString = e.postData.contents;
var payload = JSON.parse(jsonString);
var subject = payload.pusher.name + " pushed " + payload.commits.length + " commits to " + payload.repository.name;
@nvdaes
nvdaes / readme.md
Last active April 1, 2018 04:49
Translations for the VitalSource Bookshelf NVDA add-on website at https://addons.nvda-project.org

The functionality of this add-on was included in NVDA 2018.1, so the corresponding webpages have been removed. Anyway, here are the old webpages, to remember and aknowledge the work of the NVDA translation team.

@nvdaes
nvdaes / viki.md
Last active March 20, 2018 18:18
Viki

Homenaje a Viki

Venir aquí para decirte adiós es algo que estaba prescrito de antemano, es cierto que no ha sido ninguna sorpresa, sin embargo, por inevitable que resultara el desenlace, nunca se presenta grata una despedida así, a tan temprana edad. Hoy, en esta tarde, el pueblo entero lamenta tu pérdida. Por méritos propios, por tu simpatía y tu generosidad, has sabido granjearte el aprecio y el cariño de la gente. Desde muy joven destacaste por tus hazañas y travesuras, aquel chico indomable hijo de Aurelio y de la Leo que parecía incorregible... Sin embargo, quien te conoce, sabe que no había en tu rebeldía encono ni maldad. Era más bien una indocilidad juvenil que se quedó a vivir en ti hasta los últimos días tu vida, porque tú, querido Viki, siempre has sido joven. No sé cuál era tu secreto, tal vez estaba en que comprendiste con la perspicacia de un viejo que la existencia, aun siendo un asunto grave, no había que tomársela tan en serio.

La impronta que ha dejado

@nvdaes
nvdaes / appveyor.yml
Last active May 21, 2019 16:17
AppVeyor configuration file to release NVDA add-ons on GitHub or FTP. (Created by @abdel792).
version: '{branch}-{build}'
environment:
PY_PYTHON: 3.7-32
install:
- cmd: >-
set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
python -m pip install -U pip
pip install wheel
@nvdaes
nvdaes / index.html
Last active October 8, 2017 20:14
Images with accessibility
<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Prueba</title>
</head>
<body>
<header>
<h1>Ejemplos de gráficos con accesibilidad</h1>
</header>
@nvdaes
nvdaes / skipTranslation.py
Created February 6, 2017 21:27
Get messages translated in NVDA screen reader core
# -*- coding: UTF-8 -*-
# skipTranslation: Module to get messages translated in NVDA
# Based on implementation made by Alberto Buffolino
# https://github.com/nvaccess/nvda/issues/4652
#Copyright (C) 2016 Noelia Ruiz Martínez
# Released under GPL 2
def getTranslatedMessage(message):
return _(message)