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 |
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."
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/