When a key combination is displayed, the modifiers are written in the order presented here. For example, Control + Option + Shift + Command + Q would be written as ⌃⌥⇧⌘Q.
| Sym | Key | Alt |
|---|---|---|
| ⌃ | Control | |
| ⌥ | Option |
| /** | |
| * Table Filter | |
| * @usage: <input type="search" onkeyup="Tablefilter(this, 'VReportList')" />\ | |
| * where VReport is the id of the table body | |
| */ | |
| function Tablefilter (phrase, _id) { | |
| var words = phrase.value.toLowerCase().split(" "); | |
| var table = document.getElementById(_id); | |
| var ele; |
| import argparse | |
| import os | |
| import tempfile | |
| import autopy | |
| import img2pdf | |
| def screenshot(top_left, right_bottom, next_page, total_page): | |
| rect_size = (right_bottom[0] - top_left[0], right_bottom[1] - top_left[1]) |
| const os = require("os"); | |
| //Create function to get CPU information | |
| function cpuAverage() { | |
| //Initialise sum of idle and time of cores and fetch CPU info | |
| var totalIdle = 0, totalTick = 0; | |
| var cpus = os.cpus(); | |
| //Loop through CPU cores |
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\Wine\Mac Driver] | |
| "LeftCommandIsCtrl"="Y" | |
| "RightCommandIsCtrl"="Y" | |
| "LeftOptionIsAlt"="Y" | |
| "RightOptionIsAlt"="Y" | |
| [HKEY_CURRENT_USER\Control Panel\Desktop] | |
| "FontSmoothing"="2" |
| import os | |
| from time import sleep | |
| path = os.getcwd() | |
| files = os.listdir(path) | |
| #install package | |
| os.system('sudo apt install calibre -y && sudo apt update') | |
| #remove espacos e insere _ |
by Jenny Knuth, based on the work of Chris Coyier and Taylor Hunt
A data URI is a nice way to include a web resource without needing to make an HTTP request. Chris Coyier explains the technique nicely in Probably Don't Base64 SVG.
While a PNG might use Base64 encoding, for SVG, there is a better way.
Taylor Hunt's experiments led to this solution for optimizing SVGs in data URIs:
"So the best way of encoding SVG in a data URI is data:image/svg+xml,[actual data]. We don’t need the ;charset=utf-8 parameter (or the invalid ;utf8 parameter…), because URLs are always ASCII."