Input: my name is bond
Name | Sample |
---|---|
myNameIsBond |
|
MyNameIsBond |
|
my_name_is_bond |
|
My_Name_Is_Bond |
|
MY_NAME_IS_BOND |
|
my-name-is-bond |
// Starting with an API returned data structure like this: | |
const Parameters = [ | |
{ | |
Name: "PASS", | |
Type: "SecureString", | |
Value: "cGFzc3dvcmQ=", | |
Version: 3, | |
LastModifiedDate: "2022-11-14T15:13:08.263Z", | |
ARN: "arn:aws:ssm:us-east-1:678000000000:parameter/PASS", |
\n | |
time_namelookup: %{time_namelookup}\n | |
time_connect: %{time_connect}\n | |
time_appconnect: %{time_appconnect}\n | |
time_pretransfer: %{time_pretransfer}\n | |
time_redirect: %{time_redirect}\n | |
time_starttransfer: %{time_starttransfer}\n | |
———\n | |
time_total: %{time_total}\n |
/** | |
* For ADP's 2022 sexual harrassment training | |
*/ | |
cr = () => { | |
const next = $('button.next-button:not(.disabled)') | |
if (next.length) { | |
next.click(); | |
} |
Input: my name is bond
Name | Sample |
---|---|
myNameIsBond |
|
MyNameIsBond |
|
my_name_is_bond |
|
My_Name_Is_Bond |
|
MY_NAME_IS_BOND |
|
my-name-is-bond |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Leaflet Map</title> | |
<meta charset="utf-8" /> | |
<link | |
rel="stylesheet" | |
href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" | |
/> | |
</head> |
Previously, for "cleaner HTML" I tended to prefer something like this:
<?php
$classes = ['cat', 'dog'];
$classAtt = empty($classes) ? "" : " class='" . implode($classes, ' ') . '"';
?>
<div<$= $classAtt ?>>Text</div>
That string concatenation is just gross, but the HTML is "nicer"; the opening tag will either be or
.
tell application "Safari" to set the bounds of the front window to {0, 0, 1600, 1080} |
Three package-lock.json files generated by node v14.16.0 and npm v6.14.11 on macOS, Ubuntu and Windows. Windows and macOS generated an identical file, Ubuntu omitted two optional packages, bindings and file-uri-to-path.
As expected, npm ci
installs an exact snapshot from package-lock.json, so installing from the ubuntu-generated lockfile on mac or windows will not install those packages. Doing the opposite and installing from the mac/windows lockfiles on Ubuntu causes no issues since the optional packages are not needed.
Source project is ideasonpurpose/docker-build, docker-based build tools primarily for developing WordPress sites.
# Cron on macOS 10.14+ requires Full Disk Access permissions in | |
# System Preferences->Security & Privacy. | |
# More here: https://apple.stackexchange.com/a/372810/42898 | |
# Removes downloads older than 14 days. Runs every 6 hours | |
45 */6 * * * find ~/Downloads -maxdepth 1 -mtime +14 -exec rm -rf {} \; >> /tmp/cron.log 2>&1 | |