Skip to content

Instantly share code, notes, and snippets.

@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
@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();
  • 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)

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.

@sola-msr
sola-msr / file0.txt
Created June 19, 2018 01:28
【Vagrant】vagrant upするとエラーが発生するようになったので修正しました、という軌跡 ref: https://qiita.com/sola-msr/items/b36b647a12511098daac
>vagrant up

Workflow

CheckList after coding.

  1. Submit Google spread sheet for the project for QC(Quality Control).
    1. Add page title to header <title> tag for SEO.
    2. If sub page, Did you add sub page name to <title>?
    3. Did you add text to Alt attribute on img tag? (You need to add text to alt)
    4. Did you add link & anchor link to href attr?
    5. Check h1,h2,h3 ... number order. should not skip number. Check with developer tool bar "document outline".
  2. Fix Errors
  3. Remove unuse 404 error(js, css, imgs). Check console on Google Chrome for it.
.clearfix:before {
display: table;
content: " ";
}
.clearfix:after {
display: table;
content: " ";
clear: both;
}
@neilgee
neilgee / markup.php
Last active January 31, 2021 15:56
WordPress Media Uploader For Multiple Images
<?php
/* One of the upload fields as an example */
?>
<tr>
<th><label for="ols_user_meta_image_1"><?php _e( 'OLS Image 1', 'textdomain' ); ?></label></th>
<td>
<!-- Outputs the image after save -->
<img src="<?php echo esc_url( get_the_author_meta( 'ols_user_meta_image_1', $user->ID ) ); ?>" style="width:150px;"><br />
<!-- Outputs the text field and displays the URL of the image retrieved by the media uploader -->
@adamstac
adamstac / gist:7462202
Last active March 27, 2025 11:27
Install and configure Sendmail on Ubuntu

Install and configure Sendmail on Ubuntu

This should help you get Sendmail installed with basic configuration on Ubuntu.

  1. If sendmail isn't installed, install it: sudo apt-get install sendmail
  2. Configure /etc/hosts file: nano /etc/hosts
  3. Make sure the line looks like this: 127.0.0.1 localhost yourhostname
  4. Run Sendmail's config and answer 'Y' to everything: sudo sendmailconfig
  5. Restart apache sudo service apache2 restart