Skip to content

Instantly share code, notes, and snippets.

@larry801
larry801 / arrow.js
Created April 18, 2019 06:36
Nested arrow function
const nodeFocus => () {
const jump => () {
let hea = document.querySelector(`h3.title a`);
if (hea !== null) {
hea.style.backgroundColor = "red";;
}
};
jump();
if (document.actionElement.tagName === `BODY`) {
jump();
@larry801
larry801 / pdfaddtext.py
Created March 21, 2019 11:51 — forked from ficapy/pdfaddtext.py
网页版本使用(20页使用限制) https://ocr.ficapy.com
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: ficapy
import io
from urllib.parse import urlencode
from base64 import b64encode
from pdf2image import convert_from_bytes
from PyPDF2 import PdfFileWriter, PdfFileReader
@larry801
larry801 / abstracEngine.py
Created February 9, 2019 07:46
A plugin sub system for NVDA external services like translation and so on.
# coding=utf-8
# Copyright (C) 2019 Larry Wang <larry.wang.801@gmail.com>
# This file is covered by the GNU General Public License.
import pkgutil
import baseObject
from gui.settingsDialogs import SettingsPanel, SettingsDialog
from gui import guiHelper
import gui
import wx
from synthDriverHandler import StringParameterInfo