Skip to content

Instantly share code, notes, and snippets.

View ishowshao's full-sized avatar

ishowshao ishowshao

  • Shanghai, China
View GitHub Profile
@ishowshao
ishowshao / index.md
Created April 2, 2018 12:36
iOS 11 wkwebview env(safe-area-inset-top)

iOS 11 中 wkwebview 中 使用

constant(safe-area-inset-top)
env(safe-area-inset-top) 

会导致被设置区域闪动,一种被异步/延时设置了样式的感觉

@ishowshao
ishowshao / rename-ctime.js
Last active July 2, 2023 13:46
rename all files in the folder to the file creation time
// The frame is written by GPT, and I perfect the details
const fs = require("fs");
const path = require("path");
const dayjs = require('dayjs');
const folderPath = "path/to/folder";
fs.readdir(folderPath, (err, files) => {
if (err) {
console.error(err);