Theory and Practice
About Archives Categories Tags Authors 中文 ไทย
  1. Tags
  2. File Input/Output

[Golang] Names scores - Problem 22 - Project Euler

October 23, 2018

Go solution to Names scores - Problem 22 - Project Euler.

 read more »

[Golang] Download File From URL

October 10, 2018

Download and save files (image, pdf, etc.) from given URL in Go.

 read more »

[Golang] Write Lines to File

April 09, 2018

Write a list of strings to file in Go programming language.

 read more »

[Golang] Calculate Directory Size Excluding Sub-Directories

March 24, 2018

Calcualte total size of files in folder, excluding sub-folders in Go.

 read more »

[Golang] Save File in QR Code

February 24, 2018

Embed file in QR code via Go programming language.

 read more »

[Golang] Caveat of fmt.Fprintf Use

March 01, 2017

Do not use fmt.Fprintf to write to file

 read more »

[Golang] Serve Template Data From YAML File

February 25, 2017

Extract template data from human readable YAML file and create textual output in Go.

 read more »

[Golang] Insert Line or String to File

January 30, 2017

Insert a line or string to n-th line of the file via Go programming language.

 read more »

[Golang] Append Line/String to File

January 23, 2017

Append text line or string to the end of file via Go programming language.

 read more »

[Golang] Resize Image From Web

January 13, 2017 (Updated: March 15, 2017)

Read an image from web and resize it in Go programming language.

 read more »

[Golang] Replace Pāli Word in Velthuis Scheme With Unicode

May 24, 2016

Find Pāli word in Velthuis scheme, and replace them with unicode via Go programming language.

 read more »

[Golang] Extract Text via State Machine and goquery

April 11, 2016

Extract text (i.e., footnote) in HTML via state machine and goquery in Go programming language.

 read more »

[Golang] Iterate over All DOM Elements in HTML

April 10, 2016 (Updated: April 15, 2016)

Iterate over all DOM elements in HTML via Go programming language. Use net/html package to parse and iterate all elements in HTML. Search for HTML links and output them in reStructuredText format.

 read more »

[Golang] Read Lines From File or String

April 06, 2016 (Updated: April 09, 2018)

Readlines from string or file in Go programming language.

 read more »

[Golang] Write String to File

April 05, 2016 (Updated: March 01, 2017)

Go - write string to file via os Create method and io Copy method.

 read more »

[Golang] Convert File Encoding From Big5 to UTF-8

March 21, 2016

Convert file encoding from Big5 to UTF-8 via Go programming language.

 read more »

[Golang] Download HTML From URL

March 19, 2016 (Updated: October 10, 2018)

Download and save HTML file from given URL via Go. Do nothing if the HTML file already locally exists.

 read more »

[Golang] Find Pāli Word in Velthuis Scheme

March 17, 2016

Find Pāli word in Velthuis scheme via Go programming language.

 read more »

[Golang] Read JPEG Image Date via Exif Metadata

March 16, 2016

Read JPEG image date from Exif metadata in Go programming language.

 read more »

[Golang] Minify HTML

March 10, 2016

Minify HTML via Go programming language.

 read more »

[Golang] Minify CSS

March 09, 2016

Minify CSS via Go programming language.

 read more »

[Golang] Online Concatenate and Compress JavaScript Files

March 07, 2016

Concatenate and compress JavaScript files via Go programming language and online Google Closure Compiler.

 read more »

[Golang] Concatenate JavaScript Files

March 06, 2016

Concatenate JavaScript files via Go programming language.

 read more »

[Python] Insert Line With Matched Pattern

March 01, 2016

Extract URL from reStructuredText link and insert the URL in the file as metadata via Python.

 read more »

[Python] Convert HTML Table to reStructuredText list-table

February 28, 2016

Python script to convert HTML table to reStructuredText list-table via Beautiful Soup 4.

 read more »

[Python] Concatenate JavaScript Files

February 25, 2016

Concatenate JavaScript files via Python script.

 read more »

[Python] Export PIXNET Blog to reStructuredText Files

February 17, 2016

Python scripts to export PIXNET blog posts to files of reStructuredText format.

 read more »

[Python] Convert Footnote to reStructuredText Format

February 15, 2016

Python Regular Expression to convert footnotes in file to reStructuredText format.

 read more »

[Python] Convert PO file to JSON Format

January 26, 2016

Convert PO files to JSON format via Python. The data of JSON format can be passed to front-end by web servers to translate a text string into the user's native language. You can use the JSON data to implement gettext function in browsers.

 read more »

[Python] Automatically Convert Traditional Chinese PO file to Simplified Chinese

January 08, 2016

Automatically convert Traditional Chinese (zh_TW) PO file to Simplified Chinese (zh_CN) by OpenCC and Python programming language.

 read more »

[Python] Use Regular Expression to Find Strings Marked For Internationalization (i18n)

January 01, 2016

Use regular expression in Python to search and find strings marked for i18n (Internationalization)

 read more »
Powered by Github Pages, Pelican, pyScss.