Skip to content

Instantly share code, notes, and snippets.

View mufidu's full-sized avatar
⛱️
Exploring around

Muhammad Mufid Utomo mufidu

⛱️
Exploring around
View GitHub Profile
@mufidu
mufidu / numguessinggame.go
Created August 16, 2021 07:11
A number guessing game written in Go language
package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
// accept user input
@mufidu
mufidu / download_imgs.py
Last active December 4, 2023 23:16
Download all images in markdown files and rename the links to point to the local files
# Download all images from all FOLDER_NAME in FOLDER_NAME folder
# and save them to FOLDER_NAME/_attachments folder.
# Then replace remote image paths with local paths.
# Usage: python download_imgs.py
import os
import urllib
import urllib.parse
import urllib.request
import re