Testing embedded content
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
| from tkinter import * | |
| from PIL import ImageTk,Image | |
| import time | |
| import os | |
| targetImageWidth = 850 | |
| targetImageHeight = 400 | |
| inputImageWidth = 0 | |
| inputImageHeight = 0 |
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
| const a = vec(1, 2, 3, 4) | |
| console.log(a.length, a) | |
| // standard property access | |
| console.log(a[0], a.y, a.b, a.t) | |
| // swizzling | |
| console.log(a.xy, a.zyx, a.xxyy) |
fn<Function>Function that will be rate-limitedoptions<Object>Configurable optionsmax<number>Maximum number of active instances. Default:10delay<number>Minimum delay between calls in milliseconds. Default:10
- Returns:
<Function>with the same signature asfn
WebSocket server in node
adapted from https://robinmalfait.com/blog/natural-sorting-of-strings-containing-numbers
fixed an issue where foo_1_bar would come after foo_14_bar by consuming numbers before the continue
usage:
import { compare } from './compare.js'
const list = [OlderNewer