• 20 killer JavaScript single line codes


    👋 This paper sorts out some practical JavaScript single line code,Very easy to use~~ Get the value of browser cookie adoptdocument.cookieTo findcookievalue const cookie = name => `; ${document.cookie}`.split(`; ${name}=`).pop().split(‘;’).shift(); cookie(‘_ga’); // Result: “GA1.2.1929736587.1601974046” Color RGB to hexadecimal const rgbToHex = (r, g, b) => “#” + ((1 << 24) + (r << 16) + […]

  • Copy plate to clipping plate


    #coding:utf-8 import win32clipboard as clip import win32con from PIL import Image from cStringIO import StringIO ”’ Put a picture on the clipboard ”’ def setImage(data): clip. Openclipboard() # opens the clipboard clip. Emptyclipboard() # empty the clipboard first clip. Setclipboarddata (win32con. Cf_dib, data) # put the picture on the clipboard clip.CloseClipboard() if __name__ == ‘__main__’: […]

  • Oeasy teaches you to play VIM – 39 – # cut and paste


    Cut and paste Recall the last lesson We reviewed the whole subject in a big waymotion: Direct movement h j k l Line movement First lineg g Last lineG Line nn G Word movementwbe wIt’s to the next onewordBeginning of bYes to the currentwordBeginning of eYes to the currentwordThe end of exceptwordBesidesWORD Beginning and end […]

  • How to parse excel content in clipboard with JS


    catalogue preface 1. Paste event and clipboard 2. Content format in the clipboard 3. How to parse HTML strings preface This time, I recorded an idea last night: copy the excel content to the clipboard and convert it into the JSON format I want. The core is to convert the excel content into JSON. This […]

  • Python implements the operation of clipboard


    I learned this section on the return high-speed railway. Because I knew little about the CMD command line, I could only test the correct method step by step, so it took a lot of time. This blog can be regarded as a memo. First, let’s talk about the functions you want to achieve: By entering […]

  • python_ Everything – UI version


    scan_module.py ”’ Module information required for this class ”’ import string import os import time from copy import _reconstruct ”’ scan_module.py The content of this document is the scanning module, which is used to scan and save the scanning results. The code no longer uses or significantly reduces the functional programming code, but uses the […]

  • VBS saves the text in the clipboard and edits or saves it


    Saves the text in the clipboard vbs The principle is to first judge whether there is a file with the same name, followed by + 1, and then save the contents of the clipboard to the file with the user-defined extension   Copy codeThe code is as follows: set fso=createobject(“scripting.filesystemobject”) : name=1 Dim naNa = […]

  • Front end weekly issue 4


    Front end weekly publishes major events, articles and tutorials related to front-end technology every week, version updates of some frameworks, as well as codes and tools. You are welcome to publish and reprint regularly every week. Major events Take the JavaScript status survey in 2022 as an example——A few years later, the popular JavaScript status […]

  • 20 killer JavaScript single line code


    👋 This paper sorts out some practical JavaScript single line code,Very easy to use~~ Gets the value of the browser cookie adoptdocument.cookieTo findcookievalue const cookie = name => `; ${document.cookie}`.split(`; ${name}=`).pop().split(‘;’).shift(); cookie(‘_ga’); // Result: “GA1.2.1929736587.1601974046” Color RGB to hex const rgbToHex = (r, g, b) => “#” + ((1 << 24) + (r << 16) […]

  • Nodejs implements copying content to the clipboard


    The requirements are as follows: takeindex.txtAfter format conversion, the contents of are copied to the clipboard. index.txt The lotus seed is bitter in the heart and the pear is sour in the abdomen– Jin Shengtan in the late Ming and early Qing Dynasties Rain into the heart of the flower, becomes sweet and bitter. The […]

  • 51000 star! You can connect and control Android’s open source tools without root


    [introduction]: a gadget for controlling Android devices on PC. It can exchange clipboard, type with computer keyboard, transfer files, install programs, screenshots, screen recording and other functions between PC and Android devices. brief introduction Scrcpy can display and control Android devices connected via USB (or TCP / IP) without any root permission. It supports GNU […]

  • HTML character entity Encyclopedia


    HTML character entity Encyclopedia HTML character entity Encyclopedia This page summarizes common HTML character entities and some special less commonly used character entities. Click the specified character in the page to copy it to the clipboard. https://tooltt.com/info-html-entity/