Skip to content

Instantly share code, notes, and snippets.

View heybran's full-sized avatar
🏠
Working from home

Brandon Zhang heybran

🏠
Working from home
  • Somewhere in China
View GitHub Profile
@heybran
heybran / wordpress-photos.js
Created December 31, 2025 14:51
Fetch and build photos data submitted to WordPress Photos directory
import fs from "fs";
const photosJSONFile = "./src/photos/photos.json";
const authorId = 21073844; // Need to replace it with your author ID.
const baseURL = "https://wordpress.org/photos/wp-json/wp/v2/photos/";
const getURL = (page, perPage) => {
return (
baseURL + `?author=${authorId}&per_page=${perPage}&page=${page}&_embed`
);
theme = "emacs"
[editor]
# Line number will be based on your current cursor position.
line-number = "relative"
# Enable mouse mode (default: true)
# If set to true, you'll be able to select text with your mouse,
# and then you can perform normal actions like cut and paste,
# personally I don't like it.
mouse = false
theme = 'github_light_colorblind'
[editor]
line-number = 'absolute'
mouse = false
bufferline = 'always'
auto-format = false
auto-save = true
true-color = true