Skip to content

Instantly share code, notes, and snippets.

About CSS unit

"line-height", "letter-spacing" should not be used "px" unit.
If you use "px" unit, it is not changed "automatically" when the font size was changed. like in PC or tablet or mobile.

  • Check wp-config.php permission(Set 644)
  • Show error setting on .htaccess
php_flag display_errors on
  • Set debug mode on wp-config.php
  • Access by Firefox.(not Chrome)
@sontek
sontek / rendered_fonts.js
Created January 12, 2021 15:02
A way to get all rendered fonts on a page
/*
save this file as "rendered_fonts.js"
yarn add puppeteer
node rendered_fonts.js
*/
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
@shimpe
shimpe / colored_word.py
Created December 11, 2022 13:24
Make caption with multiple colors in moviepy
# Import everything needed to edit video clips
from moviepy.editor import *
from vectortween.PointAnimation import PointAnimation
fps = 25
duration = 10
W = 2000
H = 500
# Generate a text clip