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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| downloadPdfWithAidAndBid() { | |
| keys='tokenKey="([A-F0-9]+)".*timeKey="([0-9]+)".*timeFlag="([0-9]+)"' | |
| requestKeyResult=$(curl "http://read.nlc.cn/OutOpenBook/OpenObjectBook?aid=$1&bid=$2") | |
| [[ $requestKeyResult =~ $keys ]] |
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
| google.*##.g:has(a[href*="x-mol.com"]) | |
| google.*##.g:has(a[href*="drivereasy.com"]) | |
| google.*##.g:has(a[href*="baidu.hk"]) | |
| google.*##.g:has(a[href*="xukeng.com"]) | |
| google.*##.g:has(a[href*="dict.cn"]) | |
| google.*##.g:has(a[href*="ichacha.net"]) | |
| google.*##.g:has(a[href*="hujiang.com"]) | |
| google.*##.g:has(a[href*="penhen.com"]) | |
| google.*##.g:has(a[href*="pianbiao.com"]) | |
| google.*##.g:has(a[href*="dictall.com"]) |
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
| #!/usr/bin/env python | |
| import os | |
| def decode_bytes(data: bytes) -> str: | |
| return data.decode("utf-16-le") | |
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 Trello Show Card Short ID | |
| // @version 1 | |
| // @grant none | |
| // @include https://trello.com/b/* | |
| // @run-at document-idle | |
| // ==/UserScript== | |
| (function(){ | |
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
| { | |
| "Default" : { | |
| "app/options" : [ | |
| "Alt-O" | |
| ], | |
| "automation/lua/trim-lines/Trim Lines" : [ | |
| "Ctrl-Shift-S" | |
| ], | |
| "edit/find_replace" : [ | |
| "Ctrl-F" |
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
| $FileHT = @{} | |
| $Folder = Convert-Path "." | |
| foreach ($file in Get-ChildItem -Recurse -Include *.m4a,*.mp3 -Path $Folder) { | |
| $Name = $file.Name | |
| $objShell = New-Object -ComObject Shell.Application | |
| $objFolder = $objShell.Namespace($Folder) | |
| $objFile = $objFolder.ParseName($Name) |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>So, You Like Classical Music</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" integrity="sha256-OweaP/Ic6rsV+lysfyS4h+LM6sRwuO3euTYfr6M124g=" crossorigin="anonymous" /> | |
| </head> |
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
| <?xml version='1.0'?> | |
| <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
| <fontconfig> | |
| <match target="font"> | |
| <edit mode="assign" name="autohint"> | |
| <bool>true</bool> | |
| </edit> | |
| <edit mode="assign" name="hinting"> | |
| <bool>true</bool> | |
| </edit> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="wilih=device-wilih" /> | |
| <title>Test Page</title> | |
| <link rel="stylesheet" href="style.css" type="text/css" media="all" /> | |
| </head> |
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
| var excellent = $('[data-dyf="95"]'); | |
| var good = $('[data-dyf="85"]'); | |
| var random = Math.max(1, Math.floor(Math.random() * good.length)); | |
| for (i = 0; i < excellent.length; i++) { | |
| excellent[i].checked = true; | |
| }; | |
| good[random].checked = true; | |
| $("#btn_xspj_bc").click(); |
NewerOlder