Skip to content

Instantly share code, notes, and snippets.

@danwang
danwang / nPalindromes.js
Created January 14, 2020 13:05
nPalindromes
const nPalindromes = length =>
parseInt(
"4" +
"9".repeat(length - 1) +
"5" +
"0".repeat(Math.floor((length - 1) / 2))
);
# -*- coding: utf-8 -*-
from PIL import Image
import os
import shutil
# exists src_dir/hoge.jpg, fuga.png, etc...
src_dir = "/Users/name/hoge/"
# create dst_dir/yyyymmdd/
dst_dir = "/Users/name/fuga/"