Debian:
sudo apt install texlive-latex-base
sudo apt install texlive-extra-utils
MacOS Homebrew (untested):
<!-- wp:paragraph {"align":"center","customTextColor":"#000000","backgroundColor":"very-light-gray","fontSize":"small"} --> | |
<p style="color:#000000;text-align:center" class="has-background has-small-font-size has-very-light-gray-background-color">Gutenberg Sample Content.<br/>Put together with ❤️ by <a href="https://artisanthemes.io/">Artisan Themes</a>.</p> | |
<!-- /wp:paragraph --> | |
<!-- wp:heading {"level":1} --> | |
<h1>This is a heading (H1)</h1> | |
<!-- /wp:heading --> | |
<!-- wp:heading --> | |
<h2>This is a heading (H2)</h2> |
<?php | |
// This doesn't really work just yet | |
add_action( | |
'rest_api_init', | |
function () { | |
if (!function_exists('use_block_editor_for_post_type')) { | |
require ABSPATH . 'wp-admin/includes/post.php'; | |
} |
mames(){ | |
ls -l ~/mame/roms | |
local IFS=$'\n' | |
echo "Search for: " | |
read inp | |
echo . | |
local PS3="Type a number: " | |
select file in $(mame -listfull|grep -i "$inp") | |
do | |
# get first word from selected string/line using awk |
Debian:
sudo apt install texlive-latex-base
sudo apt install texlive-extra-utils
MacOS Homebrew (untested):
@function cfg($key, $map: $cfg) { | |
@return map-get($map, $key); | |
} | |
$tach:( | |
values: ( | |
0: 0, | |
1: 1px, | |
2: 2px, | |
), | |
rules: ( |
@function cfg($key, $map: $cfg) { | |
@return map-get($map, $key); | |
} | |
$cfg: ( | |
whitespace: ( | |
values: ( | |
0: 0, | |
1: 1px, |
Old | Replacement |
---|---|
$.animate | Velocity.js |
slick.js |
// Calculates the width of something that hugs the browser edge | |
// to a column inside a grid system with a max-width (Tachyons) | |
.sideimg { | |
$mw: 1920px; // max-width of container | |
$col: 40; // tach col width in percentage | |
// this doesn't evaluate | |
width: calc( 50% + ( -$mw / 2 + $mw * $col/100 ) ); | |
{% spaceless %} | |
{# | |
This Timber twig will output an <picture> with fallbacks, srcset x2, alt, width and height | |
Usage: | |
`{% include '_webp.twig' with { class: "db ma0 center w-100", img: Image(post.acf_image), w: 507, h: 507 } %}` | |
@params |