[CSS] Stack td and th in reStructuredText list table on Mobile Screen

Stack td and th elements in reStructuredText list table on small screen.

 read more »

[Pelican] Remove Prefix in PATH_METADATA Using Named Regex Group

Remove prefix of Pelican PATH_METADATA using Python named regular expression group.

 read more »

adb push error: remote couldn't create file: Operation not permitted

adb push error caused by illegal character in file name on Android.

 read more »

Update Modification Time According to EXIF Data

Update modification time of photo/video according to EXIF data using command line.

 read more »

Find Image With Specific Dimension Using Command Line

Find images with specific dimension using Linux command line.

 read more »

Copy Files to Android While Preserving Timestamp

Copy files to Android smart phone without losing timestamps.

 read more »

Install GopherJS in Go Modules Mode

Build and run GopherJS in Go modules mode.

 read more »

Migrate Pelican Site CI/CD From Travis CI to GitHub Actions

Use GitHub Actions for Pelican Site CI/CD instead of Travis CI.

 read more »

[Pelican] Add Build Timestamp to Pelican Site Automatically

Add build timestamp to Pelican site automatically during generating the site.

 read more »

[Golang] Unmarshal UTF-16 XML

How to parse a UTF-16 XML file in Go.

 read more »

Simulate Enter Key Pressed in Go

Programmatically fire enter key event in Go/GopherJS.

 read more »

Pure CSS Toggle Bulma Responsive Navbar

CSS only responsive Bulma 0.9.0 navbar without JavaScript. Toggle mobile menu with CSS only. No JavaScript required.

 read more »

[Golang] Remove Last Character of UTF-8 String

Remove last character of UTF-8 string via utf8.DecodeLastRuneInString in Go.

 read more »

[Golang] Remove Empty Directory

Given a directory, remove all empty sub-directories in Go.

 read more »

[Golang] Check if Environment Variable Exist

Check if an environment variable exists using os.LookupEnv in Go.

 read more »

[Pelican] Build Offline Copy of Website

Build an offline copy of a website made by Pelican static site generator.

 read more »

[Vim] Replace Using Regular Expression Group

Use regular expresion groups to replace texts in Vim.

 read more »

[Golang] Create Template Using fmt.Sprintf

Create short pieces of templates using fmt.Sprintf in Go.

 read more »

[Golang] Distinct powers - Problem 29 - Project Euler

Go solution to Distinct powers - Problem 29 - Project Euler.

 read more »

[Golang] Read Twice From the Same io.Reader

Read twice or multiple times from the same io.Reader in Go

 read more »

[Golang] Auto-Detect and Convert Encoding of HTML to UTF-8

Given an URL, auto-detect and convert the encoding of the HTML document to UTF-8 if it is not UTF-8 encoded in Go.

 read more »

[Golang] Determine Encoding of HTML Document

Given an URL, determine the encoding of the HTML document in Go using golang.org/x/net/html and golang.org/x/text packages.

 read more »

[Golang] Reverse a String

Reverse a string using for or range keyword in Go.

 read more »

[Golang] Number spiral diagonals - Problem 28 - Project Euler

Go solution to Number spiral diagonals - Problem 28 - Project Euler.

 read more »

[Golang] Names scores - Problem 22 - Project Euler

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

 read more »

[Golang] Counting Sundays - Problem 19 - Project Euler

Go solution to Counting Sundays - Problem 19 - Project Euler.

 read more »

[Golang] Pandigital products - Problem 32 - Project Euler

Go solution to Pandigital products - Problem 32 - Project Euler.

 read more »

[Golang] Create Error Using fmt.Errorf or errors.New

Create new or custom error using fmt.Errorf or errors.New in Go.

 read more »

[Go WebAssembly] XMLHttpRequest (XHR)

Go WebAssembly XMLHttpRequest (XHR) - Issue HTTP requests to exchange data between browsers (client) and servers.

 read more »

Pure CSS Foundation Accordion Container

CSS only toggle Foundation accordion (collapsible content). No JavaScript required.

 read more »

[Pelican] Create URL Based on File Path

Pelican static site generator - Create URL of page or article based on the full path relative to the content source directory.

 read more »

[Go WebAssembly] Event Binding - addEventListener Example

Go WebAssembly Event Binding - addEventListener example.

 read more »

Vue.js Component for Tab Panel

Implementation of reusable Vue.js component for tab panel.

 read more »

Vue.js Component for Semantic UI Basic Tabs

Reusable Vue.js component for Semantic UI basic tabs example.

 read more »

[Golang] Convert Chinese Characters in String to Pinyin

Given a string with Chinese characters, convert the Chinese characters in the string to Pinyin (romanization system for Chinese) in Go.

 read more »

Vue.js Component for Bootstrap Tab Panel

Reusable Vue.js component to extend Bootstrap navigational tabs to create tabbable panes of local content.

 read more »

[Golang] Check If The Rune is Chinese Character

Given a rune value, check if the rune is a Chinese character.

 read more »

[Golang] Download File From URL

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

 read more »

[Golang] Replace Space and Newline in String

Use Go regexp package to repace spaces and newline in the string.

 read more »

goquery Handle Non-UTF8 HTML Web Page

Read non-utf8 webpage with goquery if the charset of the page is known.

 read more »

Vue.js Component for Bulma Tabs

Reusable Vue.js component for Bulma tabs, and extend the original Bulma tabs by adding a pane to for each tab.

 read more »

[Golang] Coin sums - Problem 31 - Project Euler

Go solution to Coin sums - Problem 31 - Project Euler.

 read more »

Load and Run Go WebAssembly Module

Show how to load and run Go WebAssembly code.

 read more »

[Go WebAssembly] querySelectorAll Example

Go WebAssembly querySelectorAll example.

 read more »

[Go WebAssembly] querySelector Example

Go WebAssembly querySelector example.

 read more »

Pure CSS Semantic UI Dropdown

CSS only toggle Semantic UI dropdown. No JavaScript required.

 read more »

Pure CSS Bulma Dropdown Toggle

CSS only toggle Bulma collapse. No JavaScript required.

 read more »

Pure CSS Bootstrap Tab Panel

CSS only toggle Bootstrap tab panel. No JavaScript required.

 read more »

Pure CSS Semantic UI Basic Tabs

CSS only Semantic UI basic tab. No JavaScript required.

 read more »

Pure CSS Bootstrap Accordion

CSS only toggle Bootstrap accordion (collapsible content). No JavaScript required.

 read more »

Pure CSS Bootstrap Collapse

CSS only toggle Bootstrap collapse. No JavaScript required.

 read more »

[Vue.js] Bulma Modal

Toggle Bulma modal via Vue.js.

 read more »

[Vue.js] Bootstrap Modal

Toggle Bootstrap modal via Vue.js.

 read more »

Pure CSS Bootstrap Modal

CSS only toggle Bootstrap modal. No JavaScript required.

 read more »

[Golang] Naive Method for Primality Test

Naive method for primality test in Go: Given a natural number n, if n is divisible by any number from 2 to square root of n, then n is composite. Otherwise n is prime.

 read more »

[Golang] Read Plain Texts in PDF Files

Extract plain text from PDF via github.com/ledongthuc/pdf package.

 read more »

[Go WebAssembly] First Wasm Program - Hello World

First try of Go WebAssembly - Say Hello World via alert method.

 read more »

[Golang] Convert Integer to String via fmt.Sprintf

Convert int or int64 to string in Go via fmt.Sprintf.

 read more »

[Vue.js] Font Size Larger or Smaller

Increase or decrease font size with buttons via Vue.js.

 read more »

[Golang] Anonymous Function in Defer Statement

Use anonymous function in Go defer statement.

 read more »

[Golang] Use Defer to Wait For Goroutines to Finish

Use Go defer statement to elegantly wait for all goroutines to finish.

 read more »

Pass Command-line Arguments to Makefile and Go Program

Pass command-line arguments to make and then pass then arguments to Go program in Makefile.

 read more »

Online Calcualte Politeness of Number

Calculate politeness of a number online, i.e., the number of ways it can be expressed as the sum of consecutive integers.

 read more »

[Golang] JSON Unmarshal When Field Name is Determined at Runtime

Unmarshal JSON data in which the field name is determined at runtime in Go.

 read more »

Calcualte Politeness of Number in Golang

Calculate politeness of a number in Go, i.e., the number of ways it can be expressed as the sum of consecutive integers

 read more »

Ubuntu Linux 18.04 Run Out of Disk Space

Upgrade from Ubuntu Linux 17.10 to 18.04 and disk space runs out quickly. And how I fix this issue.

 read more »

[Golang] Delete Zero Size Files in Directory

Delete all files with zero size in a directory in Go. Sub-directories included.

 read more »

[Golang] Get All Story Highlights of Specific Instagram User

Get all links of story highlights of a specific Instagram user in Go. Use only Go standard library and no third-party packages needed.

 read more »

Online Calculate Sum of Proper Divisors

Online tool for prime factorization and calculating sum of proper divisors. The algorithm is implemented in JavaScript and UI in Vue.js.

 read more »

Watch Data Change With Options via Go and Vue.js

Run data change watchers with option via Go/GopherJS/gopherjs-vue.

 read more »

[Golang] Digit fifth powers - Problem 30 - Project Euler

Go solution to Digit fifth powers - Problem 30 - Project Euler.

 read more »

Online Prime Factorization

Online tool that helps you do prime factorization. The algorithm is implemented in JavaScript and UI in Vue.js.

 read more »

Watch Data Change via Go and Vue.js

Watch and react to data changes via Go/GopherJS/gopherjs-vue.

 read more »

Embed Read-Only Files in Go Code

Embed read-only files in Go code.

 read more »

[Vue.js] Online Sieve of Eratosthenes Demo

Sieve of Eratosthenes is a simple and ancient method to find prime numbers up to a given limit. Given a limit, this online demo returns all prime number below the limit.

 read more »

Online Sieve of Eratosthenes Demo via Go and Vue.js

Online demo of sieve of eratosthenes via Go/GopherJS/gopherjs-vue.

 read more »

[Vue.js] Online Euler's Totient Function Demo

Euler's Totient Function φ(n) counts the positive integers that are relatively prime to n. This online demo use naive method to calculate φ(n) and positive integers coprime to n.

 read more »

[Vue.js] Online Goldbach's Conjecture Demo

Goldbach's conjecture - Every even integer greater than 2 can be written as the sum of two primes. Given a positive even integer, this online demo returns the two primes.

 read more »

[JavaScript] Sieve of Eratosthenes

JavaScript implementation of Sieve of Eratosthenes.

 read more »

[Golang] Solution to Project Euler

Go solution to Project Euler.

 read more »

[Golang] Quadratic primes - Problem 27 - Project Euler

Go solution to Quadratic primes - Problem 27 - Project Euler.

 read more »

Check If A Large Number Is Divisible By 3 Or Not

Check if a large number is divisible by 3 or not in Go. This exercise is good example for type casting between int and string in Go.

 read more »

Check if Value of HTML Input Text Field is Integer in Go

Check if the value of HTML input text field is integer in Go. Compiled to JavaScript using GopherJS.

 read more »

Online Lemoine’s Conjecture Demo in Go

2n + 1 = p + 2q always has a solution in primes p and q (not necessarily distinct) for n > 2. This online demo finds p and q for given odd number greater than 5. The demo is written in Go and compiled to JavaScript using GopherJS.

 read more »

[JavaScript] Check if Value of Input Text Field is Integer

check HTML text input field to see if the value is integer.

 read more »

Online Lemoine’s Conjecture Demo

2n + 1 = p + 2q always has a solution in primes p and q (not necessarily distinct) for n > 2. This online demo finds p and q for given odd number greater than 5.

 read more »

Lemoine’s Conjecture

2n + 1 = p + 2q always has a solution in primes p and q (not necessarily distinct) for n > 2. Write a Go program to find p and q for given odd number greater than 5.

 read more »

Lychrel Number Test

Test if a number (at least 2-digit) is Lychrel number or not under limited iterations in Go.

 read more »

[Golang] Send Email Using Gmail

Programatically send mails using Gmail.

 read more »

[Golang] Find Last Modified File With Specific Name Prefix

Get last modified file, name of which starts with specific prefix, in Go.

 read more »

Generate Fair Results From A Biased Coin

Given a biased coin with the probability of p to be head on each toss, where 0 < p < 1 and p ≠ 0.5, generate fair results from the biased coin.

 read more »

Generate Any One of Given Numbers According to Given Probabilities

Given N numbers, generate any one of the given numbers according to given probabilities.

 read more »

[Chrome Extension] Get Cookies to Access Instagram API

Chrome extension to get cookies to access Instagram API.

 read more »

[Golang] Remove Duplicates From Slice or Array

Remove duplicates from slice or array in Go.

 read more »

[Chrome Extension] Get Instagram User Information From HTML Source

Chrome extension to help you get user information on user profile page. Also show id and invisible link to profile picture on the profile page.

 read more »

[Golang] Get Instagram User Information From HTML Source

Given user name, get Instagram user information, such as id, username, biography, etc., in Go.

 read more »

[Golang] Find Oldest Modified File in Directory

Find oldest modified file in the directory, excluding sub-directories, in Go.

 read more »

[Golang] Sort Words Alphabetically

Sort a list of words alphabetically in Go.

 read more »

[Golang] Write Lines to File

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

 read more »

[Golang] Compare the Size of Two Files

Compare if the size of two files is the same in Go.

 read more »

[Golang] Find Files After Given Time

Find files after a given timestamp in Go.

 read more »

[Golang] Find Last Modified File Before Specific Time

Get last modified file before a specific time in Go.

 read more »

[Golang] Get Last System Boot Time

Get last Ubuntu Linux system boot/restart time in Go.

 read more »

[Golang] Terminal Current Directory Item List via termui

Terminal UI - List items in directory via Go termui package.

 read more »

[Golang] Split Contents of a Directory into Multiple Sub Directories

Split a folder with many files into multiple sub-folders in Go.

 read more »

[Golang] Make Slice Empty

Make slice empty in Go programming language.

 read more »

Uploaded Name of Photos/Videos of gphotosuploader

The uploaded name of photos/video of gphotosuploader includes full file path. Remove the directory path and leave only file name.

 read more »

[Golang] List Directory Size in Ascending Order (Excluding Sub-Directories)

List folder size in ascending orfer, excluding sub-folders, in Go.

 read more »

Communication Between Chrome Extension and Local Application

Use local web server to achieve communication between Chrome extension and local program.

 read more »

[Chrome Extension] Get auth.json of gphotosuploader

Chrome extension to get auth.json (cookies of Google Photos and Google account id) of gphotosuploader.

 read more »

[Chrome Extension] Get Google Account Id from Google Photos

Chrome extension to get Google account id from Google Photos.

 read more »

[Chrome Extension] Get Authentication Cookies of gphotosuploader

Chrome extension to get cookies of gphotosuploader.

 read more »

[Golang] Move File to Another Directory

Move file to another folder via Go os.Rename method.

 read more »

[Golang] Find Files Older Than One Day

Find files modified more than one day via Go standard time package.

 read more »

[Golang] Calculate Directory Size Excluding Sub-Directories

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

 read more »

[Bash] List Go Source Files Excluding Test Files

List .go source files excluding _test.go files via find and grep command in bash.

 read more »

[Bash] List Directory Size in Descending and Ascending Order

List folder size in descending and ascending order via du and sort command in bash.

 read more »

[Python] Set Difference of Two Arrays

Find set differecne of two arrays, i.e., the elements in one array but not in the other, in Python.

 read more »

[Python] Union of Two Arrays

Find the set of all elements (union) in two arrays in Python.

 read more »

[Chrome Extension] Download Instagram Profile Picture in Full Size

This Chrome extension helps you download Instagram profile picture in full size.

 read more »

Get Instagram Profile Picture in Full Size

Given the url of Instagram profile picture, return the url of profile picture in full size.

 read more »

[Python] Intersection of Two Arrays

Find common elements (matches, intersection) of two arrays in Python.

 read more »

[Golang] Check If A Program (Command) Exists

Check if a program (or command), such as wget or ffmpeg, is available in Go.

 read more »

[JavaScript] Set Difference of Two Arrays

Find set differecne of two arrays, i.e., the elements in one array but not in the other, in JavaScript.

 read more »

[Golang] Set Difference of Two Arrays

Find set differecne of two arrays, i.e., the elements in one array but not in the other, in Go.

 read more »

[JavaScript] Union of Two Arrays

Find the set of all elements (union) in two arrays in JavaScript.

 read more »

[JavaScript] Intersection of Two Arrays

Find common elements (matches, intersection) of two arrays in JavaScript.

 read more »

Progressive Web App (PWA) For My Static Website

Make my static website become like a mobile app via Progressive Web App (PWA).

 read more »

[Golang] Union of Two Arrays

Find the set of all elements in two arrays in Go programming language.

 read more »

[Golang] Intersection of Two Arrays

Find common elements (matches, intersection) of two arrays in Go programming language.

 read more »

Virtual Keyboard via Go and Vue.js

Virtual kayboard/keypad via Go/GopherJS/gopherjs-vue.

 read more »

Merge Instagram Post Live Video and Audio in ffmpeg

Use ffmpeg to merge Instagram video and audio of live replay shared to stories.

 read more »

[Golang] Get HTTP Response Header

Print HTTP response header via Go standard net/http package.

 read more »

[Golang] Parse Dash Manifest in Instagram Post Live Story

Get urls of video and audio of Instagram user post live videos shared to stories via Go standard regexp package.

 read more »

[Golang] Run wget via Shell Command

Use Go standard os/exec package to run wget via shell command.

 read more »

[Golang] HTTP Request With Cookies

Send HTTP request with cookies via Go standard net/http package.

 read more »

[Golang] Lexicographic permutations - Problem 24 - Project Euler

Go solution to Lexicographic permutations - Problem 24 - Project Euler.

 read more »

[Golang] Disable Test Cache

Disable caching in Go test.

 read more »

[Chrome Extension] Not Being Logged in in Incognito Mode

Use "incognito" manifest key "split" in Chrome Extension to leave logged in status.

 read more »

[Golang] HTTP Request With Custom User-Agent

HTTP request with custom User-Agent header via Go standard net/http package.

 read more »

[Chrome Extension] Show Instagram Mutual Followers on User Web Profile

A Chrome extension to help you show Instagram mutual followers on user profile page.

 read more »

[Golang] Get Filename Without Extension

Get file name without extension in Go programming language.

 read more »

[Golang] Save File in QR Code

Embed file in QR code via Go programming language.

 read more »

JavaScript Wait Page to be Loaded

When web pages are rendered with JavaScript, how to wait until the DOM nodes of original contents are available for appending our nodes?

 read more »

[Chrome Extension] Show Instagram Id on User Page

A Chrome extension to help you show Instagram id on the user page.

 read more »

[Chrome Extension] Try to Print Facebook Id Next to User Name

A Chrome extension to help you try to get Facebook user id by URL change and print the id next to name if found.

 read more »

Try to Get Facebook User Id by URL Change and Chrome Extension

A Chrome extension to help you try to get Facebook user id by URL change.

 read more »

Get Facebook Stories Image URL via Chrome Extension

A naive Chrome extension to help you get URL of images of Facebook Stories.

 read more »

Trick to Get Instagram Live Video Replay

Trick to get Instagram post live video items.

 read more »

[Golang] Discover Instagram Top Live

Access Instagram API to discover Top lives in Go programming language. Use only Go standard library and no third-party packages needed.

 read more »

[Golang] Instagram Topsearch Client

Instagram web top search client in Go programming language. Use only Go standard library and no third-party packages needed.

 read more »

[Golang] Sort Files by Size

Sort files by size in Go. Use sort.Slice on the slice of os.FileInfo returned by ioutil.ReadDir.

 read more »

[Golang] Get Photos and Videos in Instagram Post

Get URL of photos and videos in Instagram post via Go programming language. Use only Go standard library and no third-party packages needed.

 read more »

[Golang] Get Url of All Posts of Instagram User

Get URL of all posts of a specific Instagram user via Go programming language. Use only Go standard library and no third-party packages needed.

 read more »

[Golang] Get Instagram Following and Followers

Get Instagram following and followers of a specific user via Go programming language. Use only Go standard library and no third-party packages needed.

 read more »

JavaScript for Bulma Modal

JavaScript code for Bulma modal component. The code is extracted from Bulma official website.

 read more »

Bulma Modal with Go Toggle

Go toggle code for Bulma modal component.

 read more »

[Golang] Get Instagram Highlight Stories of Specific User

Get links of Instagram highlight stories of a specific user via Go programming language. Use only Go standard library and no third-party packages needed.

 read more »

[Golang] Get Instagram Stories of Specific User

Get links of Instagram stories of a specific user via Go programming language. Use only Go standard library and no third-party packages needed.

 read more »

Pure CSS Semantic UI Standard Accordion

CSS only Semantic UI standard accordion. No JavaScript required.

 read more »

[Golang] Pass Reference to Goroutine While range Slice

Caveat: Passing reference/pointer to goroutine function while range slice in Go.

 read more »

[Golang] Get List of Instagram Stories

Get the list of following Instagram stories via Go programming language. Use only Go standard library and no third-party packages needed.

 read more »

[Golang] Get Instagram User ID

Given user name, get Instagram user id via Go programming language. Use only Go standard library and no third-party packages needed.

 read more »

Golang strings.Index = JavaScript String indexOf()

Go strings.Index is equivalent to JavaScript String.prototype.indexOf()

 read more »

Get Current Tab URL From Chrome Extension in Go

Get the URL of the current tab from Chrome extension, written in Go.

 read more »

Bulma Dropdown with Go Toggle

Go toggle code for Bulma dropdown component.

 read more »

[Golang] Get Domain Name from URL

Get domain name from URL via Go standard net/url package.

 read more »

Pure CSS Semantic UI Modal

CSS only toggle Semantic UI modal. No JavaScript required.

 read more »

Pure CSS Bulma Tabs

CSS only Bulma tab panel implementation.

 read more »

Pure CSS Bulma Accordion (Collapsible Content)

CSS only Bulma accordion (collapsible content) implementation.

 read more »

[Vue.js] Bulma Accordion (Collapsible Content)

Bulma accordion (collapsible content) implementation via Vue.js.

 read more »

Bulma Modal with Pure CSS Toggle

CSS only toggle Bulma modal. No JavaScript required.

 read more »

[Vue.js] Bulma Tabs

Add more features to Bulma tabs via Vue.js.

 read more »

Equal Height Components in Bulma Columns

Make Bulma components (message, card, etc.) to be of equal height in columns.

 read more »

[Golang] Calculate String Length

Calculate the length of string (UTF-8) in Go. Iterate over the UTF-8 string by for or range keyword.

 read more »

Show keyCode of Pressed Key via Go and Vue.js

Show keyCode of pressed key of focused HTML input element via Go/GopherJS/gopherjs-vue.

 read more »

[Golang] Non-abundant sums - Problem 23 - Project Euler

Go solution to Non-abundant sums - Problem 23 - Project Euler.

 read more »

Toggle (Show/Hide) HTML Element via Go and Vue.js

Toggle (Show/Hide) HTML DOM element via Go/GopherJS/gopherjs-vue.

 read more »

[Golang] Web Scrape Blogger Post via goquery

Fetch a public post on Blogger and extract data via goquery.

 read more »

JavaScript for Bulma Dropdown

JavaScript code for Bulma dropdown menu. The code is extracted from Bulma official website.

 read more »

Bulma Navbar with Go Toggle

Go toggle code for Bulma responsive navbar, dropdown menu included.

 read more »

Descartes' rules of signs

Hard to believe that I don't remember seeing Descartes' rules of signs before -- you'd think this is impossible given the time I spent on ...

 read more »

JavaScript for Bulma Responsive Navbar

JavaScript code for Bulma responsive navbar, dropdown menu included. The code is extracted from Bulma official website.

 read more »

[Golang] Remove HTML Inline Style

Remove HTML inline style, i.e., remove style attribute from HTML node via Go net/html package.

 read more »

[Dart] Tooltip with Close Delay

Show tooltip when the cursor hovers over the text, and close the tooltip with delay if the cursor is not in the tooltip via Dart programming language.

 read more »

Convert Text to HTML Link in Go

Convert specific texts to clickable links (<a> tag) in HTML document via Go/GopherJS.

 read more »

[Golang] Number letter counts - Problem 17 - Project Euler

Go solution to Number letter counts - Problem 17 - Project Euler.

 read more »

[JavaScript] Convert Text to Link in HTML

Convert specific texts to clickable links (<a> tag) in HTML document via JavaScript.

 read more »

[JavaScript] Append Text at the Beginning of Each Line

Append text at the beginning of each line via JavaScript.

 read more »

[Golang] Convert Numbers to Words From 1 to 1000

Spell numbers from 1 to 1000 in English via Go programming language.

 read more »

Tooltip with Close Delay in Go

Show tooltip when the cursor hovers over the text, and close the tooltip with delay if the cursor is not in the tooltip via Go/GopherJS.

 read more »

[JavaScript] Tooltip with Close Delay

Show tooltip when the cursor hovers over the text, and close the tooltip with delay if the cursor is not in the tooltip via JavaScript.

 read more »

Tooltip in Go

Simple tooltip implementation via Go/GopherJS.

 read more »

[JavaScript] Tooltip

Simple tooltip implementation via JavaScript.

 read more »

Helly's theorem

This is the last of a small series of similar and basic results in convex geometry.

 read more »

Element Position (Scroll Included) in Go

Get HTML DOM element position (including scroll position of the document) in Go/GopherJS.

 read more »

[JavaScript] Show Note on Mouse Hovering Over Text

Show annotatoin (note) on mouse hovering over text. Used to help users read ancient Buddhist texts.

 read more »

[Golang] 1000-digit Fibonacci number - Problem 25 - Project Euler

Go solution to 1000-digit Fibonacci number - Problem 25 - Project Euler.

 read more »

[Golang] Factorial digit sum - Problem 20 - Project Euler

Go solution to Factorial digit sum - Problem 20 - Project Euler.

 read more »

Show CSS Loader While Resource Loading in Go

Show CSS loading spinner while resources of the website are loading in Go/GopherJS.

 read more »

[Golang] Large Positive Integer Multiplication

Multiplication of big natural numbers in Go. This is for very large positive integers which overflows the built-in numerical type in Go.

 read more »

JavaScript undefined Check in Go

Check for undefined in Go/GopherJS.

 read more »

[Golang] Power digit sum - Problem 16 - Project Euler

Go solution to Power digit sum - Problem 16 - Project Euler.

 read more »

JavaScript null Check in Go

Test if a JavaScript variable is null in Go/GopherJS.

 read more »

Pure CSS Toggle (Change) Color of HTML Element

CSS only toggle the color of HTML DOM element. No JavaScript required.

 read more »

Detect Browser Language Preference in Go

Know which language(s) users prefer on browsers in Go/GopherJS.

 read more »

[Golang] Lattice paths - Problem 15 - Project Euler

Go solution to Lattice paths - Problem 15 - Project Euler.

 read more »

[Golang] Large sum - Problem 13 - Project Euler

Go solution to Large sum - Problem 13 - Project Euler.

 read more »

[Golang] Large Positive Integer Addition

Addition of big natural numbers in Go. This is for very large positive integers which overflows the built-in numerical type in Go.

 read more »

Caratheodory's theorem

Previous I used Caratheodory's theorem to prove Radon's theorem, now I'm going to prove the former.

 read more »

[Golang] Largest product in a grid - Problem 11 - Project Euler

Go solution to Largest product in a grid - Problem 11 - Project Euler.

 read more »

Radon's theorem

I came across Radon's theorem the other day, and found this proof. It must have been discovered before.

 read more »

setTimeout method in Go

Execute a function after waiting a specific length of time in Go/GopherJS.

 read more »

HTML Element classList Property in Go

Manipulate the class attribute of a HTML element via classList property in Go/GopherJS.

 read more »

[Golang] Convert Grid String to Two Dimensional Slice

Given a string of 20x20 grid, convert the string to two dimensional slice in Go.

 read more »

HTML Element style Property in Go

Set/Get inline style of a HTML element via style property in Go/GopherJS.

 read more »

[Golang] Even Fibonacci Numbers - Problem 2 - Project Euler

Go solution to Even Fibonacci numbers - Problem 2 - Project Euler.

 read more »

[Golang] Multiples of 3 and 5 - Problem 1 - Project Euler

Go solution to Multiples of 3 and 5 - Problem 1 - Project Euler.

 read more »

HTML data-* Attribute in Go

Access HTML data-* attributes of elements in Go/GopherJS.

 read more »

XMLHttpRequest (XHR) in Go

Send data to servers or retrieve data from servers on browsers - Use XMLHttpRequest method in Go/GopherJS.

 read more »

Create and Append Element or Text Node in Go

Create and append DOM element or text node in Go/GopherJS. Show how to use createElement, createTextNode, and appendChild methods.

 read more »

Keyboard Event (Arrow Keys) in Go

Detect user keypress on browsers in Go/GopherJS.

 read more »

Event Binding - addEventListener in Go

Event binding in Go/GopherJS - Register an event handler to the specified DOM element via addEventListener method.

 read more »

innerHTML and textContent in Go

Change the content of DOM element - Set and get innerHTML and textContent in Go/GopherJS.

 read more »

querySelector, querySelectorAll, getElementById in Go

Show how to use querySelector, querySelectorAll, getElementById in Go/GopherJS.

 read more »

JavaScript new Keyword in Go

Show how to use JavaScript new keyword in Go/GopherJS.

 read more »

Synonyms - Go and JavaScript

Synonyms - Go/GopherJS idioms and snippets translated to JavaScript

 read more »

[Vue.js] Keyboard Event (Arrow Key Example)

Detect arrow keys pressed by users via Vue.js.

 read more »

First Frontend Go Program - Hello World in Browser

The first frontend program in Go - Show Hello World in your browser.

 read more »

Frontend Programming in Go

Discuss why I choose Go to be my frontend programming language. Wirte Go code and run your application on web browsers.

 read more »

Avoid Vim overwriting indention settings

I have tons of files in Python and other languages written as indented by 2 spaces, so I have the following settings in my ~/.vimrc: Howev...

 read more »

Count spread in O(n)

This is not hard but still interesting. A spread of an array of numbers is the difference between its maximum and minimum. Given an array...

 read more »

Finding the maximum rectangle under a histogram

I heard this is classic, but turns out not too hard.

 read more »

Find pivot from a stream

This is also an interesting result, although it's quite simple.

 read more »

Finding singletons

For (iin{1,2,3}), there are (2n+i) integers consisting of (n+i) unique ones.

 read more »

Online number partitioning

A simple yet surprisingly interesting result.

 read more »

Balancing numbers

There are 2n+1 coins each associated with a weight. When we remove any coin, we can split the rest into two piles each with n coins...

 read more »

Numbers game

Given a sequence of (n) integers (a_1,ldots,a_n), we map it to ...

 read more »

No crossing!

On the 2D plane there are (n) blue and (n) red points, no three of them are co-linear. Then we can always pair a blue point with a red ...

 read more »

[Golang] Calculate Number of Divisors

Given a natural number (integer), calculate the number of divisors of it in Go programming language.

 read more »

[Golang] Highly Divisible Triangular Number - Problem 12 - Project Euler

Go solution to highly divisible triangular number - Problem 12 - Project Euler.

 read more »

[Makefile] Check if Run on Travis CI

Check if Makefile runs on Travis CI or not.

 read more »

[Golang] Largest Product in a Series - Problem 8 - Project Euler

Go solution to largest product in a series - Problem 8 - Project Euler.

 read more »

[Golang] Sum Square Difference - Problem 6 - Project Euler

Go solution to sum square difference - Problem 6 - Project Euler.

 read more »

[Golang] Longest Collatz Sequence - Problem 14 - Project Euler

Go solution to longest Collatz sequence - Problem 14 - Project Euler.

 read more »

[Golang] Summation of Primes - Problem 10 - Project Euler

Go solution to summation of primes - Problem 10 - Project Euler.

 read more »

[Golang] 10001st Prime - Problem 7 - Project Euler

Go solution to 10001st prime - Problem 7 - Project Euler.

 read more »

[Golang] Check If Item in Slice or Array

Check if an item is in slice or array in Go programming language.

 read more »

[Golang] Goldbach's conjecture

Goldbach's conjecture - Every even integer greater than 2 can be written as the sum of two primes. Given a positive even integer, write a Go program to find the two primes.

 read more »

[Golang] Check If a String Exists in File

Check if a string exists in file via Go regexp package.

 read more »

[Golang] Euler's Totient Function

Euler's totient function implementation in Go programming language.

 read more »

[Golang] Calculate Least Common Multiple (LCM) by GCD

Find least common multiple (LCM) by greatest common divisor (GCD) via Go programming language.

 read more »

[Golang] Smallest Multiple - Problem 5 - Project Euler

Go solution to smallest multiple - Problem 9 - Project Euler.

 read more »

[Golang] Special Pythagorean Triplet - Problem 9 - Project Euler

Go solution to special Pythagorean triplet - Problem 9 - Project Euler.

 read more »

[Dart] Visit All Sibling Elements or Nodes

DOM manipulation - traverse all sibling elements or nodes via Dart.

 read more »

[JavaScript] Visit All Sibling Elements or Nodes

DOM manipulation - traverse all sibling elements or nodes via JavaScript.

 read more »

[Dart] Tab Panel

Tab panel implementation via Dart and CSS.

 read more »

[JavaScript] Tab Panel

Tab panel implementation via JavaScript and CSS.

 read more »

[Dart] Accordion (Collapsible Content)

Accordion (collapsible content) implementation via Dart.

 read more »

[Dart] Modal (Popup)

Modal (Popup) implementation via Dart and CSS. Modal is dialog box/popup window that is displayed on top of the current page.

 read more »

[Golang] Amicable Numbers - Problem 21 - Project Euler

Go solution to amicable numbers - Problem 21 - Project Euler.

 read more »

[JavaScript] Accordion (Collapsible Content)

Accordion (collapsible content) implementation via JavaScript.

 read more »

Pure CSS Accordion (Collapsible Content)

CSS only accordion (collapsible content) implementation.

 read more »

[Vue.js] Accordion (Collapsible Content)

Accordion (collapsible content) implementation via Vue.js.

 read more »

Maximum number of pairwise non-acute vectors in R^n

It is said to be well-known, but perhaps I've never seen it before:

 read more »

Pure CSS Tab Panel

CSS only tab panel implementation.

 read more »

2017 APMO Problem 3

Let (A(n)) denote the number of sequences (a_1ge a_2gecdots{}ge a_k) of positive integers for which (a_1+cdots+a_k = n) and each ...

 read more »

APMO 2017 Problem 1

We call a (5)-tuple of integers arrangeable if its elements can be labeled (a, b, c, d, e) in some order so that (a-b+c-d+e=29). Deter...

 read more »

[Golang] Integer Exponentiation

Integer exponentiation in Go programming language.

 read more »

[Golang] Sum of the Proper Divisors (Factors)

Calculate the sum of all proper divisors (factors) of an integer number in Go programming language.

 read more »

[GopherJS] WebSocket Client Example With Echo Server

Simple example of a WebSocket client via GopherJS. Connect and send a message to the WebSocket server that echos everything from clients.

 read more »

[Golang] Largest Prime Factor - Problem 3 - Project Euler

Go solution to largest prime factor of 600851475143 - Problem 3 - Project Euler.

 read more »

[Vue.js] Tab Panel

Tab panel implementation via Vue.js and CSS.

 read more »

[Vue.js] Dropdown Menu

Dropdown menu implementation via Vue.js and CSS.

 read more »

[Golang] Greatest Common Divisor via Euclidean Algorithm

Compute the greatest common divisor (GCD) via Euclidean algorithm in Go programming language.

 read more »

[JavaScript] Modal (Popup)

Modal (Popup) implementation via JavaScript and CSS. Modal is dialog box/popup window that is displayed on top of the current page.

 read more »

Pure CSS Modal (Popup)

CSS only modal (popup). No JavaScript required. Modal is dialog box/popup window that is displayed on top of the current page.

 read more »

[Vue.js] Modal (Popup)

Modal (Popup) implementation via Vue.js and CSS. Modal is dialog box/popup window that is displayed on top of the current page.

 read more »

[Makefile] Rules for Linters of Golang Source Code

Example of Makefile rules for Go linters.

 read more »

[Golang] Get All Prime Factors of Integer Number

Prime Factorization - Find all prime factors of a given integer number in Go programming language.

 read more »

[Golang] Anagram Check by Characters Count

Check whether two strings are anagram of each other by characters count in Go programming language.

 read more »

[Golang] Sort String by Character

Sort a string by character, i.e., convert the string to []rune and then sort the slice of runes in Go programming language.

 read more »

[Golang] Check Whether Two Strings Are Anagram of Each Other

Check whether two strings are anagram of each other by sorting in Go programming language.

 read more »

[Golang] First Letter of Chinese Character Pinyin

My answer to How can I get Chinese first letter(Pinyin) by using Go language? - Stack Overflow

 read more »

[Golang] Longest Common Subsequence Length via Recursion

Compute the length of longest common subsequence via recursion in Go.

 read more »

[Golang] Login Facebook and Take Screenshot Programmatically

Web scraping JavaScript rendered webpages by Chrome Debugging Protocol . Write Go code to programmatically login Facebook and then take screenshot.

 read more »

[JavaScript] Find All Visible Texts on Web Page

Traverse DOM tree to grab visible texts on webpage via JavaScript.

 read more »

[JavaScript] Traverse DOM Tree

Traverse DOM tree to find out all text nodes via JavaScript.

 read more »

[Golang/GopherJS] Chrome Extension for Chinese Conversion

Build Chrome Extension with Go, compiled to JavaScript via GopherJS. This post show you how to build Chrome extension that convert the web page of Simplified Chinese website to Traditional Chinese.

 read more »

[Golang] Atoi for Decimal Integer

My implementation of atoi function, which converts a string representing decimal number to its corresponding int type, in Go programmming language.

 read more »

Pass Command Line Arguments (Flags) in Go Test

Pass command line arguments (flags) in Go test.

 read more »

[Vue.js] HTML Select Element Example

Use Vue.js to manipulate HTML select element. First show how to use v-model directive to create data bindings for select element. Then use the selected option to make some animation via animate.css.

 read more »

[Golang] Embed File in String Literal

Embed any type of file in string literal in Go code.

 read more »

2009 USAMO Problem 3

I found a different solution to the second part of this problem. We define a chessboard polygon to be a polygon whose edges are situate...

 read more »

[Golang] Filename Globbing Summary

Test how filename globbing works in Go standard library.

 read more »

[Golang] Largest Palindrome Product - Problem 4 - Project Euler

Go solution to largest palindrome made from the product of two 3-digit numbers. - Problem 4 - Project Euler.

 read more »

[CSS] Responsive Center Align Image

CSS rule for HTML img element to be both responsive and centered.

 read more »

[JavaScript] Test Text-to-Speech in Web Speech API

Test Text-to-Speech feature in Web Speech API. Not working in Chromium 57, but OK in Firefox 53.

 read more »

USAMO 2017 Problem 2

Let (m_1, m_2, ldots, m_n) be a collection of (n) positive integers, not necessarily distinct. For any sequence of integers (A = (a_1...

 read more »

USAMO 2008 Problem 3

The problem is rephrased. Q: A diamond of size n consists of 2n rows of nodes with lengths from top to bottom being 1, 3, 5, ..., 2n-1...

 read more »

USAMO 2017 Problem 4

Let (P_1, P_2, dots, P_{2n}) be (2n) distinct points on the unit circle (x^2+y^2=1), other than ((1,0)). Each point is colored eit...

 read more »

Responsive CSS Divider in Nav Bar

Responsive CSS separator line in nav bar (navigation bar). The CSS divider is vertical on tablet/desktop/wide screen and becomes horizontal on mobile/small screen.

 read more »

Pure CSS Responsive Nav Bar via Flexbox

CSS only responsive nav bar (navigation bar) via flexbox. Toggle mobile menu with CSS only. No JavaScript required. No CSS frameworks (Bootstrap, Bulma, etc.) required.

 read more »

[Golang] Primality Test - Optimized School Method

Go implementation of primality test - optimized school method.

 read more »

[JavaScript] Draw Grid of Dots using Canvas

Exercise to draw 3x3 grid of dots via Canvas.

 read more »

[Golang] Sieve of Eratosthenes

Go implementation of Sieve of Eratosthenes.

 read more »

CSS Invert (Transpose) Rows and Columns of HTML Table

Pure CSS solution for inverting (transposing) rows and columns of a HTML Table, and provide an option to toggle (original/inverted) the HTML table as well.

 read more »

[Golang] Check if Integer is Palindromic Number

Check if an integer number is palindrome in Go programming language.

 read more »

[Golang] Type Conversion between String and Integer

Go type conversion (type casting) between string and integer number.

 read more »

[Golang] Type Conversion between String and Floating Number

Go type conversion (type casting) between string and floating number.

 read more »

[Golang] Get HTML Element Attribute via Regular Expression

Get the attribute of a HTML element via named group matches in Go regexp package.

 read more »

[Golang] Wildcard Pattern Matching

Given a text and a wildcard pattern, implement wildcard pattern matching algorithm that finds if wildcard pattern is matched with text in Go programming language.

 read more »

[CSS] Select First Row of Table

Select and style the first row (or n-th row) of table via CSS :nth-of-type() selector

 read more »

[CSS] Select First Column of Table

Select and style the first column (or n-th column) of table via CSS :nth-of-type() selector

 read more »

Embed Data in Front-end Go Code

Embed data/assets/resources/binary in Go code, and compiled by GopherJS to a single JavaScript file which runs on the front-end browser.

 read more »

Responsive HTML Table using Div and Bulma

Make a responsive HTML table using div element and Bulma CSS framework.

 read more »

[Golang] BK-tree Data Structure Implementation

Go implementation of BK-tree data structure used for approximate string matching in a dictionary. The distance metric here is Levenshtein distance, the minimum number of single-character edits (insertions, deletions or substitutions) required to change one string into the other.

 read more »

[Golang] Wagner-Fischer algorithm for Edit Distance of Two Strings

Go implementation of Wagner-Fischer algorithm that computes the edit distance between two strings of characters. The edit distance here is Levenshtein distance, the minimum number of single-character edits (insertions, deletions or substitutions) required to change one string into the other.

 read more »

[Golang] Levenshtein Distance Recursive Implementation

Recursive implementation of Levenshtein distance algorithm in Go programming language. Levenshtein distance (LD) is a measure of the similarity between two strings, the minimum number of single-character edits (insertions, deletions or substitutions) required to change one string into the other.

 read more »

[Golang] Enum and String Representation

Example of Go enumerated constants using iota enumerator, and print the string representation of enum name.

 read more »

reStructuredText “Back to Top” Link

reStructuredText - “Back to Top” Link

 read more »

[Dart] Tooltip

Simple tooltip implementation via Dart programming language.

 read more »

[Makefile] Publish to GitHub Pages Automatically

Create gh-pages branch and publish your static website to GitHub Pages in Makefile.

 read more »

GitHub Pages Symbolic Link Caveat

GitHub Pages set Content-Type according to the name of symlink, not the file name that the symlink references to.

 read more »

Pure CSS Toggle Centered Element Width

CSS only toggle the width of centered HTML DOM element. No JavaScript required.

 read more »

[Golang] Create Directory If Not Exist

Create a directory if it does not exist. Otherwise do nothing.

 read more »

[Golang] Check if File, Directory, or Symlink Exist

Check if a file, directory, or symbolic link exists, or not exists, in Go programming language.

 read more »

[Golang] Write Example Code in Testing

Demonstrate the usage of your methods by writing example code in the testing of your package in Go programming language.

 read more »

JavaScript Empty an Array

My favorite way to empty an array in JavaScript and why.

 read more »

[Golang] Get Query String of URL in net/http Handler

Get query string of URL in request handler of HTTP server via Go standard net/http Package.

 read more »

Pure CSS Bootstrap Responsive Navbar (Navigation Bar)

CSS only responsive Bootstrap navbar (navigation bar) without JavaScript. Toggle mobile menu with CSS only. No JavaScript required.

 read more »

[Vue.js] AJAX XMLHttpRequest (XHR) Example

XMLHttpRequest (XHR) example by Vue.js.

 read more »

[Golang] Seed Pseudorandom Number Generator (PRNG) Properly

How to seed the pseudorandom number generator (PRNG) properly in Go programming language.

 read more »

Enable Cross Domain XMLHttpRequest Request in Go Server

Enable cross-domain XHR requests in Go server via Go standard net/http package.

 read more »

[Golang] File Server With Custom 404 Not Found

Implement static file server with custom HTTP 404 Not Found handler via Go standard net/http package.

 read more »

[Golang] JSONP Server Implementation Code

A Go server that returns HTTP request headers via JSONP.

 read more »

[Golang] String startswith and endswith

Go equivalent of Python string startswith and endswith methods.

 read more »

[JavaScript] JSONP Example

JSONP example - show your HTTP request headers.

 read more »

[Vue.js] Pretty Print JSON String

Pretty print JSON string via Vue.js.

 read more »

[Vue.js] JSONP Example

JSONP example by Vue.js.

 read more »

[Golang] Pass Slice or Array to Variadic Function

Pass slice or array as variadic (...) parameter in Go programming language.

 read more »

[Golang] Variadic Function Example - addEventListener

Variadic Function Example in Go - Implement addEventListener method via GopherJS.

 read more »

[Golang] All Permutations of Given String With Distinct Characters

Find all permutations of a given string containing all distinct characters in Go programming language.

 read more »

[CSS] Typing Text Effect

Pure CSS typing text effect. No JavaScript required.

 read more »

[Vue.js] Typing Text Effect

Sequential and parallel typing text effect by Vue.js.

 read more »

[JavaScript] Typing Text Effect

Sequential typing text effect by JavaScript.

 read more »

[JavaScript] Type Text Effect

Parallel typing text effect by JavaScript.

 read more »

[React] Tooltip

Simple tooltip implementation via React JavaScript.

 read more »

[Vue.js] Tooltip

Simple tooltip implementation via Vue.js.

 read more »

Pure CSS Tooltip and JavaScript Implementation

CSS only tooltip, extracted from the example of MDN, and the corresponding JavaScript implementation.

 read more »

[JavaScript] Show Quiz After End of YouTube Video

Quiz will appear at the end of YouTube video.

 read more »

[JavaScript] Show Content If Pass Quiz

Show youtube video if users pass the quiz.

 read more »

[Golang] Caveat of fmt.Fprintf Use

Do not use fmt.Fprintf to write to file

 read more »

[Golang] Fetch DOM Style Object Properties via goquery

Web scraping - fetch HTML DOM Style Object properties via goquery in Go programming language.

 read more »

Pure CSS Toggle (Show/Hide) HTML Element

CSS only toggle (show/hide) HTML DOM element without JavaScript.

 read more »

[JavaScript] Toggle (Show/Hide) HTML Element

Toggle (Show/Hide) HTML DOM element in JavaScript.

 read more »

[Golang] Serve Template Data From YAML File

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

 read more »

The Buddha Replies to the Deva

What is the sharpest sword? What is the deadliest poison? What is the fiercest fire? What is the darkest night?

 read more »

[Vue.js] Access (Get/Reference) DOM Element

How to access (get/reference) DOM Element in Vue.js?

 read more »

[Vue.js] Toggle (Play/Pause) Audio Sound on Click Event of DOM Element

Toggle (play/pause) audio sound if users click on DOM Element in Vue.js.

 read more »

[Vue.js] Play Audio Sound on Click Event of DOM Element

Play audio sound if users click on DOM Element in Vue.js.

 read more »

Pure CSS Bulma Responsive Nav Bar (Navigation Bar)

CSS only responsive Bulma nav bar (navigation bar) without JavaScript. Toggle mobile menu with CSS only. No JavaScript required.

 read more »

Go 1.8 Template Execute Output Inconsistent

Bug in Go 1.8 text/template and html/template package

 read more »

Online Conversion of Traditional and Simplified Chinese in Go/GopherJS

Go front-end programming - online service for conversion of Traditional and Simplified Chinese via GopherJS/godom/gojianfan.

 read more »

[Golang] Converter for Traditional and Simplified Chinese

gojianfan - converter for Traditional and Simplified Chinese in Go programming language.

 read more »

[Golang] kebab-case to camelCase

Convert the kebab-case to camelCase in Go programming language.

 read more »

[Golang] Web Scrape Facebook Post via goquery

Fetch and parse a public post on Facebook and extract data via goquery in Go programming language.

 read more »

[Golang] Parse Unix Time (utime) Example

Parse the string of Unix time (also known as POSIX time or Epoch time) in Go programmming language.

 read more »

goquery querySelector

Implement querySelector in goquery

 read more »

JavaScript Arrow Key Example via event.key in Keyboard Event

Detect arrow keystrokes via event.key of KeyboardEvent in JavaScript.

 read more »

Golang Template Parse Directory

Complement to Go text/template and html/template package - Parse all files in directory (including sub-directories).

 read more »

Python Generate Random String From [a-z0-9]

Generate a random string from [a-z0-9] in Python

 read more »

[Golang] Add Method to Existing Type in External Package

Add method (function) to an existing type in external package in Go programming language.

 read more »

[Golang] io.Writer to string

Get string from io.Writer (io writer) in Go programming language.

 read more »

IMO 2007 Problem 3

In a mathematical competition some competitors are friends. Friendship is always mutual. Call a group of competitors a clique if each two of...

 read more »

[C] Generate Random String From [a-z0-9]

Generate a random string from [a-z0-9] in C programming language.

 read more »

[React] Toggle (Show/Hide) HTML Element

Toggle (Show/Hide) HTML DOM element in React JavaScript.

 read more »

[Vue.js] Toggle (Show/Hide) HTML Element

Toggle (Show/Hide) HTML DOM element in Vue.js.

 read more »

[Vue.js] Draggable (Movable) Element

draggable, movable (drag and drop) HTML element in Vue.js.

 read more »

Golang Template Inheritance (Python Jinja2 extends & include)

Template inheritance via Go html/template package. Show how one tempalate extends from another, and also include templates, just as how we do by Python Jinja2.

 read more »

[Vue.js] Input Suggest Dropdown Menu

Provide input suggest feature via Vue.js. Usually used in dictionary application.

 read more »

[Vue.js] Input Text Element Change Event

How to monitor the change event of input text element in Vue.js.

 read more »

[Golang] Read Lines From URL

Read lines from web URL via Go programming language.

 read more »

[Golang] Initialize Two Dimensional Array/Slice

Initialize 2-dimensional array/slice in Go programming language.

 read more »

[GopherJS] Virtual Keyboard

Virtual kayboard/keypad in GopherJS. Used in Pāli Dictionary.

 read more »

[Golang] Insert Line or String to File

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

 read more »

[Dart] Virtual Keyboard

Virtual kayboard/keypad in Dart programming language. Used in Pāli Dictionary.

 read more »

[JavaScript] Virtual Keyboard

Virtual kayboard/keypad in vanilla JavaScript. Used in Pāli Dictionary.

 read more »

[AngularJS] Input Suggest Dropdown Menu

Provide input suggest feature via AngularJS. Usually used in dictionary application.

 read more »

[AngularJS] Animate.css Test Demo

Use Animate.css and AngularJS to animate your webpage.

 read more »

[Vue.js] Animate.css Test Demo

Use Animate.css and Vue.js to animate your webpage.

 read more »

[GopherJS] Animate.css Test Demo

Use Animate.css and GopherJS to animate your webpage.

 read more »

[Golang] Append Line/String to File

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

 read more »

[Dart] Generate Random String From [a-z0-9]

Generate a random string from [a-z0-9] in Dart.

 read more »

[Vue.js] Virtual Keyboard

Virtual kayboard/keypad via Vue.js. Used in Pāli Dictionary.

 read more »

[AngularJS] Virtual Keyboard

Virtual kayboard/keypad via AngularJS. Used in Pāli Dictionary.

 read more »

LET IT COME, LET IT GO - Ajahn Jayanto

"LET IT COME, LET IT GO" ~ Ajahn Jayanto

 read more »

[Golang] Remove Leading and Trailing Empty Strings in String Array

Remove leading and trailing empty strings in string array/slice via Go programming language.

 read more »

[Bash] Move Directories and Modify Path in Files

Replace specific pattern of strings in HTML files under directory via sed.

 read more »

[Golang] Test if a String Consists of Single Letter or Character

Test if a string consists of single character or letter in Go programming language.

 read more »

[JavaScript] Setting Implementation via JSON and Web Storage (localStorage)

Implementation of setting feature in web application via JSON, Web Storage (localStorage), and JavaScript.

 read more »

[GopherJS] Test if an Element Contains a Class

Test if an element contains a class via GopherJS.

 read more »

[JavaScript] Generate Random String From [a-z0-9]

Generate a random string from [a-z0-9] in JavaScript.

 read more »

[Golang] Resize Image From Web

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

 read more »

[Pelican] Localize Theme via Jinja2 Custom Filter

Pelican static site generator - Localize theme with i18n_subsites plugin via custom Jinja2 filter. Implementation of gettext-like filter.

 read more »

[sed] Replace String in Directory

Replace specific pattern of strings in HTML files under directory via sed.

 read more »

[Pelican] Get Partial Pages or Articles in Theme

Pelican static site generator - Get partial pages or articles with specific metadata by Jinja2 built-in selectattr filter in theme.

 read more »

[JavaScript] window.location Example - Access Browser URL

Example of accessing browser URL via JavaScript window.location.

 read more »

The 13 laws of Karma That Will Change Your Life

What you have done unto others in past lives or in this one (cause), weaves the karmic agreement of your present and future (effect). Whatever one puts out into the Universe will come back to them. As you sow, so shall you reap.

 read more »

[Pelican] Get Single Page or Article by slug Metadata in Theme

Pelican static site generator - Get a single page or article by slug metadata in theme.

 read more »

[Pelican] Translate String According to Default Language in Theme

Pelican static site generator - Support multilingual in Pelican theme. Translate strings according to default language of settings in the theme. (implement macro gettext)

 read more »

[GopherJS] Access href Value of Anchor <a> Tag

Access (raw) href value of anchor tag (<a>) via GopherJS.

 read more »

[GopherJS] null Test

Test if a variable is null via GopherJS.

 read more »

[JavaScript] HTML Web History API Example

Change browser URL without reloading web pages - Example for how to use HTML history API.

 read more »

[GopherJS] HTML Web History API Example

Change browser URL without reloading web pages - Example for HTML history API via GopherJS.

 read more »

IMO 2016 Problem 6

There are n>=2 line segments in the plane such that every two segments cross and no three segments meet at a point. Geoff has to choose an ...

 read more »

[GopherJS] window.location - Access URL

Access URL, path, query string, etc. of current URL via window.location and GopherJS.

 read more »

[GopherJS] Setting Implementation via JSON and Web Storage (localStorage)

Implementation of setting feature in web application via JSON, Web Storage, and GopherJS.

 read more »

[GopherJS] Keyboard Event - Arrow Keys Example

Detect arrow keystrokes via GopherJS.

 read more »

[GopherJS] createElement and createTextNode DOM Example

DOM Example of createElement and createTextNode via GopherJS.

 read more »

[Makefile] Get Prefix or Suffix from String

Get prefix or suffix of a string in Makefile.

 read more »

[Golang] Trim Prefix or Suffix from String

Remove prefix or suffix from string via Go programming language.

 read more »

[GopherJS] mouseenter and mouseleave Event Example

Example of onmouseenter and onmouseleave event via GopherJS.

 read more »

[Makefile] Online Concatenate and Compress JavaScript Files

Concatenate and minify JavaScript files via Makefile, curl, and online Google Closure Compiler.

 read more »

[Bash] Online Concatenate and Compress JavaScript Files

Concatenate and minify JavaScript files via Bash script, curl, and online Google Closure Compiler.

 read more »

[Makefile] Publish Static Website to GitHub Project Pages

Publish your static website to GitHub project pages via ghp-import in Makefile.

 read more »

[Makefile] Check Installed Package Version on Ubuntu Linux

Given an installed package name on Ubuntu Linux, find its version in Makefile.

 read more »

Build Issue of OpenCC Go binding on Ubuntu Linux 16.10

Fail to build OpenCC Go binding on Ubuntu Linux 16.10, and how I fix it.

 read more »

[Golang] Parse Command Line Arguments - String Variable

How to parse command-line arguments (string variable) via flag package in Go programming language.

 read more »

[Bash] Copy Large Number of Files on Linux

Copy large number of files efficiently via Bash script on Linux.

 read more »

[GopherJS] Focus and Blur of DOM Element

Focus and Blur of DOM element via GopherJS.

 read more »

without judging or criticising, but just noticing - Ajahn Sumedho

... without judging or criticising, but just noticing ... - Self-view, Personality and Awareness - Luang Por Sumedho

 read more »

[GopherJS] Traverse DOM Tree

Traverse DOM tree via GopherJS.

 read more »

[GopherJS] Replace DOM Element in Place

Replace DOM element in place via GopherJS.

 read more »

[GopherJS] Check nodeType of DOM Element

Check node type (nodeType) of DOM element via GopherJS.

 read more »

[GopherJS] Access Child Nodes of DOM Element

Access child nodes (childNodes) of DOM element via GopherJS.

 read more »

[GopherJS] Add Tooltip to Every (Pāli) Word

Add tooltip to every word via GopherJS. Used in Pāli Tipiṭaka.

 read more »

[GopherJS] Treeview

Treeview via GopherJS. Used in Pāli Tipiṭaka.

 read more »

[GopherJS] Resizable Views

Resizable views via GopherJS. Used in Pāli Tipiṭaka.

 read more »

[GopherJS] Register Event Handler (Event Binding)

Two ways to register event handler via GopherJS: Set element on-Event property or addEventListener.

 read more »

[GopherJS] getElementsByTagName

Use getElementsByTagName to access head element via GopherJS.

 read more »

[GopherJS] Tooltip

Tooltip via GopherJS. Used in Pāli Tipiṭaka.

 read more »

[GopherJS] Insert CSS Dynamically

Insert (add, append) CSS to head element via GopherJS.

 read more »

[Golang/GopherJS] setTimeout

JavaScript setTimeout equivalent in Go/GopherJS - time.AfterFunc.

 read more »

[GopherJS] this Keyword

Show how to access/use this keyword via GopherJS.

 read more »

[GopherJS] Set/Get DOM CSS

Example - Set or Get CSS property of DOM element via GopherJS.

 read more »

[AngularJS] Add Tooltip to Every Word

Add tooltip to every word via AngularJS. Used in Pāli Tipiṭaka.

 read more »

Python try except Translated to Golang Synonyms

Synonyms - Python try-except translated to Go programming language.

 read more »

[AngularJS] i18n Directive

Client side gettext-like Internationalization (i18n) via AngularJS Directives.

 read more »

[AngularJS] gettext-like i18n Solution

Client side gettext-like Internationalization (i18n) via AngularJS.

 read more »

[AngularJS] Treeview

Treeview via AngularJS. Used in Pāli Tipiṭaka.

 read more »

[AngularJS] Tooltip

Tooltip via AngularJS. Used in Pāli Tipiṭaka.

 read more »

[AngularJS] Resizable Views

Resizable Views via AngularJS. Used in Pāli Tipiṭaka.

 read more »

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

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

 read more »

[Bash] Find Redundant Files Saved by Chrome

Find redundant files saved by Chrome browser via Bash script.

 read more »

[Golang] Find Redundant Files Saved by Chrome

Find redundant files saved by Chrome browser via Go.

 read more »

goquery - Iterate over All DOM Elements in HTML

Iterate over all DOM nodes/elements via goquery in Go programming language.

 read more »

[Bash] Find and Remove Files in One Line of Command

Use find command to find all files with specific name and delete them in one line of command.

 read more »

[Bash] find Command Exclude Sub-directory

Use find command to find all HTML files in a directory, but exclude the HTML files in some sub-directory.

 read more »

Run wkhtmltopdf With Chinese Font Support on Travis CI

Run wkhtmltopdf on Travis CI, which convert HTML files with chinese characters to PDF.

 read more »

[Bash] HTML to PDF via wkhtmltopdf

Convert HTML files in directory to PDF recursively via wkhtmltopdf and Bash script.

 read more »

Guess Metadata from HTML and Converted to reStructuredText

Guess metadata from HTML webpage and convert it to reStructuredText format.

 read more »

Basic HTML Table to reStructuredText Support for HTML2RST service on GAE Go

Add basic HTML table to reStructuredText support for online HTML to reStructuredText service on Google App Engine Go.

 read more »

Online Taobao Item to reStructuredText Image on Google App Engine Go

Online service on Google App Engine Go, which helps you extract title, image URL from Taobao item webpage, and output in reStructuredText format.

 read more »

Online HTML to reStructuredText on Google App Engine Go

Online HTML to reStructuredText service on Google App Engine Go.

 read more »

[Golang] HTML to reStructuredText

Convert HTML to restructuredtext format via net/html package in Go programming language. (Not fully supported)

 read more »

Google App Engine Go - HTML Link to reStructuredText

Given a webpage URL. Fetch the title of the webpage and output reStructuredText link on Google App Engine Go.

 read more »

[Golang] Get HTML Title via net/html Package

Get HTML title via net/html package in Go programming language.

 read more »

[Bash] Remove Execute Permission of Files in Directory Recursively

Remove execute(x) permission of files in directory recursively via chmod command and Bash script.

 read more »

[Golang] HTML a, img, ul, li Element to reStructuredText

Convert HTML unordered (bulleted) list, HTML link, and HTML image to restructuredtext format via net/html package in Go programming language.

 read more »

[Golang] HTML a, ul, li Element to reStructuredText

Convert HTML unordered (bulleted) list and HTML link to restructuredtext format via net/html package in Go programming language.

 read more »

Search Taobao.com

Search Taobao.com.

 read more »

goquery - Convert HTML Unordered List to reStructuredText

Convert HTML unordered (bulleted) list to restructuredtext format via goquery in Go programming language.

 read more »

goquery - Replace HTML Link Node with reStructuredText Text Node

Replace HTML links node with text node of restructuredtext format in a webpage via goquery in Go programming language.

 read more »

rsync over SSH with Key

Example of copy local files to remote machine which allows only SSH key login via rsync command.

 read more »

GitHub Pages Custom 404 Page with Redirect Link

Custom 404 page for GitHub Pages. In the 404 page, a redirect link is created based on the current URL path.

 read more »

[AWS] Upgrade from Ubuntu 12.04 to 14.04

Upgrade from AWS EC2 t1.micro running Ubuntu 12.04 LTS with Apache-2.2 to t2.nano running Ubuntu 14.04 LTS with Apache-2.4.

 read more »

[AWS] Create/Migrate Linux Users on Amazon EC2

Create or migrate user account with SSH login only (no password login) on AWS EC2 t2.nano with Ubuntu 14.04 LTS.

 read more »

[Bash] Move Large Number of Files via tar Command

Move large number of files via tar command under Bash. This is much quicker than mv command if there are a lot of small files.

 read more »

[Golang] Wrap Pāli Words in Span Element

Wrap Pāli words in span element via regular expression and Go.

 read more »

goquery Get Number of Children Nodes

Get the number of children nodes via goquery in Go.

 read more »

[Bash] Process HTML Files Format in Volumn

Convert the format (Big5 encoding to UTF-8, remove DOS newline in file, replace string big5 with UTF-8, and append UNIX newline to end of file) of HTML files in directory via Bash script.

 read more »

[Bash] Rename Files in Directory to Lowercase

Convert the name of files in directory to lowercase via Bash script.

 read more »

[Golang] Fixed Width/Length String

Output fixed width/length string in Go programming language.

 read more »

[Golang] Read Yes/No From Console

Read Yes/No (i.e., ask for user confirmation) from console in Go programming language.

 read more »

[Golang] Create reStructuredText Metadata via text/template Package

Create reStructuredText metadata via Go text/template and text/width package.

 read more »

[Golang] Number of Child Nodes via net/html Package

Get the number of child nodes via Go net/html package.

 read more »

[Bash] Encoding Conversion, Newline Manipulation, String Replacement of File

Convert encoding of file from Big5 to UTF-8, remove DOS newline in file, replace string big5 with UTF-8, and append UNIX newline to end of file.

 read more »

[Golang] Get Vine Video src via goquery

Get Vine video src URL via goquery in Go programming language. My answer to Stack Overflow question: Getting blank return when using GoQuery to get video src

 read more »

[Golang] Scrape JavaScript Code via strings Package

Scape JavaScript code to get campaign number via Go strings package.

 read more »

goquery Example - Get Simple Text From HTML Page

Answer to Stack Overflow question: go - How to get simple text from HTML page with goquery?.

 read more »

Pelican reStructuredText Link to Section in Another Page

Pelican static site generator - Link to section in another page via reStructuredText.

 read more »

[Golang] getElementById via net/html Package

Equivalent of JavaScript getElementById via Go net/html package.

 read more »

[Golang] HTML Table to reStructuredText list-table via goquery

Convert HTML table to reStructuredText list-table via goquery in Go programming language.

 read more »

[Golang] Unrobust HTML Table to reStructuredText list-table

Convert HTML table to reStructuredText list-table via Go net/html package. This is experimental and not robust implementation.

 read more »

[Golang] Convert All HTML Links to reStructuredText via goquery

Convert all HTML links to restructuredtext in a webpage via goquery in Go programming language.

 read more »

[Golang] Extract Text via State Machine and goquery

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

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 »

[JavaScript] Copy to Clipboard

Copy content of textarea to clipboard via JavaScript.

 read more »

[Makefile] String Replacement Example

Example for how to replace a string in a variable in Makefile.

 read more »

A Time to Love - The Way It Is - Luang Por Sumedho

A TIME TO LOVE - The Way It Is - Luang Por Sumedho

 read more »

Search PTT BBS

Search PTT BBS.

 read more »

[Golang] Read Lines From File or String

Readlines from string or file in Go programming language.

 read more »

[Golang] Write String to File

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

 read more »

[Golang] Hacker News Link to reStructuredText

Extract title and URL from Hacker News comment via goquery, and then output the info to reStructuredText footnote.

 read more »

Search Links of Major Search Engines

Search links of major search engines - Google, DuckDuckGo, Bing, Yahoo, Baidu, Yandex, Ecosia, Qwant.

 read more »

[JavaScript] Wrap Pāli Words in Span Element

Wrap Pāli words in span element via regular expression and JavaScript.

 read more »

The Ariya Sangha - Peace Beyond Delusion (II) - Luang Por Liem Ṭhitadhammo

The Ariya Sangha - Peace Beyond Delusion (II) - Luang Por Liem Ṭhitadhammo

 read more »

[GopherJS] Copy to Clipboard

Copy content of textarea to clipboard via GopherJS.

 read more »

[Golang] Extract Title, Image, and URL via goquery

Extract title, image, and URL in buy123 product webpage via goquery, and then output the info to reStructuredText image.

 read more »

[sed] Replace reStructuredText Link by Regular Expression

Make reStructuredText links of the same name anonymous via regular expression by sed stream editor.

 read more »

[sed] Replace Footnote by Regular Expression

Replace footnote in reStructuredText format via regular expression by sed stream editor.

 read more »

[Vim] Replace Footnote by Regular Expression

Replace footnote in reStructuredText format via regular expression in Vim editor.

 read more »

[Golang] Server Get Form POST Value

Server get HTML form value from HTTP POST in Go programming language.

 read more »

[Golang] Remove Query String From URL

Remove query string from URL in Go programming language.

 read more »

[GopherJS] Element Position (Offset)

Get DOM element position (offset) via GopherJS.

 read more »

Photos of Me on Facebook

Find photos of me on Facebook.

 read more »

[Golang] Get UTF-8 String Width

Get UTF-8 string width (width of English letter is 1, width of CJK character is 2) in Go programming language.

 read more »

[Golang] Get HTML Title via goquery

A simple example to read HTML title via goquery in Go.

 read more »

Makefile notdir = Python basename / Golang path.Base

Makefile's notdir = Python basename / Go path.Base.

 read more »

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

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

 read more »

[sed] Insert Line After First Pattern Match

Insert a line after first pattern match via sed stream editor.

 read more »

[Golang] Download HTML From URL

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

 read more »

[Bash] Convert Files in Directory From Big5 to UTF-8

Convert all files in a directory recursively (i.e., including subdirectories of the directory) from Big5 encoding to UTF-8 via iconv command.

 read more »

[Golang] Find Pāli Word in Velthuis Scheme

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

 read more »

[Golang] Read JPEG Image Date via Exif Metadata

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

 read more »

[sed] Append Text at the Beginning of Each Line

Append text at the beginning of each line via sed stream editor.

 read more »

[GopherJS] insertAfter - Insert New Node After Reference Node

insertAfter - Insert new node after reference node via GopherJS. (opposite of insertBefore)

 read more »

[GopherJS] Get head Element in HTML Document

Access head element in HTML document via GopherJS.

 read more »

[Makefile] Convert Traditional Chinese PO file to Simplified Chinese via OpenCC

Convert Traditional Chinese PO file to Simplified Chinese via OpenCC and sed in Makefile.

 read more »

[Makefile] Concetenate and Minify CSS via sed and tr Command

Concatenate and Minify CSS via sed and tr command in Makefile.

 read more »

[Golang] Minify HTML

Minify HTML via Go programming language.

 read more »

[Golang] Minify CSS

Minify CSS via Go programming language.

 read more »

[Golang] Remove C/C++ Style Comments

Remove C/C++ style comments via Go programming language.

 read more »

[Golang] Online Concatenate and Compress JavaScript Files

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

 read more »

[Golang] Concatenate JavaScript Files

Concatenate JavaScript files via Go programming language.

 read more »

[Golang] Convert Traditional Chinese PO file to Simplified Chinese

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

 read more »

[Makefile] Create Symbolic Link If Not Exist

Makefile - Create symbolic link if it does not exist. Otherwise do nothing.

 read more »

[Python] Find Redundant Files Saved by Chrome

Find redundant files saved by Chrome browser via Python.

 read more »

[Golang] Example for block Action in Template package

Example for block action in Go text/template and html/template packages.

 read more »

[Python] Insert Line With Matched Pattern

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

 read more »

[JavaScript] Button For Traditional/Simplified Chinese Conversion on Website

Conversion Button of Traditional/Simplified Chinese on Website via JavaScript.

 read more »

[Python] Convert HTML Table to reStructuredText list-table

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

 read more »

[JavaScript] Font Size Larger/Smaller

Make font size of your website larger/smaller via JavaScript.

 read more »

[Python] Online Concatenate and Compress JavaScript Files

Online concatenate and compress JavaScript files via Python script.

 read more »

[Python] Concatenate JavaScript Files

Concatenate JavaScript files via Python script.

 read more »

[Python] Beautiful Soup 4 Synonyms with JavaScript

Synonyms - Python Beautiful Soup 4 translated to JavaScript.

 read more »

Pelican Add Buddhist Calendar

Pelican static site generator - add Buddhist calendar in your theme.

 read more »

[Bash] Convert wav to mp3 via ffmpeg

Write a bash script to convert wav to mp3 via ffmpeg on Ubuntu Linux 15.10.

 read more »

[Golang] mkdir -p

mkdir -p command in Go

 read more »

[Python] mkdir -p

mkdir -p command in Python

 read more »

CSS for reStructuredText Footnote and Citation

CSS for reStructuredText (rst) footnote and citation.

 read more »

[Golang] Regular Expression Named Group - Extract Metadata from File Path

Go regexp example of named group matches - extract metadata from file path.

 read more »

Pelican Generate index.html by reStructuredText or Markdown

Pelican static site generator - Generate index.html by writing reStructuredText or Markdown.

 read more »

[Makefile] Echo Color Output

echo colorful output in Makefile.

 read more »

GopherJS XMLHttpRequest (XHR) and MakeFunc Example

Show how to use MakeFunc in GopherJS by XMLHttpRequest (XHR) example.

 read more »

[Python] Export PIXNET Blog to reStructuredText Files

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

 read more »

[Golang] Test if Item Exist in Web Storage by GopherJS

Check if an item exists (is populated) in web storage (localStorage or sessionStorage) by GopherJS.

 read more »

[Python] Convert Footnote to reStructuredText Format

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

 read more »

[Golang] querySelectorAll and querySelector Example by GopherJS

Go querySelectorAll and querySelector Example by GopherJS.

 read more »

[Golang] Tiny Embedding Example of reStructuredText StringList Implementation

Tiny Go embedding code example of analogy to StringList implementation of reStructuredText.

 read more »

[Golang] Call Struct Method With Multiple Arguments And Returns by Name

Call a function (method), with multiple arguments and returns, of a struct by name during run-time in Go. (run-time reflection)

 read more »

[Golang] Call a Struct and its Method by Name

Call a function (method) of a struct by name during run-time in Go. (run-time reflection)

 read more »

[Golang] Synonyms with Python Class

Synonyms - Python class translated to Go

 read more »

[Golang] Toggle-able Sidebar by GopherJS

Go toggle-able sidebar by GopherJS, inspired by Octopress.

 read more »

[Golang] Succinct Trie Implementation

Go implemantation of succinct trie ported from Bits.js.

 read more »

[Golang] Caveats of GopherJS Development

Fix runtime error via goroutine in Go code compiled to JavaScript by GopherJS.

 read more »

[Golang] undefined Test in GopherJS

Check if something (object, variable, API, ...) is undefined or not in GopherJS.

 read more »

[Golang] Count Leading Spaces of a String

Count leading spaces of a string in Go.

 read more »

[Golang] Walk All Files in Directory

List all files in a directory in Go. Similar to Python os.walk.

 read more »

[Golang] Iterate Over UTF-8 Strings (non-ASCII strings)

Iterate over UTF-8 or non-ASCII strings in Go. Iterations by for or range keywords.

 read more »

[JavaScript] Bug in Succinct Trie Implementation of Bits.js

Fix the bug in succinct trie implementation of Bits.js - Wrong trie insertion if words are not inserted in alphabetical order.

 read more »

[Golang] Input Text Element Enter Keypress Event by GopherJS

Add the enter keypress event handler for the input text element by GopherJS

 read more »

[Golang] Remove All Child Nodes of a DOM Element by GopherJS

Go programming language - Remove all children of a DOM element by GopherJS.

 read more »

[Golang] Save Variables of Any Type in JSON file

Save variables of any type (struct, map, array, slice, etc.) in JSON format file via Go programming language.

 read more »

[Golang] Pretty Print Variable (struct, map, array, slice)

Pretty print variable (struct, map, array, slice) in Go.

 read more »

[Makefile] Create Directory If Not Exist

Makefile - Create a directory if it does not exist. Otherwise do nothing.

 read more »

[Golang] GopherJS Synonyms with JavaScript

Synonyms - Go/GopherJS idioms and snippets translated to JavaScript

 read more »

[Golang] gettext Function on Frontend (Browser) by GopherJS

Implement gettext function on front-end (browsers) by GopherJS. The gettext function translates a text string into the user's native language.

 read more »

[Golang] Compile SASS/SCSS files to CSS via libsass

Write a Go program to compile your SASS/SCSS (CSS extension language) files to CSS via libsass and Go wrapper for libsass.

 read more »

[Golang] Convert PO file to JSON Format

Convert PO files to JSON format via Go. 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] Convert PO file to JSON Format

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 »

[Golang] Access HTTP Request Header by XHR getAllResponseHeaders()

Run Golang program in your browser by GopherJS. Access HTTP Request Header by getAllResponseHeaders() method in XMLHttpRequest (XHR) request.

 read more »

[Golang] Access HTTP Request Header (Accept-Language) by JSONP

Run Golang program in your browser by GopherJS. Access Accept-Language field in HTTP Request Header by JSONP to detect browser language preference (user locale).

 read more »

[Golang] Detect Browser Language Preference by window.navigator.language

Run Golang program in your browser by GopherJS. Access window.navigator.language of NavigatorLanguage API to detect browser language preference (user locale).

 read more »

[Golang] reStructuredText Package

Packages of reStructuredText (to HTML) implementation in Go.

 read more »

[Golang] JSONP Example (CORS) by GopherJS

Run Golang program in your browser by GopherJS. Show how to make cross-domain requests (CORS) by JSONP (JSON with Padding) technique, which allows data to be retrieved from servers of other domains. This is an example of full-stack Go, which uses Golang to develop web applications in both front-end and backend.

 read more »

[JavaScript] Parse Accept-Language in HTTP Request Header

Parse Accept-Language in HTTP Request Header in JavaScript Programming Language.

 read more »

[Golang] XMLHttpRequest (XHR) HTTP POST JSON Data by GopherJS

Run Golang program in your browser by GopherJS. Use XMLHttpRequest (XHR) to send HTTP POST requests to send JSON data to remote server. This is an example of full-stack Go, which uses Golang to develop web applications in both front-end and backend.

 read more »

[Golang] XMLHttpRequest (XHR) HTTP GET JSON Data by GopherJS

Run Golang program in your browser by GopherJS. Use XMLHttpRequest (XHR) to send HTTP GET requests to retrieve JSON data from remote server.

 read more »

xgettext Extract Translatable Strings From Golang html/template

Use xgettext (one of GNU gettext utilities) to extract translatable strings from HTML templates of Go html/template.

 read more »

i18n Golang Web Application by gettext and html/template

i18n (Internationalization) Go web applications by GNU gettext tools and html/template. Use PO and MO files generated by gettext in Golang web application to render HTML of specific languages by html/template.

 read more »

[Golang] Toggle (Show/Hide) HTML Element by GopherJS

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to toggle (show/hide) a HTML element by GopherJS and its DOM binding.

 read more »

[Golang] Draggable (Movable) Element by GopherJS

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to write a draggable/movable element by GopherJS and its DOM binding.

 read more »

i18n Python Web Application by gettext and Jinja2

i18n (Internationalization) Python web applications by GNU gettext tools and Jinja2. Use PO and MO files generated by gettext in Python web application to render HTML of specific languages by Jinja2 template engine.

 read more »

[Golang] GopherJS DOM Example - Dropdown Menu

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to write a dropdown menu by GopherJS and its DOM binding.

 read more »

[Golang] GopherJS DOM Example - Toggle (Play/Pause) Sound on Click Event

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to toggle (play/pause) sound on click event of a HTML DOM element.

 read more »

[Golang] GopherJS DOM Example - Play Sound on Click Event

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to play sound on click event of a HTML DOM element.

 read more »

[Python] Internationalization (i18n) of Python Application by GNU gettext Tools

Internationalization (i18n) of Python applications by GNU gettext tools. This post shows how to use PO and MO files in Python.

 read more »

[Golang] GopherJS DOM Example - Create and Append Element

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to create a new HTML element and append it to the DOM tree.

 read more »

[Golang] GopherJS DOM Example - Hide Element by display:none

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to hide HTML elements by setting its CSS property display:none.

 read more »

[Golang] Online Snake Game by GopherJS

Online snake game using Go programming language, compiled to JavaScript by GopherJS. (GopherJS DOM example)

 read more »

[Golang] Online Input Method (Pāli) by GopherJS

Online Pali (Pāli, Pāḷi) Input Method using Go programming language, compiled to JavaScript by GopherJS. (GopherJS DOM example)

 read more »

[Golang] GopherJS DOM Example - Access HTML Data Attribute

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example shows how to access HTML data-* attribute.

 read more »

[Golang] GopherJS DOM Example - Access Input Element Value

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. This example show how to access the value of HTML input element.

 read more »

[Golang] GopherJS DOM Example - Detect Keypress (Keyboard Event)

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. Detect user keypress by registering keyboard event handler and print out the keycode of the keyboard event.

 read more »

[Golang] GopherJS DOM Example - Event Binding (addEventListener)

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. Use addEventListener to attach event handler to specific DOM element.

 read more »

[Golang] GopherJS serve and build Command Usage

Example of how to use serve and build command of GopherJS.

 read more »

[Golang] GopherJS DOM Example - getElementById and Set innerHTML

Run Golang program in your browser by GopherJS. Show how to write a Go program to do DOM manipulation by example. Use getElementById to access DOM element and set innerHTML of the element.

 read more »

[Golang] sqlite3 Database Example - Basic Usage

Use SQLite in Go program. Write a Golang program to initialize a database, create a table, write some data to the table and read data from the table.

 read more »

[Golang] Internationalization (i18n) of Go Application by GNU gettext Tools

Internationalization (i18n) of Go applications by GNU gettext tools. This post shows how to use PO and MO files in Golang.

 read more »

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

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

 read more »

Internationalization (i18n) of Web Application by GNU gettext Tools

Support multiple languages in your (web) applications, by GNU gettext tools, which include xgettext, msginit, msgmerge, and msgfmt.

 read more »

[Python] Web Scrape JavaScript Webpage by dryscrape

Web scrape JavaScript rendered webpages by dryscrape, a lightweight web scraping library for Python.

 read more »

Deploy Website by Pelican, Travis CI, and GitHub Pages

Automatic deployment of websites, by Pelican, Travis CI, and Github Pages

 read more »

[Python] Conversion of Traditional and Simplified Chinese

Conversion of Traditional and Simplified Chinese by OpenCC and Python programming language.

 read more »

[Golang] Conversion of Traditional and Simplified Chinese

Conversion of Traditional and Simplified Chinese by OpenCC and Go programming language.

 read more »

[Bash] Use wget to Fetch Webpages

Write a bash script to use wget to fetch webpages.

 read more »

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

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

 read more »

[Math] International Mathematical Olympiad (IMO) 2014 Problem 6

International Mathematical Olympiad (IMO) 2014 Problem 6

 read more »

[Math] Asian Pacific Mathematics Olympiad (APMO) 2015 Problem 4

Asian Pacific Mathematics Olympiad (APMO) 2015 Problem 4

 read more »

[Math] International Mathematical Olympiad (IMO) 2010 Problem 6

International Mathematical Olympiad (IMO) 2010 Problem 6

 read more »

[Math] International Mathematical Olympiad (IMO) 2015 Problem 6

International Mathematical Olympiad (IMO) 2015 Problem 6

 read more »

[Algorithm] Magical Recurrence

In a recent algorithmic coding contest which I didn't do well, the hardest problem killed me. It distinguished me from other superior coders. But it's still an interesting one. The problem is essentially to solve a 0/1 knapsack problem on a tree where each node is associated with an …

 read more »

[Math] United States of America Mathematical Olympiad (USAMO) 2015 Problem 3

United States of America Mathematical Olympiad (USAMO) 2015 Problem 3

 read more »

[Golang] Generate Random String From [a-z0-9]

Generate a random string from [a-z0-9] in Golang.

 read more »

Internationalization and Localization of Google App Engine Python Webapp Using webapp2 and Jinja2

i18n and L10n of Google App Engine Python web application, with webapp2, Jinja2, Babel, and pytz.

 read more »

[Math] The infamous Grasshopper problem

The infamous Grasshopper problem

 read more »

[Golang] Save JSON Data in Directory

Save JSON-format data in the directory using Go programming language.

 read more »

[Golang] Wait For Goroutines to Finish

Use channels to wait for all goroutines to finish

 read more »

Responsive Navigation Bar (Navbar)

Responsive top navigation bar (navbar) used in this website.

 read more »

Import CSS File in SCSS with pyScss

Include regular CSS file in SCSS file with pyScss.

 read more »

Simple Custom Responsive Grid Layout

A simple custom responsive grid layout exmaple without CSS frameworks.

 read more »

Golang html/template versus Python Jinja2 (7) - Custom Functions and Filters

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Go template custom function vs Jinja2 custom filter and function.

 read more »

[Golang] Capture and Handle Ctrl+C Event

Run cleanup function when receiving ^C signal.

 read more »

[Golang] Goroutines Poll Web Feeds

Poll RSS/ATOM feeds with Goroutines

 read more »

[web.py] Multiple Application with Same Context

Multiple web.py applications with the same context (web.ctx)

 read more »

Golang html/template versus Python Jinja2 (6) - Template Inheritance (Extends)

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Mimic Jinja2 template inheritance in Go html/template

 read more »

Golang html/template versus Python Jinja2 (5) - Maps and Dictionaries

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Loop through Python Dictionaries vs Go Maps

 read more »

Golang html/template versus Python Jinja2 (4) - Arrays and Slices Index

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Python List vs Go Arrays and Slices - Loop Index

 read more »

Golang html/template versus Python Jinja2 (3) - Arrays and Slices

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Python List vs Go Arrays and Slices

 read more »

[web.py] Web Application on Both Google App Engine and Apache

Web application (web.py framework) template runs on both Google App Engine Python and Apache with mod_wsgi.

 read more »

[Golang] Parse Web Feed - RSS and Atom

Parse Atom 1.0/RSS 2.0 web feeds in Go programming language.

 read more »

[Golang] Convert Atom to RSS

Convert Atom 1.0 to RSS 2.0 format in Go programming language.

 read more »

[Dart] Access HTML Data Attribute

Access data-* attribute of HTML elements in Dart

 read more »

[Golang] XML Parsing Example (8) - Parse Atom 1.0

How to read XML/HTML files in Go programming language (for newbie) - Parse Atom 1.0 format.

 read more »

[Golang] XML Parsing Example (7) - Parse RSS 2.0

How to read XML/HTML files in Go programming language (for newbie) - Parse RSS 2.0 format.

 read more »

[Golang] XML Parsing Example (6) - Parse OPML Concisely

How to read XML/HTML files in Go programming language (for newbie) - Parse OPML format concisely.

 read more »

[Golang] XML Parsing Example (5) - Parse OPML

How to read XML/HTML files in Go programming language (for newbie) - Parse OPML format.

 read more »

Golang html/template versus Python Jinja2 (2)

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - print Hello World! on screen

 read more »

[Golang] XML Parsing Example (4)

How to read XML/HTML files in Go programming language (for newbie) - Read multiple direct child elements.

 read more »

[Dart] Online Input Method - Pali (Pāli, Pāḷi)

Online Pali (Pāli, Pāḷi) Input Method using Dart programming language.

 read more »

[Golang] Parse Accept-Language in HTTP Request Header

Parse Accept-Language in HTTP Request Header in Go Programming Language.

 read more »

Golang html/template versus Python Jinja2 (1)

Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Load and Serve Templates

 read more »

[Golang] XML Parsing Example (3)

How to read XML/HTML files in Go programming language (for newbie) - Read a direct child element.

 read more »

Use Object Instance Function as JSONP Callback Function

Cross-domain requests by JSONP with object instance function as callback on Google App Engine for Python.

 read more »

JSONP with Anonymous Callback Function

Cross-domain requests by JSONP with anonymous callback function on Google App Engine for Python.

 read more »

JSONP on Google App Engine Python

Cross-domain requests by JSONP on Google App Engine for Python.

 read more »

[Golang] XML Parsing Example (2)

How to read XML/HTML files in Go programming language (for newbie) - Read element attribute.

 read more »

[Dart] Keyboard Event (Arrow Key Example)

Detect keystrokes in Dart programming language.

 read more »

[Golang] Read Command-line Arguments Example

How to pass command-line arguments (flags) in Go programming language.

 read more »

[Golang] XML Parsing Example (1)

How to read XML/HTML files in Go programming language (for newbie) - Read element and its content.

 read more »

[Dart] Draggable (Movable) Element

Draggable, movable (drag and drop) HTML element using Dart programming language.

 read more »

[Dart] MouseEvent ClientX and ClientY Deprecated

e.clientX => e.client.x & e.clientY => e.client.y

 read more »

Draggable Toggleable Simple Web Keyboard

Demonstrate how to make an online 0-9 keypad, which is draggable via jQuery and toggleable via vanilla JavaScript.

 read more »

[Webapp] Dart HTTP POST JSON Data to Go Server

Show how to pass JSON-format data using HTTP POST between browser (implemented with Dart) and web server (implemented with Go).

 read more »

Dart Dropdown Menu

Dropdown menu using Dart programming language.

 read more »

[Dart] Hide Div When Clicked Outside It

Hide div element when clicked outside it, using Dart programming language.

 read more »

Load Dart Script if Dartium, Otherwise Load JavaScript in Browser

Load Dart script while development or the browser supports dart. Otherwise load JavaScript as usual.

 read more »

Hide Div When Clicked Outside It

Hide div element when clicked outside it, in vanilla JavaScript way. No jQuery or libraries are used.

 read more »

Javascript Drop Down Menu

Dropdown menu using vanilla JavaScript. No jQuery or libraries are used.

 read more »

Toggle Element (Dropdown/Menu) Visibility with CSS

Toggle element (usually div) with pure CSS only (no JavaScript). Suitable for dropdown/menu application.

 read more »

[AngularJS] Dropdown Menu Using Directive

Use AngularJS powerful custom directive to implement dropdown menu without jQuery or any other library.

 read more »

[Bash] List All Files in Directory Recursively and Rename

List all files in a directory recursively (i.e., including subdirectories of the directory), and use sed to rename the files.

 read more »

The Four Principles of Indian Spirituality

“Whomsoever you encounter is the right one.”, “Whatever happened is the only thing that could have happened.”, “Each moment in which something begins is the right moment.”, “What is over, is over.”

 read more »

[Algorithm] Insane DFS

Insane DFS

 read more »

[Algorithm] Swap and Sum

Swap and Sum

 read more »

[Algorithm] Robot

Robot

 read more »

ares_gethostbyname() is slow on some Windows machines

The function ares_gethostbyname()  in  c-ares  library, as of version 1.10.0, is slow on some Windows machines. ...

 read more »

[Dart] DOM Element Remove All Children

DOM element remove all children in Dart programming language

 read more »

Hello World in C

Hello World program in C programming language

 read more »

[AngularJS] Toggle Element without JavaScript

Example of toggling DOM element using AngularJS, without any JavaScript code.

 read more »

[AngularJS] Get Element Offset (Position)

Get the offset (position) of an AngularJS DOM element without jQuery

 read more »

[AngularJS] Incorrect ng-mouseenter ng-mouseleave and Solution

Solution to mouseenter and mouseleave event in old version AngularJS.

 read more »

[AngularJS] Draggable (Movable) Element

Draggable, movable HTML element using AngularJS.

 read more »

[AngularJS] Safe Scope.$apply Implementation (Error: $apply already in progress)

Safely execute an expression in angular from outside of the angular framework.

 read more »

[Python] Pretty Print Variable (Dictionary, List, Object, Array)

Pretty print variable in Python

 read more »

[AngularJS] Set HTML Document Title

Set HTML document title in AngularJS

 read more »

[AngularJS] Update Property in Parent Scope

Update parent scope from child scope by event dispatching and listening mechanism.

 read more »

[AngularJS] datepicker with jQuery

jQuery datepicker wrapped in AngularJS directive.

 read more »

[C] Remove String Trailing Newline (Carriage Return)

Remove trailing newline (carriage return) of a string in C programming language.

 read more »

My Last Words - Ajahn Prawit

My Last Words - Ajahn Prawit

 read more »

[JavaScript] Toggle (Play/Pause) Sound on Click Event of DOM Element

Toggle sound on click event of DOM element.

 read more »

Detect User Language (Locale) on Google App Engine Python

Detect user locale/language from HTTP request header on Google App Engine for Python.

 read more »

[Python] Parse Accept-Language in HTTP Request Header

Parse Accept-Language in HTTP Request Header in Python.

 read more »

[JavaScript] Load CSS Dynamically

Load CSS file dynamically.

 read more »

[JavaScript] Remove Leading and Trailing Whitespaces

Remove leading and trailing whitespaces of a string in JavaScript.

 read more »

[JavaScript] Play Sound on Click Event of DOM Element

Play sound on click event of DOM element.

 read more »

[JavaScipt] Cross-Browser HTTP POST Request

JavaScript cross-browser HTTP POST request

 read more »

[JavaScipt] Cross-Browser HTTP GET Request

JavaScript cross-browser HTTP GET request

 read more »

DOM Ready without JavaScript Frameworks

Check DOM readiness in vanilla JavaScript.

 read more »

[JavaScript] Conversion of Traditional and Simplified Chinese

JavaScript library New Tong Wen Tang for conversion of Traditional and Simplified Chinese.

 read more »

[JavaScript] Firing Order (Precedence) of Event Handler

Use onmousedown event instead of onclick event if the event handler to be fired before onblur event.

 read more »

[JavaScript] Load Favicon Dynamically

Load website icon (favicon) dynamically.

 read more »

JavaScript basename()

JavaScript equivalent of basename program.

 read more »

[JavaScript] onMouseEnter and onMouseLeave Suppport for Old Browsers

JavaScript Cross-Browser Implementation of onMouseEnter and onMouseLeave Event

 read more »

[JavaScript] Change Scope (Context) of Anonymous Function

Change the scope (context) of anonymous function - change what this keyword refers to in anonymous function.

 read more »

[JavaScript] Scope (Context) of Event Handler Function

Discuss the scope (context) of event handler and how to change what this keyword refers to.

 read more »

[JavaScript] oninput and onpropertychange Event Alternative

Detect the content change of HTML input elements in a cross-browser and consistent manner.

 read more »

Add Social Buttons (Google+, Facebook, Twitter) on Website

Use social buttons to make your website more popular.

 read more »

[JavaScript] Single Callback For Multiple Asynchronous AJAX Requests (XMLHttpRequest)

JavaScript single callback for multiple asynchronous XHR requests.

 read more »

[JavaScript] Check Website Availability and Then Redirect by JSONP

Redirect users to another website if the website is available.

 read more »

[Python] Use XSL to Transform XML (XSLT)

XSLT (Extensible Stylesheet Language Transformations) in Python.

 read more »

[JavaScript] String startswith, endswith and contains Implementation

JavaScript equivalent of Python string startswith, endswith, and contains.

 read more »

JavaScript Create DOM Element Dynamically

Create DOM elements by JavaScript.

 read more »

Python Create HTML Element Dynamically on Server Side

Serve DOM elements to clients dynamically on Google App Engine Python

 read more »

JavaScript Remove All Children of a DOM Element

Bug-free way of removing child nodes of a DOM element in JavaScript.

 read more »

JavaScript Cross-Browser Cross-Domain XMLHttpRequest (XDomainRequest in IE)

Cross-domain AJAX requests

 read more »

[Javascript] Width Percentage to Pixel

1% width of browser window equal to how many pixels?

 read more »

[JavaScript] Width of Browser Window in Pixel

Width of browser window in pixel.

 read more »

Access-Control-Allow-Origin in HTTP Header on Google App Engine

Config Access-Control-Allow-Origin in HTTP headers on Google App Engine.

 read more »

[JavaScript] Comparison of MouseEnter MouseLeave MouseOver MouseOut

Compare mouseenter, mouseleave, mouseover, and mouseout events.

 read more »

Lightweight Dynamic JavaScript Loader with Dependency Handling

Load JavaScript scripts dynamically with dependencies.

 read more »

AJAX Form POST Request to Google App Engine Python

Send/receive data to/from Google App Engine Python servers by HTTP POST requests in AJAX way.

 read more »

JavaScript Drag and Drop (Draggable, Movable) Element without External Library

Draggable, movable HTML element using vanilla JavaScript.

 read more »

Google Closure Library Editor with Equation Editor Dialog

Rich text editor with math equation dialog using Google Closure Library.

 read more »

JavaScript DOM Element Position (Scroll Position Included)

Get DOM element position (including scroll position) using JavaScript.

 read more »

JavaScript Back to Top Link

JavaScript Back to Top Link

 read more »

JavaScript Keyboard Event (Arrow Key Example)

Detect arrow keystrokes in JavaScript.

 read more »

JavaScript Event Target Element (srcElement)

Event target element in JavaScript event handling.

 read more »

Load External JavaScript or CSS file Dynamically

Load JavaScript or CSS on demand.

 read more »

JavaScript Prefix Match (Dictionary Application)

Given a set of strings (words), and an user input string, output a set of strings with prefix the same as the user input string

 read more »

Google App Engine Datastore Example : Dictionary Application

Simple usage example of Google App Engine Python Datastore.

 read more »

Fixed Menu Bar on Top of Website

Put your menu bar on top of the website, no matter how users scroll.

 read more »

Multiple Files Upload with Google App Engine Python

Let website users upload multiple files to Google App Engine (Python) servers.

 read more »

Python Library xml.dom.minidom Howto (7)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Special Format Conversion in Python

%2c%e3%80%90%e5%bd%a2%e3%80%91%e6%97%a0%e7%a2%8d%e7%9a%84%e3%80%82 <=> ,【形】无碍的。

 read more »

Evaluation of Multivariate Gaussian with NumPy

Evaluate Multivariate Normal Distribution with NumPy in Python.

 read more »

HTTP POST (multipart/form-data) on Android

Upload a file to the server in your Android app.

 read more »

Python Library xml.dom.minidom Howto (1)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Python Library xml.dom.minidom Howto (2)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Python Library xml.dom.minidom Howto (3)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Python Library xml.dom.minidom Howto (4)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Python Library xml.dom.minidom Howto (5)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Python Library xml.dom.minidom Howto (6)

Python XML/HTML manipulation primer of xml.dom.minidom

 read more »

Show argmax/argmin in LaTeX on Blog

Type the math symbol "argmin" and "argmax" in LaTeX

 read more »

Pāli Input Method on Ubuntu Linux

Type romanized Pāli on your Ubuntu Linux.

 read more »

Show Source Code on Web

Show source code on your website

 read more »

Show Math on Web

Show math symbols on the blog or website.

 read more »