View download_imgs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
View numguessinggame.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
func main() { | |
// accept user input |