Are you over 18 and want to see adult content?
More Annotations
![A complete backup of finlandforum.org](https://www.archivebay.com/archive2/8267f63a-1fd1-4f1b-84cf-d0f7475f7b87.png)
A complete backup of finlandforum.org
Are you over 18 and want to see adult content?
![A complete backup of cybertrashbox.com](https://www.archivebay.com/archive2/8e629143-0ab3-401c-a73d-2191ee6a3b39.png)
A complete backup of cybertrashbox.com
Are you over 18 and want to see adult content?
![A complete backup of sildenafil204.com](https://www.archivebay.com/archive2/58921887-6365-4632-bdfb-63b03d2d0cd1.png)
A complete backup of sildenafil204.com
Are you over 18 and want to see adult content?
![A complete backup of greensciencepolicy.org](https://www.archivebay.com/archive2/ba09c7ea-9ec9-4b4c-bd86-623ed3e1327a.png)
A complete backup of greensciencepolicy.org
Are you over 18 and want to see adult content?
![A complete backup of unitconverterpro.com](https://www.archivebay.com/archive2/9430b20f-92ab-45e0-8fa7-66d2491206d9.png)
A complete backup of unitconverterpro.com
Are you over 18 and want to see adult content?
![A complete backup of wowfreestuff.co.uk](https://www.archivebay.com/archive2/02d7737a-1165-44be-9366-e9220a96edaf.png)
A complete backup of wowfreestuff.co.uk
Are you over 18 and want to see adult content?
![A complete backup of floridahumanities.org](https://www.archivebay.com/archive2/471e7723-d010-4d17-b9b8-a892d2e011db.png)
A complete backup of floridahumanities.org
Are you over 18 and want to see adult content?
Favourite Annotations
![A complete backup of www.forbes.com/sites/scottmendelson/2020/02/25/invisible-man-review-best-universal-monster-movie-since-mumm](https://www.archivebay.com/archive2/d7d888f6-0791-47ba-ae44-035fcb6213c2.png)
A complete backup of www.forbes.com/sites/scottmendelson/2020/02/25/invisible-man-review-best-universal-monster-movie-since-mumm
Are you over 18 and want to see adult content?
![A complete backup of udn.com/news/story/6809/4381003](https://www.archivebay.com/archive2/9d7eae0e-fad0-40b3-900b-3326f8c296d0.png)
A complete backup of udn.com/news/story/6809/4381003
Are you over 18 and want to see adult content?
![A complete backup of www.bbc.com/news/uk-wales-51637265](https://www.archivebay.com/archive2/ba5f063c-6260-4471-9856-c7eac2f1e158.png)
A complete backup of www.bbc.com/news/uk-wales-51637265
Are you over 18 and want to see adult content?
![A complete backup of www.silverscreenandroll.com/2020/2/29/21159702/lakers-vs-grizzlies-final-score-recap-ja-morant-lebron-james](https://www.archivebay.com/archive2/7b979300-1821-4c42-9fea-761664bc4a49.png)
A complete backup of www.silverscreenandroll.com/2020/2/29/21159702/lakers-vs-grizzlies-final-score-recap-ja-morant-lebron-james
Are you over 18 and want to see adult content?
![A complete backup of www.bbc.com/news/newsbeat-51673734](https://www.archivebay.com/archive2/9a095cf2-0753-44d2-a0cc-8ecd5a2aa445.png)
A complete backup of www.bbc.com/news/newsbeat-51673734
Are you over 18 and want to see adult content?
Text
event as follows:
BEAUTIFUL SOUP 4 SYNONYMS WITH JAVASCRIPT Synonyms - Python Beautiful Soup 4 translated to JavaScript. Tested on: Ubuntu Linux 15.10, Python 2.7.10.DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful. PYTHON CREATE HTML ELEMENT DYNAMICALLY ON SERVER SIDE 2. Use Python xml.dom.minidom library. If you have no idea of what Python minidom is, please refer to series of introduction to minidom library in this blog .The result of following code snippet is exactly the same as that of the above code snippet, i.e., HTMLcode above is SELECT FIRST ROW OF TABLE CSS: table.first-row > tbody > tr:nth-of-type(1) { font-size: larger; color: red; } We use nth-of-type CSS selector to select the first tr of the table. If you want to select n-th row, change the number from 1 to n. You may also be interested in Select First Column ofTable.
GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and Serve SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. TOGGLE (PLAY/PAUSE) SOUND ON CLICK EVENT OF When you click on the button element, the sound will be played. If the element is clicked again, the sound will be paused. To toggle sound like this, a HTML5 audio element is embedded in the HTML document, and not displayed on screen. Every time the button element is clicked, the toggleSound function will be executed. The toggleSound function checks if the audio element is paused. PASS COMMAND LINE ARGUMENTS (FLAGS) IN GO TEST This post show how to pass command line arguments (flags) in Golang test. The answers found in Google search and Stack Overflow are not working for Go 1.8.1.Finally I found the issues and figure out how to pass arguments correctly. The following is howto.DART DROPDOWN MENU
Dart Dropdown Menu. February 14, 2015. Edit on Github. This post gives an example of Dart dropdown menu, which the Dart version of my previous post JavaScript dropdown menu . Please first see ( Dartium is needed for the demo): INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
BEAUTIFUL SOUP 4 SYNONYMS WITH JAVASCRIPT Synonyms - Python Beautiful Soup 4 translated to JavaScript. Tested on: Ubuntu Linux 15.10, Python 2.7.10.DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful. PYTHON CREATE HTML ELEMENT DYNAMICALLY ON SERVER SIDE 2. Use Python xml.dom.minidom library. If you have no idea of what Python minidom is, please refer to series of introduction to minidom library in this blog .The result of following code snippet is exactly the same as that of the above code snippet, i.e., HTMLcode above is SELECT FIRST ROW OF TABLE CSS: table.first-row > tbody > tr:nth-of-type(1) { font-size: larger; color: red; } We use nth-of-type CSS selector to select the first tr of the table. If you want to select n-th row, change the number from 1 to n. You may also be interested in Select First Column ofTable.
GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and Serve SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. TOGGLE (PLAY/PAUSE) SOUND ON CLICK EVENT OF When you click on the button element, the sound will be played. If the element is clicked again, the sound will be paused. To toggle sound like this, a HTML5 audio element is embedded in the HTML document, and not displayed on screen. Every time the button element is clicked, the toggleSound function will be executed. The toggleSound function checks if the audio element is paused. PASS COMMAND LINE ARGUMENTS (FLAGS) IN GO TEST This post show how to pass command line arguments (flags) in Golang test. The answers found in Google search and Stack Overflow are not working for Go 1.8.1.Finally I found the issues and figure out how to pass arguments correctly. The following is howto.DART DROPDOWN MENU
Dart Dropdown Menu. February 14, 2015. Edit on Github. This post gives an example of Dart dropdown menu, which the Dart version of my previous post JavaScript dropdown menu . Please first see ( Dartium is needed for the demo): SELECT FIRST ROW OF TABLE CSS: table.first-row > tbody > tr:nth-of-type(1) { font-size: larger; color: red; } We use nth-of-type CSS selector to select the first tr of the table. If you want to select n-th row, change the number from 1 to n. You may also be interested in Select First Column ofTable.
BULMA MODAL
Toggle Bulma modal via Vue.js. To toggle Bulma modal, add the is-active class to the class attribute of the modal to activate the modal. Remove the is-active class will make the modal invisible.. The following is the source code for the above demo: SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. PARSE UNIX TIME (UTIME) EXAMPLE The string 1487113202 looks familiar, so I did some googling and found that it represents Unix time, seconds and nanoseconds that have elapsed since January 1, 1970 UTC.. In this post, we will show how to parse the string of Unix time (also known as POSIX time or Epoch time) in Go programmming language. TOGGLE (PLAY/PAUSE) SOUND ON CLICK EVENT OF When you click on the button element, the sound will be played. If the element is clicked again, the sound will be paused. To toggle sound like this, a HTML5 audio element is embedded in the HTML document, and not displayed on screen. Every time the button element is clicked, the toggleSound function will be executed. The toggleSound function checks if the audio element is paused. DOWNLOAD FILE FROM URL Download and save files (image, pdf, etc.) from given URL in Go. ADD METHOD TO EXISTING TYPE IN EXTERNAL PACKAGE After some googling , I found that it is impossible to add method to existing type in external package. But good news is that I can still do something similar as follows: Here we wrap *js.Object in a new defined type Object in our package . And we can getElementById in Go as follows: WIDTH PERCENTAGE TO PIXEL Here is an interesting and sometimes practical question: How do I know the 1% width of browser window equal to how many pixels? The answer is easy: add a div element right after the body tag, make it 100% wide, and get the offsetWidth property of the div.From the value of offsetWidth property, we will know 100% width equal to how many pixels, and hence we can know 1% equal to how RESIZE IMAGE FROM WEB Read an image from web and resize it in Go programming language. SINGLE CALLBACK FOR MULTIPLE ASYNCHRONOUS There are two main functions in above code snippet. One is AjaxRequest, which is the function to issue single AJAX request (XMLHttpRequest).The other is AjaxRequestsMulti, which is the function to issue multiple AJAX requests.I put a lot of comments in the code in BEAUTIFUL SOUP 4 SYNONYMS WITH JAVASCRIPT Synonyms - Python Beautiful Soup 4 translated to JavaScript. Tested on: Ubuntu Linux 15.10, Python 2.7.10. INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful. CHECK IF A PROGRAM (COMMAND) EXISTS Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
PYTHON CREATE HTML ELEMENT DYNAMICALLY ON SERVER SIDE 2. Use Python xml.dom.minidom library. If you have no idea of what Python minidom is, please refer to series of introduction to minidom library in this blog .The result of following code snippet is exactly the same as that of the above code snippet, i.e., HTMLcode above is GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and Serve TOGGLE (PLAY/PAUSE) SOUND ON CLICK EVENT OF When you click on the button element, the sound will be played. If the element is clicked again, the sound will be paused. To toggle sound like this, a HTML5 audio element is embedded in the HTML document, and not displayed on screen. Every time the button element is clicked, the toggleSound function will be executed. The toggleSound function checks if the audio element is paused. RESIZE IMAGE FROM WEB Read an image from web and resize it in Go programming language. PASS COMMAND LINE ARGUMENTS (FLAGS) IN GO TEST This post show how to pass command line arguments (flags) in Golang test. The answers found in Google search and Stack Overflow are not working for Go 1.8.1.Finally I found the issues and figure out how to pass arguments correctly. The following is howto.DART DROPDOWN MENU
Dart Dropdown Menu. February 14, 2015. Edit on Github. This post gives an example of Dart dropdown menu, which the Dart version of my previous post JavaScript dropdown menu . Please first see ( Dartium is needed for the demo): BEAUTIFUL SOUP 4 SYNONYMS WITH JAVASCRIPT Synonyms - Python Beautiful Soup 4 translated to JavaScript. Tested on: Ubuntu Linux 15.10, Python 2.7.10. INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful. CHECK IF A PROGRAM (COMMAND) EXISTS Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
PYTHON CREATE HTML ELEMENT DYNAMICALLY ON SERVER SIDE 2. Use Python xml.dom.minidom library. If you have no idea of what Python minidom is, please refer to series of introduction to minidom library in this blog .The result of following code snippet is exactly the same as that of the above code snippet, i.e., HTMLcode above is GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and Serve TOGGLE (PLAY/PAUSE) SOUND ON CLICK EVENT OF When you click on the button element, the sound will be played. If the element is clicked again, the sound will be paused. To toggle sound like this, a HTML5 audio element is embedded in the HTML document, and not displayed on screen. Every time the button element is clicked, the toggleSound function will be executed. The toggleSound function checks if the audio element is paused. RESIZE IMAGE FROM WEB Read an image from web and resize it in Go programming language. PASS COMMAND LINE ARGUMENTS (FLAGS) IN GO TEST This post show how to pass command line arguments (flags) in Golang test. The answers found in Google search and Stack Overflow are not working for Go 1.8.1.Finally I found the issues and figure out how to pass arguments correctly. The following is howto.DART DROPDOWN MENU
Dart Dropdown Menu. February 14, 2015. Edit on Github. This post gives an example of Dart dropdown menu, which the Dart version of my previous post JavaScript dropdown menu . Please first see ( Dartium is needed for the demo): INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
SELECT FIRST ROW OF TABLE CSS: table.first-row > tbody > tr:nth-of-type(1) { font-size: larger; color: red; } We use nth-of-type CSS selector to select the first tr of the table. If you want to select n-th row, change the number from 1 to n. You may also be interested in Select First Column ofTable.
BULMA MODAL
Toggle Bulma modal via Vue.js. To toggle Bulma modal, add the is-active class to the class attribute of the modal to activate the modal. Remove the is-active class will make the modal invisible.. The following is the source code for the above demo: SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. PARSE UNIX TIME (UTIME) EXAMPLE The string 1487113202 looks familiar, so I did some googling and found that it represents Unix time, seconds and nanoseconds that have elapsed since January 1, 1970 UTC.. In this post, we will show how to parse the string of Unix time (also known as POSIX time or Epoch time) in Go programmming language. DOWNLOAD FILE FROM URL Download and save files (image, pdf, etc.) from given URL in Go. ADD METHOD TO EXISTING TYPE IN EXTERNAL PACKAGE After some googling , I found that it is impossible to add method to existing type in external package. But good news is that I can still do something similar as follows: Here we wrap *js.Object in a new defined type Object in our package . And we can getElementById in Go as follows: RESIZE IMAGE FROM WEB Read an image from web and resize it in Go programming language. WIDTH PERCENTAGE TO PIXEL Here is an interesting and sometimes practical question: How do I know the 1% width of browser window equal to how many pixels? The answer is easy: add a div element right after the body tag, make it 100% wide, and get the offsetWidth property of the div.From the value of offsetWidth property, we will know 100% width equal to how many pixels, and hence we can know 1% equal to how SINGLE CALLBACK FOR MULTIPLE ASYNCHRONOUS There are two main functions in above code snippet. One is AjaxRequest, which is the function to issue single AJAX request (XMLHttpRequest).The other is AjaxRequestsMulti, which is the function to issue multiple AJAX requests.I put a lot of comments in the code in INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneBULMA MODAL
Toggle Bulma modal via Vue.js. To toggle Bulma modal, add the is-active class to the class attribute of the modal to activate the modal. Remove the is-active class will make the modal invisible.. The following is the source code for the above demo: GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and ServeTAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo.DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.THE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
CHECK IF A PROGRAM (COMMAND) EXISTS Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneBULMA MODAL
Toggle Bulma modal via Vue.js. To toggle Bulma modal, add the is-active class to the class attribute of the modal to activate the modal. Remove the is-active class will make the modal invisible.. The following is the source code for the above demo: GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and ServeTAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo.DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.THE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
CHECK IF A PROGRAM (COMMAND) EXISTS Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneTHE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.TAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo. HTML SELECT ELEMENT EXAMPLE Edit on Github. 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. The following demo shows how to use v-model to get selected option. bounce flash pulse. selected option: bounce. CHECK IF A PROGRAM (COMMAND) EXISTS Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
PURE CSS BULMA ACCORDION (COLLAPSIBLE CONTENT) Actually there is accordion in Bulma extensions, but we are not going to use it.I like to use only standard components provided by Bulma. Here we use Bulma panel component to implement the accordion. The basic technique is the same as Pure CSS Tab Panel.We need: 1 - Visible HTML label elements, which is the title of panels.. 2 - Invisible HTML input radio elements, referenced by the label GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } TOGGLE (PLAY/PAUSE) SOUND ON CLICK EVENT OF When you click on the button element, the sound will be played. If the element is clicked again, the sound will be paused. To toggle sound like this, a HTML5 audio element is embedded in the HTML document, and not displayed on screen. Every time the button element is clicked, the toggleSound function will be executed. The toggleSound function checks if the audio element is paused. DOWNLOAD FILE FROM URL Download and save files (image, pdf, etc.) from given URL in Go. INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneBULMA MODAL
Toggle Bulma modal via Vue.js. To toggle Bulma modal, add the is-active class to the class attribute of the modal to activate the modal. Remove the is-active class will make the modal invisible.. The following is the source code for the above demo: GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and ServeTAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo.DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.THE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
CHECK IF A PROGRAM (COMMAND) EXISTS Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneBULMA MODAL
Toggle Bulma modal via Vue.js. To toggle Bulma modal, add the is-active class to the class attribute of the modal to activate the modal. Remove the is-active class will make the modal invisible.. The following is the source code for the above demo: GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and ServeTAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo.DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.THE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
CHECK IF A PROGRAM (COMMAND) EXISTS Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneTHE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.TAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo. HTML SELECT ELEMENT EXAMPLE Edit on Github. 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. The following demo shows how to use v-model to get selected option. bounce flash pulse. selected option: bounce. CHECK IF A PROGRAM (COMMAND) EXISTS Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
PURE CSS BULMA ACCORDION (COLLAPSIBLE CONTENT) Actually there is accordion in Bulma extensions, but we are not going to use it.I like to use only standard components provided by Bulma. Here we use Bulma panel component to implement the accordion. The basic technique is the same as Pure CSS Tab Panel.We need: 1 - Visible HTML label elements, which is the title of panels.. 2 - Invisible HTML input radio elements, referenced by the label GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } TOGGLE (PLAY/PAUSE) SOUND ON CLICK EVENT OF When you click on the button element, the sound will be played. If the element is clicked again, the sound will be paused. To toggle sound like this, a HTML5 audio element is embedded in the HTML document, and not displayed on screen. Every time the button element is clicked, the toggleSound function will be executed. The toggleSound function checks if the audio element is paused. DOWNLOAD FILE FROM URL Download and save files (image, pdf, etc.) from given URL in Go. INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneBULMA MODAL
Toggle Bulma modal via Vue.js. To toggle Bulma modal, add the is-active class to the class attribute of the modal to activate the modal. Remove the is-active class will make the modal invisible.. The following is the source code for the above demo: GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and ServeTAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo.DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.THE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
CHECK IF A PROGRAM (COMMAND) EXISTSLINUX IF DIRECTORY EXISTSLINUX IF DIRECTORY EXISTSLINUX IF FILE EXISTLINUX IF FILE EXIST Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneBULMA MODAL
Toggle Bulma modal via Vue.js. To toggle Bulma modal, add the is-active class to the class attribute of the modal to activate the modal. Remove the is-active class will make the modal invisible.. The following is the source code for the above demo: GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and ServeTAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo.DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.THE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
CHECK IF A PROGRAM (COMMAND) EXISTSLINUX IF DIRECTORY EXISTSLINUX IF DIRECTORY EXISTSLINUX IF FILE EXISTLINUX IF FILE EXIST Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneTHE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.TAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo. HTML SELECT ELEMENT EXAMPLE Edit on Github. 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. The following demo shows how to use v-model to get selected option. bounce flash pulse. selected option: bounce. CHECK IF A PROGRAM (COMMAND) EXISTS Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
PURE CSS BULMA ACCORDION (COLLAPSIBLE CONTENT) Actually there is accordion in Bulma extensions, but we are not going to use it.I like to use only standard components provided by Bulma. Here we use Bulma panel component to implement the accordion. The basic technique is the same as Pure CSS Tab Panel.We need: 1 - Visible HTML label elements, which is the title of panels.. 2 - Invisible HTML input radio elements, referenced by the label GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } TOGGLE (PLAY/PAUSE) SOUND ON CLICK EVENT OF When you click on the button element, the sound will be played. If the element is clicked again, the sound will be paused. To toggle sound like this, a HTML5 audio element is embedded in the HTML document, and not displayed on screen. Every time the button element is clicked, the toggleSound function will be executed. The toggleSound function checks if the audio element is paused. DOWNLOAD FILE FROM URL Download and save files (image, pdf, etc.) from given URL in Go. INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneBULMA MODAL
Toggle Bulma modal via Vue.js. To toggle Bulma modal, add the is-active class to the class attribute of the modal to activate the modal. Remove the is-active class will make the modal invisible.. The following is the source code for the above demo: GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and ServeTAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo.DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.THE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
CHECK IF A PROGRAM (COMMAND) EXISTSLINUX IF DIRECTORY EXISTSLINUX IF DIRECTORY EXISTSLINUX IF FILE EXISTLINUX IF FILE EXIST Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } INPUT TEXT ELEMENT CHANGE EVENT Explanation. First we bind the value of input text element to the variable userinput via v-model: . Next, we want to listen to the change event of this input text element. According to Event Handling in Vue.js Guide, I use v-on to listen to the change event of inputevent as follows:
VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneBULMA MODAL
Toggle Bulma modal via Vue.js. To toggle Bulma modal, add the is-active class to the class attribute of the modal to activate the modal. Remove the is-active class will make the modal invisible.. The following is the source code for the above demo: GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) Golang html/template versus Python Jinja2 (1) Updated: March 06, 2015. Edit on Github. This post compares the following two combinations: Python: webapp2 / web.py framework + Jinja2 templating. Go: net/http framework + html/template templating. to show how to serve a "Hello World" webpage. Go html/template versue Python Jinja2 - Load and ServeTAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo.DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.THE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
CHECK IF A PROGRAM (COMMAND) EXISTSLINUX IF DIRECTORY EXISTSLINUX IF DIRECTORY EXISTSLINUX IF FILE EXISTLINUX IF FILE EXIST Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
SET DIFFERENCE OF TWO ARRAYS Find the elements in one array but not in the other, i.e., set difference of two arrays. In mathematical term: A − B = {x ∈ A and x∉B} The idea is to convert the array B to the data structure of key-value pairs, i.e., hash table. The hash table in Go is built-in map type. Then we check if items in array A is in the hash table. GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } VUE.JS COMPONENT FOR TAB PANEL Implementation of reusable Vue.js component for tab panel. The data passed to the component is an array consisting of nav and content of the tabs. we use v-for to create the actual HTML of the tabs in the component.. We use the variable tabsel to indicate current selected tab. When users click on the tab, update tabsel according to the tab index and hence show the selected tab paneTHE COMPLETE BOOK
The Complete Book of Pâëi Chanting PHRA ACHAN DHAMMARATO BHIKKHÛ Call 704-996-6252 Email: Dhammarato@yahoo.com Phra Achan has lived in South East Asia and India since 19 studying and practicing Buddhistmeditation for
DROPDOWN MENU
JavaScript: Set isShowDrop1 to false in the initialization phase to hide the dropdown menu in the beginning. Use position: relative; in parent .dropdown class and position: absolute; in child .dropdown-menu class to align the dropdown menu under the dropdown toogle. Other rules is only for making the dropdown look beautiful.TAB PANEL
Tab panel implementation via Vue.js and CSS. The tab panel here is similar to Bootstrap tab . Click the following tabs to see the demo. The following is the source code for above demo. HTML SELECT ELEMENT EXAMPLE Edit on Github. 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. The following demo shows how to use v-model to get selected option. bounce flash pulse. selected option: bounce. CHECK IF A PROGRAM (COMMAND) EXISTS Check if a program (or command), such as wget or ffmpeg, is available in Go.. This looks like a easy task. I made some Google searches and found you can check if a command exists in shell as follows: $command-v
PURE CSS BULMA ACCORDION (COLLAPSIBLE CONTENT) Actually there is accordion in Bulma extensions, but we are not going to use it.I like to use only standard components provided by Bulma. Here we use Bulma panel component to implement the accordion. The basic technique is the same as Pure CSS Tab Panel.We need: 1 - Visible HTML label elements, which is the title of panels.. 2 - Invisible HTML input radio elements, referenced by the label GET FILENAME WITHOUT EXTENSION February 25, 2018. Edit on Github. Use Go standard library to get file name without extension. path.Ext method to get filename extension. strings.TrimSuffix method to remove the extension from the filename. import ( "path" "strings" ) func FilenameWithoutExtension(fn string) string { return strings.TrimSuffix(fn, path.Ext(fn)) } TOGGLE (PLAY/PAUSE) SOUND ON CLICK EVENT OF When you click on the button element, the sound will be played. If the element is clicked again, the sound will be paused. To toggle sound like this, a HTML5 audio element is embedded in the HTML document, and not displayed on screen. Every time the button element is clicked, the toggleSound function will be executed. The toggleSound function checks if the audio element is paused. DOWNLOAD FILE FROM URL Download and save files (image, pdf, etc.) from given URL in Go. Theory and Practice ≡About Archives
Categories
Tags
Authors
中文
ไทย
×
search
Custom Search
Sort by:
Relevance
Relevance
Date
CHECK IF ENVIRONMENT VARIABLE EXISTJanuary 29, 2020
Check if an environment variable exists using _os.LookupEnv_ in Go.read more »
BUILD OFFLINE COPY OF WEBSITEJanuary 01, 2019
Build an offline copy of a website made by _Pelican_ static sitegenerator.
read more »
REPLACE USING REGULAR EXPRESSION GROUPDecember 01, 2018
Use regular expresion groups to replace texts in Vim.read more »
CREATE TEMPLATE USING FMT.SPRINTFNovember 27, 2018
Create short pieces of templates using _fmt.Sprintf_ in Go.read more »
DISTINCT POWERS - PROBLEM 29 - PROJECT EULEROctober 29, 2018
Go solution to Distinct powers - Problem 29 - Project Euler.read more »
READ TWICE FROM THE SAME IO.READEROctober 28, 2018
Read twice or multiple times from the same _io.Reader_ in _Go_read more »
AUTO-DETECT AND CONVERT ENCODING OF HTML TO UTF-8October 27, 2018
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 »
DETERMINE ENCODING OF HTML DOCUMENTOctober 26, 2018
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 »
REVERSE A STRING
October 25, 2018
Reverse a string using _for_ or _range_ keyword in _Go_.read more »
NUMBER SPIRAL DIAGONALS - PROBLEM 28 - PROJECT EULEROctober 24, 2018
Go solution to Number spiral diagonals - Problem 28 - Project Euler.read more »
NAMES SCORES - PROBLEM 22 - PROJECT EULEROctober 23, 2018
Go solution to Names scores - Problem 22 - Project Euler.read more »
COUNTING SUNDAYS - PROBLEM 19 - PROJECT EULEROctober 22, 2018
Go solution to Counting Sundays - Problem 19 - Project Euler.read more »
PANDIGITAL PRODUCTS - PROBLEM 32 - PROJECT EULEROctober 21, 2018
Go solution to Pandigital products - Problem 32 - Project Euler.read more »
CREATE ERROR USING FMT.ERRORF OR ERRORS.NEWOctober 20, 2018
Create new or custom error using _fmt.Errorf_ or _errors.New_ in Go.read more »
XMLHTTPREQUEST (XHR)October 19, 2018
Go WebAssembly _XMLHttpRequest (XHR)_ - Issue HTTP requests to exchange data between browsers (client) and servers.read more »
PURE CSS FOUNDATION ACCORDION CONTAINEROctober 18, 2018
CSS only toggle _Foundation_ accordion (collapsible content). No _JavaScript_ required.read more »
CREATE URL BASED ON FILE PATHOctober 17, 2018
_Pelican_ static site generator - Create URL of _page_ or _article_ based on the full path relative to the content source directory.read more »
EVENT BINDING - ADDEVENTLISTENER EXAMPLEOctober 16, 2018
Go WebAssembly Event Binding - _addEventListener_ example.read more »
VUE.JS COMPONENT FOR TAB PANELOctober 15, 2018
Implementation of reusable _Vue.js_ component for tab panel.read more »
VUE.JS COMPONENT FOR SEMANTIC UI BASIC TABSOctober 14, 2018
Reusable _Vue.js_ component for _Semantic UI_ basic tabs example.read more »
CONVERT CHINESE CHARACTERS IN STRING TO PINYINOctober 13, 2018
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 PANELOctober 12, 2018
Reusable _Vue.js_ component to extend _Bootstrap_ navigational tabs to create tabbable panes of local content.read more »
CHECK IF THE RUNE IS CHINESE CHARACTEROctober 11, 2018
Given a rune value, check if the rune is a Chinese character.read more »
DOWNLOAD FILE FROM URLOctober 10, 2018
Download and save files (image, pdf, etc.) from given URL in Go.read more »
REPLACE SPACE AND NEWLINE IN STRINGOctober 09, 2018
Use Go _regexp_ package to repace spaces and newline in the string.read more »
GOQUERY HANDLE NON-UTF8 HTML WEB PAGEOctober 09, 2018
Read non-utf8 webpage with goquery if the charset of the page isknown.
read more »
VUE.JS COMPONENT FOR BULMA TABSOctober 08, 2018
Reusable _Vue.js_ component for _Bulma_ tabs, and extend the original Bulma tabs by adding a pane to for each tab.read more »
COIN SUMS - PROBLEM 31 - PROJECT EULEROctober 07, 2018
Go solution to Coin sums - Problem 31 - Project Euler.read more »
LOAD AND RUN GO WEBASSEMBLY MODULEOctober 06, 2018
Show how to load and run Go WebAssembly code.read more »
QUERYSELECTORALL EXAMPLEOctober 05, 2018
Go WebAssembly _querySelectorAll_ example.read more »
QUERYSELECTOR EXAMPLE October 04, 2018 (Updated: October 05, 2018) Go WebAssembly _querySelector_ example.read more »
PURE CSS SEMANTIC UI DROPDOWNOctober 03, 2018
CSS only toggle _Semantic UI_ dropdown. No _JavaScript_ required.read more »
PURE CSS BULMA DROPDOWN TOGGLEOctober 02, 2018
CSS only toggle _Bulma_ collapse. No _JavaScript_ required.read more »
PURE CSS BOOTSTRAP TAB PANELOctober 01, 2018
CSS only toggle _Bootstrap_ tab panel. No _JavaScript_ required.read more »
PURE CSS SEMANTIC UI BASIC TABSSeptember 30, 2018
CSS only _Semantic UI_ basic tab. No _JavaScript_ required.read more »
PURE CSS BOOTSTRAP ACCORDIONSeptember 29, 2018
CSS only toggle _Bootstrap_ accordion (collapsible content). No _JavaScript_ required.read more »
PURE CSS BOOTSTRAP COLLAPSESeptember 28, 2018
CSS only toggle _Bootstrap_ collapse. No _JavaScript_ required.read more »
BULMA MODAL
September 27, 2018
Toggle _Bulma_ modal via _Vue.js_.read more »
BOOTSTRAP MODAL
September 26, 2018
Toggle _Bootstrap_ modal via _Vue.js_.read more »
PURE CSS BOOTSTRAP MODALSeptember 25, 2018
CSS only toggle _Bootstrap_ modal. No _JavaScript_ required.read more »
NAIVE METHOD FOR PRIMALITY TESTSeptember 23, 2018
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 »
READ PLAIN TEXTS IN PDF FILESSeptember 21, 2018
Extract plain text from PDF via _github.com/ledongthuc/pdf_ package.read more »
FIRST WASM PROGRAM - HELLO WORLD July 30, 2018 (Updated: October 04, 2018) First try of Go WebAssembly - Say _Hello World_ via _alert_ method.read more »
CONVERT INTEGER TO STRING VIA FMT.SPRINTFMay 28, 2018
Convert _int_ or _int64_ to _string_ in Go via _fmt.Sprintf_.read more »
FONT SIZE LARGER OR SMALLERMay 18, 2018
Increase or decrease font size with buttons via Vue.js.read more »
ANONYMOUS FUNCTION IN DEFER STATEMENTMay 17, 2018
Use anonymous function in Go _defer_ statement.read more »
USE DEFER TO WAIT FOR GOROUTINES TO FINISHMay 16, 2018
Use Go _defer_ statement to elegantly wait for all goroutines tofinish.
read more »
PASS COMMAND-LINE ARGUMENTS TO MAKEFILE AND GO PROGRAMMay 15, 2018
Pass command-line arguments to _make_ and then pass then arguments to Go program in Makefile.read more »
ONLINE CALCUALTE POLITENESS OF NUMBERMay 14, 2018
Calculate politeness of a number online, i.e., the number of ways it can be expressed as the sum of consecutive integers.read more »
JSON UNMARSHAL WHEN FIELD NAME IS DETERMINED AT RUNTIMEMay 13, 2018
Unmarshal JSON data in which the field name is determined at runtimein Go.
read more »
CALCUALTE POLITENESS OF NUMBER IN GOLANGMay 12, 2018
Calculate politeness of a number in Go, i.e., the number of ways it can be expressed as the sum of consecutive integersread more »
UBUNTU LINUX 18.04 RUN OUT OF DISK SPACEMay 11, 2018
Upgrade from Ubuntu Linux 17.10 to 18.04 and disk space runs out quickly. And how I fix this issue.read more »
DELETE ZERO SIZE FILES IN DIRECTORYMay 10, 2018
Delete all files with zero size in a directory in Go. Sub-directoriesincluded.
read more »
GET ALL STORY HIGHLIGHTS OF SPECIFIC INSTAGRAM USERMay 09, 2018
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 DIVISORSMay 08, 2018
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.JSMay 07, 2018
Run data change watchers with option via Go/GopherJS/gopherjs-vue.read more »
DIGIT FIFTH POWERS - PROBLEM 30 - PROJECT EULERMay 06, 2018
Go solution to Digit fifth powers - Problem 30 - Project Euler.read more »
ONLINE PRIME FACTORIZATIONMay 05, 2018
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.JSMay 04, 2018
Watch and react to data changes via Go/GopherJS/gopherjs-vue.read more »
EMBED READ-ONLY FILES IN GO CODEMay 03, 2018
Embed read-only files in Go code.read more »
ONLINE SIEVE OF ERATOSTHENES DEMOMay 02, 2018
_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.JSMay 01, 2018
Online demo of _sieve of eratosthenes_ via Go/GopherJS/gopherjs-vue.read more »
ONLINE EULER'S TOTIENT FUNCTION DEMOApril 30, 2018
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 »
ONLINE GOLDBACH'S CONJECTURE DEMOApril 29, 2018
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 »
SIEVE OF ERATOSTHENESApril 28, 2018
JavaScript implementation of _Sieve of Eratosthenes_.read more »
SOLUTION TO PROJECT EULER April 28, 2018 (Updated: October 29, 2018) Go solution to Project Euler.read more »
QUADRATIC PRIMES - PROBLEM 27 - PROJECT EULERApril 27, 2018
Go solution to Quadratic primes - Problem 27 - Project Euler.read more »
CHECK IF A LARGE NUMBER IS DIVISIBLE BY 3 OR NOTApril 26, 2018
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 GOApril 25, 2018
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 GOApril 24, 2018
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 »
CHECK IF VALUE OF INPUT TEXT FIELD IS INTEGERApril 23, 2018
check HTML text input field to see if the value is integer.read more »
ONLINE LEMOINE’S CONJECTURE DEMOApril 22, 2018
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 CONJECTUREApril 21, 2018
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
April 20, 2018
Test if a number (at least 2-digit) is Lychrel number or not under limited iterations in Go.read more »
SEND EMAIL USING GMAILApril 19, 2018
Programatically send mails using Gmail.read more »
FIND LAST MODIFIED FILE WITH SPECIFIC NAME PREFIXApril 18, 2018
Get last modified file, name of which starts with specific prefix, inGo.
read more »
GENERATE FAIR RESULTS FROM A BIASED COINApril 17, 2018
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 biasedcoin.
read more »
GENERATE ANY ONE OF GIVEN NUMBERS ACCORDING TO GIVEN PROBABILITIESApril 16, 2018
Given N numbers, generate any one of the given numbers according to given probabilities.read more »
GET COOKIES TO ACCESS INSTAGRAM APIApril 15, 2018
Chrome extension to get cookies to access Instagram API.read more »
REMOVE DUPLICATES FROM SLICE OR ARRAYApril 14, 2018
Remove duplicates from slice or array in Go.read more »
GET INSTAGRAM USER INFORMATION FROM HTML SOURCEApril 13, 2018
Chrome extension to help you get user information on user profile page. Also show id and invisible link to profile picture on theprofile page.
read more »
GET INSTAGRAM USER INFORMATION FROM HTML SOURCEApril 12, 2018
Given user name, get Instagram user information, such as id, username, biography, etc., in Go.read more »
FIND OLDEST MODIFIED FILE IN DIRECTORYApril 11, 2018
Find oldest modified file in the directory, excluding sub-directories,in Go.
read more »
SORT WORDS ALPHABETICALLYApril 10, 2018
Sort a list of words alphabetically in Go.read more »
WRITE LINES TO FILE
April 09, 2018
Write a list of strings to file in Go programming language.read more »
COMPARE THE SIZE OF TWO FILESApril 08, 2018
Compare if the size of two files is the same in Go.read more »
FIND FILES AFTER GIVEN TIMEApril 07, 2018
Find files after a given timestamp in Go.read more »
FIND LAST MODIFIED FILE BEFORE SPECIFIC TIMEApril 06, 2018
Get last modified file before a specific time in Go.read more »
GET LAST SYSTEM BOOT TIMEApril 05, 2018
Get last Ubuntu Linux system boot/restart time in Go.read more »
TERMINAL CURRENT DIRECTORY ITEM LIST VIA TERMUIApril 04, 2018
Terminal UI - List items in directory via Go termui package.read more »
SPLIT CONTENTS OF A DIRECTORY INTO MULTIPLE SUB DIRECTORIESApril 03, 2018
Split a folder with many files into multiple sub-folders in Go.read more »
MAKE SLICE EMPTY
April 02, 2018
Make slice empty in Go programming language.read more »
UPLOADED NAME OF PHOTOS/VIDEOS OF GPHOTOSUPLOADERApril 01, 2018
The uploaded name of photos/video of gphotosuploader includes full file path. Remove the directory path and leave only file name.read more »
LIST DIRECTORY SIZE IN ASCENDING ORDER (EXCLUDINGSUB-DIRECTORIES)
March 31, 2018
List folder size in ascending orfer, excluding sub-folders, in Go.read more »
COMMUNICATION BETWEEN CHROME EXTENSION AND LOCAL APPLICATIONMarch 30, 2018
Use local web server to achieve communication between Chrome extensionand local program.
read more »
GET AUTH.JSON OF GPHOTOSUPLOADERMarch 29, 2018
Chrome extension to get auth.json (cookies of Google Photos and Google account id) of gphotosuploader.read more »
GET GOOGLE ACCOUNT ID FROM GOOGLE PHOTOSMarch 28, 2018
Chrome extension to get Google account id from Google Photos.read more »
GET AUTHENTICATION COOKIES OF GPHOTOSUPLOADERMarch 27, 2018
Chrome extension to get cookies of _gphotosuploader_.read more »
MOVE FILE TO ANOTHER DIRECTORYMarch 26, 2018
Move file to another folder via Go _os.Rename_ method.read more »
FIND FILES OLDER THAN ONE DAYMarch 25, 2018
Find files modified more than one day via Go standard _time_ package.read more »
CALCULATE DIRECTORY SIZE EXCLUDING SUB-DIRECTORIESMarch 24, 2018
Calcualte total size of files in folder, excluding sub-folders in Go.read more »
LIST GO SOURCE FILES EXCLUDING TEST FILESMarch 23, 2018
List _.go_ source files excluding __test.go_ files via _find_ and _grep_ command in _bash_.read more »
LIST DIRECTORY SIZE IN DESCENDING AND ASCENDING ORDERMarch 22, 2018
List folder size in descending and ascending order via _du_ and _sort_command in _bash_.
read more »
SET DIFFERENCE OF TWO ARRAYSMarch 21, 2018
Find set differecne of two arrays, i.e., the elements in one array but not in the other, in Python.read more »
UNION OF TWO ARRAYS
March 20, 2018
Find the set of all elements (union) in two arrays in Python.read more »
DOWNLOAD INSTAGRAM PROFILE PICTURE IN FULL SIZE March 19, 2018 (Updated: March 23, 2018) This Chrome extension helps you download Instagram profile picture infull size.
read more »
GET INSTAGRAM PROFILE PICTURE IN FULL SIZE March 18, 2018 (Updated: March 23, 2018) Given the url of Instagram profile picture, return the url of profile picture in full size.read more »
INTERSECTION OF TWO ARRAYSMarch 17, 2018
Find common elements (matches, intersection) of two arrays in Python.read more »
CHECK IF A PROGRAM (COMMAND) EXISTSMarch 16, 2018
Check if a program (or command), such as _wget_ or _ffmpeg_, isavailable in Go.
read more »
SET DIFFERENCE OF TWO ARRAYSMarch 15, 2018
Find set differecne of two arrays, i.e., the elements in one array but not in the other, in JavaScript.read more »
SET DIFFERENCE OF TWO ARRAYSMarch 14, 2018
Find set differecne of two arrays, i.e., the elements in one array but not in the other, in Go.read more »
UNION OF TWO ARRAYS
March 13, 2018
Find the set of all elements (union) in two arrays in JavaScript.read more »
INTERSECTION OF TWO ARRAYSMarch 12, 2018
Find common elements (matches, intersection) of two arrays inJavaScript.
read more »
PROGRESSIVE WEB APP (PWA) FOR MY STATIC WEBSITEMarch 11, 2018
Make my static website become like a mobile app via Progressive WebApp (PWA).
read more »
UNION OF TWO ARRAYS
March 10, 2018
Find the set of all elements in two arrays in Go programming language.read more »
INTERSECTION OF TWO ARRAYSMarch 09, 2018
Find common elements (matches, intersection) of two arrays in Go programming language.read more »
VIRTUAL KEYBOARD VIA GO AND VUE.JSMarch 08, 2018
Virtual kayboard/keypad via Go/GopherJS/gopherjs-vue.read more »
MERGE INSTAGRAM POST LIVE VIDEO AND AUDIO IN FFMPEGMarch 07, 2018
Use ffmpeg to merge Instagram video and audio of live replay shared tostories.
read more »
GET HTTP RESPONSE HEADERMarch 06, 2018
Print HTTP response header via Go standard _net/http_ package.read more »
PARSE DASH MANIFEST IN INSTAGRAM POST LIVE STORYMarch 05, 2018
Get urls of video and audio of Instagram user post live videos shared to stories via Go standard _regexp_ package.read more »
RUN WGET VIA SHELL COMMANDMarch 04, 2018
Use Go standard _os/exec_ package to run wget via shell command.read more »
HTTP REQUEST WITH COOKIESMarch 03, 2018
Send HTTP request with cookies via Go standard _net/http_ package.read more »
LEXICOGRAPHIC PERMUTATIONS - PROBLEM 24 - PROJECT EULERMarch 02, 2018
Go solution to Lexicographic permutations - Problem 24 - ProjectEuler.
read more »
DISABLE TEST CACHE
March 01, 2018
Disable caching in Go test.read more »
NOT BEING LOGGED IN IN INCOGNITO MODEFebruary 28, 2018
Use "_incognito_" manifest key "_split_" in Chrome Extension to leavelogged in status.
read more »
HTTP REQUEST WITH CUSTOM USER-AGENTFebruary 27, 2018
HTTP request with custom _User-Agent_ header via Go standard_net/http_ package.
read more »
SHOW INSTAGRAM MUTUAL FOLLOWERS ON USER WEB PROFILEFebruary 26, 2018
A Chrome extension to help you show Instagram mutual followers on userprofile page.
read more »
GET FILENAME WITHOUT EXTENSIONFebruary 25, 2018
Get file name without extension in Go programming language.read more »
SAVE FILE IN QR CODEFebruary 24, 2018
Embed file in QR code via Go programming language.read more »
JAVASCRIPT WAIT PAGE TO BE LOADEDFebruary 23, 2018
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 »
SHOW INSTAGRAM ID ON USER PAGE February 22, 2018 (Updated: April 13, 2018) A Chrome extension to help you show Instagram id on the user page.read more »
TRY TO PRINT FACEBOOK ID NEXT TO USER NAMEFebruary 21, 2018
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 EXTENSIONFebruary 20, 2018
A Chrome extension to help you try to get Facebook user id by URLchange.
read more »
GET FACEBOOK STORIES IMAGE URL VIA CHROME EXTENSIONFebruary 19, 2018
A naive Chrome extension to help you get URL of images of FacebookStories.
read more »
TRICK TO GET INSTAGRAM LIVE VIDEO REPLAYFebruary 18, 2018
Trick to get Instagram post live video items.read more »
DISCOVER INSTAGRAM TOP LIVEFebruary 17, 2018
Access Instagram API to discover Top lives in Go programming language. Use only Go standard library and no third-party packages needed.read more »
INSTAGRAM TOPSEARCH CLIENTFebruary 16, 2018
Instagram web top search client in Go programming language. Use only Go standard library and no third-party packages needed.read more »
SORT FILES BY SIZE
February 15, 2018
Sort files by size in Go. Use _sort.Slice_ on the slice of _os.FileInfo_ returned by _ioutil.ReadDir_.read more »
GET PHOTOS AND VIDEOS IN INSTAGRAM POSTFebruary 14, 2018
Get URL of photos and videos in Instagram post via Go programming language. Use only Go standard library and no third-party packagesneeded.
read more »
GET URL OF ALL POSTS OF INSTAGRAM USER February 13, 2018 (Updated: May 09, 2018) Get URL of all posts of a specific Instagram user via Go programming language. Use only Go standard library and no third-party packagesneeded.
read more »
GET INSTAGRAM FOLLOWING AND FOLLOWERSFebruary 12, 2018
Get Instagram following and followers of a specific user via Go programming language. Use only Go standard library and no third-partypackages needed.
read more »
JAVASCRIPT FOR BULMA MODALFebruary 11, 2018
JavaScript code for Bulma _modal_ component. The code is extracted from Bulma official website.read more »
BULMA MODAL WITH GO TOGGLEFebruary 10, 2018
Go toggle code for Bulma _modal_ component.read more »
GET INSTAGRAM HIGHLIGHT STORIES OF SPECIFIC USER February 09, 2018 (Updated: May 09, 2018) Get links of Instagram highlight stories of a specific user via Go programming language. Use only Go standard library and no third-partypackages needed.
read more »
GET INSTAGRAM STORIES OF SPECIFIC USERFebruary 08, 2018
Get links of Instagram stories of a specific user via Go programming language. Use only Go standard library and no third-party packagesneeded.
read more »
PURE CSS SEMANTIC UI STANDARD ACCORDIONFebruary 07, 2018
CSS only _Semantic UI_ standard accordion. No _JavaScript_ required.read more »
PASS REFERENCE TO GOROUTINE WHILE RANGE SLICEFebruary 06, 2018
Caveat: Passing reference/pointer to goroutine function while rangeslice in Go.
read more »
GET LIST OF INSTAGRAM STORIESFebruary 05, 2018
Get the list of following Instagram stories via Go programming language. Use only Go standard library and no third-party packagesneeded.
read more »
GET INSTAGRAM USER ID February 04, 2018 (Updated: May 09, 2018) 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()February 03, 2018
GO _strings.Index_ is equivalent to JAVASCRIPT _String.prototype.indexOf()_read more »
GET CURRENT TAB URL FROM CHROME EXTENSION IN GOFebruary 02, 2018
Get the URL of the current tab from Chrome extension, written in Go.read more »
BULMA DROPDOWN WITH GO TOGGLEFebruary 01, 2018
Go toggle code for Bulma _dropdown_ component.read more »
GET DOMAIN NAME FROM URLJanuary 31, 2018
Get domain name from URL via Go standard _net/url_ package.read more »
PURE CSS SEMANTIC UI MODALJanuary 31, 2018
CSS only toggle _Semantic UI_ modal. No _JavaScript_ required.read more »
PURE CSS BULMA TABS
January 30, 2018
CSS only _Bulma_ tab panel implementation.read more »
PURE CSS BULMA ACCORDION (COLLAPSIBLE CONTENT)January 29, 2018
CSS only Bulma accordion (collapsible content) implementation.read more »
BULMA ACCORDION (COLLAPSIBLE CONTENT)January 28, 2018
Bulma accordion (collapsible content) implementation via Vue.js.read more »
BULMA MODAL WITH PURE CSS TOGGLEJanuary 27, 2018
CSS only toggle _Bulma_ modal. No _JavaScript_ required.read more »
BULMA TABS
January 26, 2018 (Updated: October 08, 2018) Add more features to _Bulma_ tabs via _Vue.js_.read more »
EQUAL HEIGHT COMPONENTS IN BULMA COLUMNSJanuary 25, 2018
Make Bulma components (message, card, etc.) to be of equal height incolumns.
read more »
CALCULATE STRING LENGTHJanuary 24, 2018
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.JSJanuary 23, 2018
Show keyCode of pressed key of focused HTML _input_ element via Go/GopherJS/gopherjs-vue.read more »
NON-ABUNDANT SUMS - PROBLEM 23 - PROJECT EULERJanuary 22, 2018
Go solution to Non-abundant sums - Problem 23 - Project Euler.read more »
TOGGLE (SHOW/HIDE) HTML ELEMENT VIA GO AND VUE.JSJanuary 21, 2018
Toggle (Show/Hide) HTML DOM element via Go/GopherJS/gopherjs-vue.read more »
WEB SCRAPE BLOGGER POST VIA GOQUERY January 20, 2018 (Updated: January 29, 2018) Fetch a public post on _Blogger_ and extract data via _goquery_.read more »
JAVASCRIPT FOR BULMA DROPDOWN January 19, 2018 (Updated: October 02, 2018) JavaScript code for Bulma dropdown menu. The code is extracted from Bulma official website.read more »
BULMA NAVBAR WITH GO TOGGLEJanuary 18, 2018
Go toggle code for Bulma responsive navbar, dropdown menu included.read more »
DESCARTES' RULES OF SIGNSJanuary 16, 2018
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 NAVBARJanuary 17, 2018
JavaScript code for Bulma responsive navbar, dropdown menu included. The code is extracted from Bulma official website.read more »
REMOVE HTML INLINE STYLEJanuary 16, 2018
Remove HTML inline style, i.e., remove _style_ attribute from HTML node via Go _net/html_ package.read more »
TOOLTIP WITH CLOSE DELAYJanuary 15, 2018
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 GOJanuary 14, 2018
Convert specific texts to clickable links ( tag) in HTML documentvia Go/GopherJS.
read more »
NUMBER LETTER COUNTS - PROBLEM 17 - PROJECT EULERJanuary 13, 2018
Go solution to Number letter counts - Problem 17 - Project Euler.read more »
CONVERT TEXT TO LINK IN HTMLJanuary 12, 2018
Convert specific texts to clickable links ( tag) in HTML documentvia JavaScript.
read more »
APPEND TEXT AT THE BEGINNING OF EACH LINEJanuary 11, 2018
Append text at the beginning of each line via JavaScript.read more »
CONVERT NUMBERS TO WORDS FROM 1 TO 1000 January 10, 2018 (Updated: January 13, 2018) Spell numbers from 1 to 1000 in English via Go programming language.read more »
TOOLTIP WITH CLOSE DELAY IN GOJanuary 09, 2018
Show tooltip when the cursor hovers over the text, and close the tooltip with delay if the cursor is not in the tooltip viaGo/GopherJS.
read more »
TOOLTIP WITH CLOSE DELAYJanuary 08, 2018
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
January 07, 2018
Simple tooltip implementation via Go/GopherJS.read more »
TOOLTIP
January 06, 2018
Simple tooltip implementation via JavaScript.read more »
HELLY'S THEOREM
January 04, 2018
This is the last of a small series of similar and basic results inconvex geometry.
read more »
ELEMENT POSITION (SCROLL INCLUDED) IN GOJanuary 05, 2018
Get HTML DOM element position (including scroll position of the document) in Go/GopherJS.read more »
SHOW NOTE ON MOUSE HOVERING OVER TEXT January 04, 2018 (Updated: January 05, 2018) Show annotatoin (note) on mouse hovering over text. Used to help users read ancient Buddhist texts.read more »
1000-DIGIT FIBONACCI NUMBER - PROBLEM 25 - PROJECT EULERJanuary 03, 2018
Go solution to 1000-digit Fibonacci number - Problem 25 - ProjectEuler.
read more »
FACTORIAL DIGIT SUM - PROBLEM 20 - PROJECT EULERJanuary 02, 2018
Go solution to Factorial digit sum - Problem 20 - Project Euler.read more »
SHOW CSS LOADER WHILE RESOURCE LOADING IN GOJanuary 01, 2018
Show CSS loading spinner while resources of the website are loading inGo/GopherJS.
read more »
LARGE POSITIVE INTEGER MULTIPLICATIONDecember 31, 2017
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 GODecember 30, 2017
Check for _undefined_ in Go/GopherJS.read more »
POWER DIGIT SUM - PROBLEM 16 - PROJECT EULERDecember 29, 2017
Go solution to Power digit sum - Problem 16 - Project Euler.read more »
JAVASCRIPT NULL CHECK IN GODecember 28, 2017
Test if a JavaScript variable is null in Go/GopherJS.read more »
PURE CSS TOGGLE (CHANGE) COLOR OF HTML ELEMENTDecember 27, 2017
CSS only toggle the color ofHTML DOM element
. No JavaScript
required.
read more »
DETECT BROWSER LANGUAGE PREFERENCE IN GODecember 26, 2017
Know which language(s) users prefer on browsers in Go/GopherJS.read more »
LATTICE PATHS - PROBLEM 15 - PROJECT EULERDecember 25, 2017
Go solution to Lattice paths - Problem 15 - Project Euler.read more »
LARGE SUM - PROBLEM 13 - PROJECT EULERDecember 24, 2017
Go solution to Large sum - Problem 13 - Project Euler.read more »
LARGE POSITIVE INTEGER ADDITION December 23, 2017 (Updated: January 03, 2018) 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 THEOREMDecember 22, 2017
Previous I used Caratheodory's theorem to prove Radon's theorem, now I'm going to prove the former.read more »
LARGEST PRODUCT IN A GRID - PROBLEM 11 - PROJECT EULER December 22, 2017 (Updated: December 23, 2017) Go solution to Largest product in a grid - Problem 11 - Project Euler.read more »
RADON'S THEOREM
December 21, 2017
I came across Radon's theorem the other day, and found this proof. It must have been discovered before.read more »
SETTIMEOUT METHOD IN GODecember 21, 2017
Execute a function after waiting a specific length of time inGo/GopherJS.
read more »
HTML ELEMENT CLASSLIST PROPERTY IN GODecember 20, 2017
Manipulate the _class_ attribute of a HTML element via _classList_ property in Go/GopherJS.read more »
CONVERT GRID STRING TO TWO DIMENSIONAL SLICEDecember 19, 2017
Given a string of 20x20 grid, convert the string to two dimensionalslice in Go.
read more »
HTML ELEMENT STYLE PROPERTY IN GODecember 18, 2017
Set/Get inline style of a HTML element via _style_ property inGo/GopherJS.
read more »
EVEN FIBONACCI NUMBERS - PROBLEM 2 - PROJECT EULERDecember 17, 2017
Go solution to Even Fibonacci numbers - Problem 2 - Project Euler.read more »
MULTIPLES OF 3 AND 5 - PROBLEM 1 - PROJECT EULERDecember 16, 2017
Go solution to Multiples of 3 and 5 - Problem 1 - Project Euler.read more »
HTML DATA-* ATTRIBUTE IN GODecember 15, 2017
Access HTML data-* attributes of elements in Go/GopherJS.read more »
XMLHTTPREQUEST (XHR) IN GODecember 14, 2017
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 GODecember 13, 2017
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 GODecember 12, 2017
Detect user keypress on browsers in Go/GopherJS.read more »
EVENT BINDING - ADDEVENTLISTENER IN GODecember 11, 2017
Event binding in Go/GopherJS - Register an event handler to the specified DOM element via _addEventListener_ method.read more »
INNERHTML AND TEXTCONTENT IN GODecember 10, 2017
Change the content of DOM element - Set and get _innerHTML_ and _textContent_ in Go/GopherJS.read more »
QUERYSELECTOR, QUERYSELECTORALL, GETELEMENTBYID IN GODecember 09, 2017
Show how to use _querySelector_, _querySelectorAll_, _getElementById_in Go/GopherJS.
read more »
JAVASCRIPT NEW KEYWORD IN GO December 08, 2017 (Updated: December 09, 2017) Show how to use JavaScript _new_ keyword in Go/GopherJS.read more »
SYNONYMS - GO AND JAVASCRIPT December 07, 2017 (Updated: December 30, 2017) Synonyms - Go /GopherJS idioms and snippets translated toJavaScript
read more »
KEYBOARD EVENT (ARROW KEY EXAMPLE)December 06, 2017
Detect arrow keys pressed by users via Vue.js.read more »
FIRST FRONTEND GO PROGRAM - HELLO WORLD IN BROWSERDecember 05, 2017
The first frontend program in Go - Show _Hello World_ in your browser.read more »
FRONTEND PROGRAMMING IN GO December 04, 2017 (Updated: October 19, 2018) 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 SETTINGSNovember 03, 2017
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)October 12, 2017
This is not hard but still interesting. A spread of an array of numbers is the difference between its maximum and minimum. Given anarray...
read more »
FINDING THE MAXIMUM RECTANGLE UNDER A HISTOGRAMSeptember 28, 2017
I heard this is classic, but turns out not too hard.read more »
FIND PIVOT FROM A STREAMSeptember 22, 2017
This is also an interesting result, although it's quite simple.read more »
FINDING SINGLETONS
September 18, 2017
For (iin{1,2,3}), there are (2n+i) integers consisting of (n+i) uniqueones.
read more »
ONLINE NUMBER PARTITIONINGSeptember 18, 2017
A simple yet surprisingly interesting result.read more »
BALANCING NUMBERS
September 07, 2017
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
September 06, 2017
Given a sequence of (n) integers (a_1,ldots,a_n), we map it to ...read more »
NO CROSSING!
September 05, 2017
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 »
CALCULATE NUMBER OF DIVISORSJune 15, 2017
Given a natural number (integer), calculate the number of divisors of it in Go programming language.read more »
HIGHLY DIVISIBLE TRIANGULAR NUMBER - PROBLEM 12 - PROJECTEULER
June 14, 2017
Go solution to highly divisible triangular number - Problem 12 -Project Euler.
read more »
CHECK IF RUN ON TRAVIS CIJune 13, 2017
Check if Makefile runs on Travis CI or not.read more »
LARGEST PRODUCT IN A SERIES - PROBLEM 8 - PROJECT EULERJune 12, 2017
Go solution to largest product in a series - Problem 8 - ProjectEuler.
read more »
SUM SQUARE DIFFERENCE - PROBLEM 6 - PROJECT EULERJune 11, 2017
Go solution to sum square difference - Problem 6 - Project Euler.read more »
LONGEST COLLATZ SEQUENCE - PROBLEM 14 - PROJECT EULERJune 10, 2017
Go solution to longest Collatz sequence - Problem 14 - Project Euler.read more »
SUMMATION OF PRIMES - PROBLEM 10 - PROJECT EULERJune 09, 2017
Go solution to summation of primes - Problem 10 - Project Euler.read more »
10001ST PRIME - PROBLEM 7 - PROJECT EULERJune 08, 2017
Go solution to 10001st prime - Problem 7 - Project Euler.read more »
CHECK IF ITEM IN SLICE OR ARRAYJune 07, 2017
Check if an item is in slice or array in Go programming language.read more »
GOLDBACH'S CONJECTUREJune 06, 2017
_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 »
CHECK IF A STRING EXISTS IN FILEJune 05, 2017
Check if a string exists in file via Go regexp package.read more »
EULER'S TOTIENT FUNCTIONJune 04, 2017
Euler's totient function implementation in Go programming language.read more »
CALCULATE LEAST COMMON MULTIPLE (LCM) BY GCDJune 03, 2017
Find least common multiple (LCM) by greatest common divisor (GCD) via Go programming language.read more »
SMALLEST MULTIPLE - PROBLEM 5 - PROJECT EULERJune 02, 2017
Go solution to smallest multiple - Problem 9 - Project Euler.read more »
SPECIAL PYTHAGOREAN TRIPLET - PROBLEM 9 - PROJECT EULERJune 01, 2017
Go solution to special Pythagorean triplet - Problem 9 - ProjectEuler.
read more »
VISIT ALL SIBLING ELEMENTS OR NODESMay 31, 2017
DOM manipulation - traverse all sibling elements or nodes via Dart.read more »
VISIT ALL SIBLING ELEMENTS OR NODESMay 30, 2017
DOM manipulation - traverse all sibling elements or nodes viaJavaScript.
read more »
TAB PANEL
May 29, 2017
Tab panel implementation via Dart and CSS.read more »
TAB PANEL
May 28, 2017
Tab panel implementation via JavaScript and CSS.read more »
ACCORDION (COLLAPSIBLE CONTENT)May 27, 2017
Accordion (collapsible content) implementation via Dart.read more »
MODAL (POPUP)
May 26, 2017
Modal (Popup) implementation via Dart and CSS. Modal is dialog box/popup window that is displayed on top of the current page.read more »
AMICABLE NUMBERS - PROBLEM 21 - PROJECT EULERMay 25, 2017
Go solution to amicable numbers - Problem 21 - Project Euler.read more »
ACCORDION (COLLAPSIBLE CONTENT)May 24, 2017
Accordion (collapsible content) implementation via JavaScript.read more »
PURE CSS ACCORDION (COLLAPSIBLE CONTENT)May 23, 2017
CSS only accordion (collapsible content) implementation.read more »
ACCORDION (COLLAPSIBLE CONTENT)May 22, 2017
Accordion (collapsible content) implementation via Vue.js.read more »
MAXIMUM NUMBER OF PAIRWISE NON-ACUTE VECTORS IN R^NMay 21, 2017
It is said to be well-known, but perhaps I've never seen it before:read more »
PURE CSS TAB PANEL
May 21, 2017
CSS only tab panel implementation.read more »
2017 APMO PROBLEM 3
May 20, 2017
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
May 20, 2017
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 »
INTEGER EXPONENTIATIONMay 20, 2017
Integer exponentiation in Go programming language.read more »
SUM OF THE PROPER DIVISORS (FACTORS)May 19, 2017
Calculate the sum of all proper divisors (factors) of an integer number in Go programming language.read more »
WEBSOCKET CLIENT EXAMPLE WITH ECHO SERVERMay 18, 2017
Simple example of a WebSocket client via GopherJS. Connect and send a message to the WebSocket server that echos everything from clients.read more »
LARGEST PRIME FACTOR - PROBLEM 3 - PROJECT EULERMay 17, 2017
Go solution to largest prime factor of 600851475143 - Problem 3 -Project Euler.
read more »
TAB PANEL
May 16, 2017
Tab panel implementation via Vue.js and CSS.read more »
DROPDOWN MENU
May 15, 2017
Dropdown menu implementation via Vue.js and CSS.read more »
GREATEST COMMON DIVISOR VIA EUCLIDEAN ALGORITHMMay 14, 2017
Compute the greatest common divisor (GCD) via Euclidean algorithm in Go programming language.read more »
MODAL (POPUP)
May 13, 2017
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)May 12, 2017
CSS only modal (popup). No JavaScript required. Modal is dialog box/popup window that is displayed on top of the current page.read more »
MODAL (POPUP)
May 11, 2017
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 »
RULES FOR LINTERS OF GOLANG SOURCE CODEMay 10, 2017
Example of Makefile rules for Go linters.read more »
GET ALL PRIME FACTORS OF INTEGER NUMBERMay 09, 2017
_Prime Factorization_ - Find all prime factors of a given integer number in Go programming language.read more »
ANAGRAM CHECK BY CHARACTERS COUNTMay 08, 2017
Check whether two strings are anagram of each other by characters count in Go programming language.read more »
SORT STRING BY CHARACTERMay 07, 2017
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 »
CHECK WHETHER TWO STRINGS ARE ANAGRAM OF EACH OTHERMay 06, 2017
Check whether two strings are anagram of each other by sorting in Go programming language.read more »
FIRST LETTER OF CHINESE CHARACTER PINYINMay 05, 2017
My answer to How can I get Chinese first letter(Pinyin) by using Go language? - Stack Overflowread more »
LONGEST COMMON SUBSEQUENCE LENGTH VIA RECURSIONMay 04, 2017
Compute the length of longest common subsequence via recursion in Go.read more »
LOGIN FACEBOOK AND TAKE SCREENSHOT PROGRAMMATICALLYMay 03, 2017
Web scraping JavaScript rendered webpages by Chrome Debugging Protocol . Write Go code to programmatically login Facebook and then takescreenshot.
read more »
FIND ALL VISIBLE TEXTS ON WEB PAGEMay 02, 2017
Traverse DOM tree to grab visible texts on webpage via JavaScript.read more »
TRAVERSE DOM TREE
May 01, 2017
Traverse DOM tree to find out all text nodes via JavaScript.read more »
CHROME EXTENSION FOR CHINESE CONVERSIONApril 30, 2017
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 »
ATOI FOR DECIMAL INTEGERApril 29, 2017
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 TESTApril 28, 2017
Pass command line arguments (flags) in Go test.read more »
HTML SELECT ELEMENT EXAMPLEApril 27, 2017
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 »
EMBED FILE IN STRING LITERALApril 26, 2017
Embed any type of file in string literal in Go code.read more »
2009 USAMO PROBLEM 3April 25, 2017
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 »
FILENAME GLOBBING SUMMARYApril 25, 2017
Test how filename globbing works in Go standard library.read more »
LARGEST PALINDROME PRODUCT - PROBLEM 4 - PROJECT EULERApril 24, 2017
Go solution to largest palindrome made from the product of two 3-digit numbers. - Problem 4 - Project Euler.read more »
RESPONSIVE CENTER ALIGN IMAGEApril 23, 2017
CSS rule for HTML _img_ element to be both responsive and centered.read more »
TEST TEXT-TO-SPEECH IN WEB SPEECH APIApril 22, 2017
Test Text-to-Speech feature in Web Speech API. Not working in Chromium 57, but OK in Firefox 53.read more »
USAMO 2017 PROBLEM 2April 20, 2017
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 3April 20, 2017
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 4April 20, 2017
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 BARApril 21, 2017
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 FLEXBOXApril 20, 2017
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 »
PRIMALITY TEST - OPTIMIZED SCHOOL METHODApril 19, 2017
Go implementation of primality test - optimized school method.read more »
DRAW GRID OF DOTS USING CANVASApril 18, 2017
Exercise to draw 3x3 grid of dots via _Canvas_.read more »
SIEVE OF ERATOSTHENESApril 17, 2017
Go implementation of _Sieve of Eratosthenes_.read more »
CSS INVERT (TRANSPOSE) ROWS AND COLUMNS OF HTML TABLEApril 16, 2017
Pure CSS solution for inverting (transposing) rows and columns of a HTML Table, and provide an option to toggle (original/inverted) theHTML table as well.
read more »
CHECK IF INTEGER IS PALINDROMIC NUMBERApril 15, 2017
Check if an integer number is palindrome in Go programming language.read more »
TYPE CONVERSION BETWEEN STRING AND INTEGERApril 14, 2017
Go type conversion (type casting) between string and integer number.read more »
TYPE CONVERSION BETWEEN STRING AND FLOATING NUMBERApril 13, 2017
Go type conversion (type casting) between string and floating number.read more »
GET HTML ELEMENT ATTRIBUTE VIA REGULAR EXPRESSIONApril 12, 2017
Get the attribute of a HTML element via _named group matches_ in Go_regexp_ package.
read more »
WILDCARD PATTERN MATCHINGApril 11, 2017
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 »
SELECT FIRST ROW OF TABLEApril 10, 2017
Select and style the first row (or n-th row) of table via CSS _:nth-of-type()_ selectorread more »
SELECT FIRST COLUMN OF TABLE April 09, 2017 (Updated: April 10, 2017) Select and style the first column (or n-th column) of table via CSS _:nth-of-type()_ selectorread more »
EMBED DATA IN FRONT-END GO CODEApril 08, 2017
Embed data/assets/resources/binary in Go code, and compiled by GopherJS to a single JavaScript file which runs on the front-endbrowser.
read more »
RESPONSIVE HTML TABLE USING DIV AND BULMAApril 07, 2017
Make a responsive HTML table using _div_ element and _Bulma_ CSSframework.
read more »
BK-TREE DATA STRUCTURE IMPLEMENTATIONApril 06, 2017
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 stringinto the other.
read more »
WAGNER-FISCHER ALGORITHM FOR EDIT DISTANCE OF TWO STRINGSApril 05, 2017
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 stringinto the other.
read more »
LEVENSHTEIN DISTANCE RECURSIVE IMPLEMENTATION April 04, 2017 (Updated: April 05, 2017) 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 »
ENUM AND STRING REPRESENTATIONApril 03, 2017
Example of Go enumerated constants using _iota_ enumerator, and print the string representation of enum name.read more »
RESTRUCTUREDTEXT “BACK TO TOP” LINKApril 02, 2017
_reStructuredText_ - “Back to Top” Linkread more »
TOOLTIP
April 01, 2017
Simple _tooltip_ implementation via _Dart_ programming language.read more »
PUBLISH TO GITHUB PAGES AUTOMATICALLYMarch 31, 2017
Create _gh-pages_ branch and publish your static website to GitHubPages in Makefile .
read more »
GITHUB PAGES SYMBOLIC LINK CAVEATMarch 30, 2017
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 WIDTHMarch 29, 2017
CSS only toggle the width of centered HTML DOM element. No JavaScript
required.
read more »
CREATE DIRECTORY IF NOT EXISTMarch 28, 2017
Create a directory if it does not exist. Otherwise do nothing.read more »
CHECK IF FILE, DIRECTORY, OR SYMLINK EXISTMarch 27, 2017
Check if a file, directory, or symbolic link exists, or not exists, in Go programming language.read more »
WRITE EXAMPLE CODE IN TESTINGMarch 26, 2017
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 ARRAYMarch 25, 2017
My favorite way to empty an array in JavaScript and why.read more »
GET QUERY STRING OF URL IN NET/HTTP HANDLERMarch 24, 2017
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)March 23, 2017
CSS only responsive Bootstrapnavbar
(navigation bar
) without JavaScript . Toggle mobile menu with CSS only. No JavaScript required.read more »
AJAX XMLHTTPREQUEST (XHR) EXAMPLEMarch 22, 2017
XMLHttpRequest (XHR) example by Vue.js.read more »
SEED PSEUDORANDOM NUMBER GENERATOR (PRNG) PROPERLYMarch 21, 2017
How to seed the pseudorandom number generator (PRNG) properly in Go programming language.read more »
ENABLE CROSS DOMAIN XMLHTTPREQUEST REQUEST IN GO SERVERMarch 20, 2017
Enable cross-domain XHR requests in Go server via Go standard_net/http_ package.
read more »
FILE SERVER WITH CUSTOM 404 NOT FOUNDMarch 19, 2017
Implement static file server with custom HTTP 404 Not Found handler via Go standard _net/http_ package.read more »
JSONP SERVER IMPLEMENTATION CODEMarch 18, 2017
A Go server that returns HTTP request headers via JSONP.read more »
STRING STARTSWITH AND ENDSWITHMarch 17, 2017
Go equivalent of Python string startswith and endswith methods.read more »
JSONP EXAMPLE
March 16, 2017
JSONP example - show your HTTP request headers.read more »
PRETTY PRINT JSON STRINGMarch 15, 2017
Pretty print JSON string viaVue.js .
read more »
JSONP EXAMPLE
March 14, 2017
JSONP example by Vue.js.
read more »
PASS SLICE OR ARRAY TO VARIADIC FUNCTIONMarch 13, 2017
Pass slice or array as variadic (...) parameter in Go programming language.read more »
VARIADIC FUNCTION EXAMPLE - ADDEVENTLISTENERMarch 12, 2017
Variadic Function Example in Go - ImplementaddEventListener
method via GopherJS .read more »
ALL PERMUTATIONS OF GIVEN STRING WITH DISTINCT CHARACTERSMarch 11, 2017
Find all permutations of a given string containing all distinct characters in Go programming language.read more »
TYPING TEXT EFFECT
March 10, 2017
Pure CSS typing text effect. No JavaScript required.read more »
TYPING TEXT EFFECT
March 09, 2017
Sequential and parallel typing text effect by Vue.js.
read more »
TYPING TEXT EFFECT
March 08, 2017
Sequential typing text effect by JavaScript.
read more »
TYPE TEXT EFFECT
March 07, 2017 (Updated: March 08, 2017) Parallel typing text effect by JavaScript.
read more »
TOOLTIP
March 06, 2017
Simple tooltip
implementation via ReactJavaScript .
read more »
TOOLTIP
March 05, 2017
Simple tooltip
implementation via Vue.js .read more »
PURE CSS TOOLTIP AND JAVASCRIPT IMPLEMENTATIONMarch 04, 2017
CSS only tooltip
, extracted from the example of MDN, and the corresponding JavaScriptimplementation.
read more »
SHOW QUIZ AFTER END OF YOUTUBE VIDEOMarch 03, 2017
Quiz will appear at the end of YouTube video.read more »
SHOW CONTENT IF PASS QUIZMarch 02, 2017
Show youtube video if users pass the quiz.read more »
CAVEAT OF FMT.FPRINTF USEMarch 01, 2017
Do not use fmt.Fprintf to writeto file
read more »
FETCH DOM STYLE OBJECT PROPERTIES VIA GOQUERYFebruary 28, 2017
Web scraping - fetch HTML DOM Style Objectproperties via
goquery in Go
programming language.read more »
PURE CSS TOGGLE (SHOW/HIDE) HTML ELEMENTFebruary 27, 2017
CSS only toggle (show/hide) HTMLDOM element
without JavaScript
.
read more »
TOGGLE (SHOW/HIDE) HTML ELEMENTFebruary 26, 2017
Toggle (Show/Hide) HTML DOM element in JavaScript.
read more »
SERVE TEMPLATE DATA FROM YAML FILEFebruary 25, 2017
Extract template data from human readable YAML file and create textual outputin Go .
read more »
THE BUDDHA REPLIES TO THE DEVAFebruary 24, 2017
What is the sharpest sword? What is the deadliest poison? What is the fiercest fire? What is the darkest night?read more »
ACCESS (GET/REFERENCE) DOM ELEMENTFebruary 24, 2017
How to access (get/reference) DOM Elementin Vue.js
?
read more »
TOGGLE (PLAY/PAUSE) AUDIO SOUND ON CLICK EVENT OF DOM ELEMENTFebruary 24, 2017
Toggle (play/pause) audio sound if users click on DOM Elementin Vue.js
.
read more »
PLAY AUDIO SOUND ON CLICK EVENT OF DOM ELEMENTFebruary 23, 2017
Play audio sound if users click on DOM Elementin Vue.js
.
read more »
PURE CSS BULMA RESPONSIVE NAV BAR (NAVIGATION BAR) February 22, 2017 (Updated: April 19, 2017) CSS only responsive Bulmanav bar
(navigation bar
) without JavaScript . Toggle mobile menu with CSS only. No JavaScript required.read more »
GO 1.8 TEMPLATE EXECUTE OUTPUT INCONSISTENT February 21, 2017 (Updated: April 08, 2017) Bug in Go 1.8 text/templateand html/template
package
read more »
ONLINE CONVERSION OF TRADITIONAL AND SIMPLIFIED CHINESE IN GO/GOPHERJSFebruary 20, 2017
Go front-end programming - online service for conversion of Traditional and Simplified Chinese via GopherJS/godom
/gojianfan
.
read more »
CONVERTER FOR TRADITIONAL AND SIMPLIFIED CHINESEFebruary 19, 2017
gojianfan - converter for Traditional and Simplified Chinese in Go programming language.read more »
KEBAB-CASE TO CAMELCASEFebruary 18, 2017
Convert the kebab-caseto camelCase in Go
programming language.read more »
WEB SCRAPE FACEBOOK POST VIA GOQUERYFebruary 17, 2017
Fetch and parse a public post on Facebook and extract data via goquery in Go programming language.read more »
PARSE UNIX TIME (UTIME) EXAMPLEFebruary 16, 2017
Parse the string of Unix time (also known as _POSIX time_ or _Epoch time_) in Go programmming language.read more »
GOQUERY QUERYSELECTORFebruary 15, 2017
Implement querySelectorin goquery
read more »
JAVASCRIPT ARROW KEY EXAMPLE VIA EVENT.KEY IN KEYBOARD EVENTFebruary 14, 2017
Detect arrow keystrokesvia event.key
of KeyboardEvent
in
JavaScript .
read more »
GOLANG TEMPLATE PARSE DIRECTORYFebruary 13, 2017
Complement to Go text/templateand html/template
package - Parse all files in directory (including sub-directories).read more »
PYTHON GENERATE RANDOM STRING FROMFebruary 12, 2017
Generate a random string from in Pythonread more »
ADD METHOD TO EXISTING TYPE IN EXTERNAL PACKAGEFebruary 11, 2017
Add method (function) to an existing type in external package in Go programming language.read more »
IO.WRITER TO STRING
February 10, 2017
Get string from
io.Writer (io
writer) in Go
programming language.read more »
IMO 2007 PROBLEM 3
February 08, 2017
In a mathematical competition some competitors are friends. Friendship is always mutual. Call a group of competitors a clique if each twoof...
read more »
GENERATE RANDOM STRING FROMFebruary 09, 2017
Generate a random string from in C programming language.
read more »
TOGGLE (SHOW/HIDE) HTML ELEMENTFebruary 08, 2017
Toggle (Show/Hide) HTML DOMelement in React
JavaScript
.
read more »
TOGGLE (SHOW/HIDE) HTML ELEMENTFebruary 07, 2017
Toggle (Show/Hide) HTML DOMelement in Vue.js
.
read more »
DRAGGABLE (MOVABLE) ELEMENTFebruary 06, 2017
draggable , movable (drag and drop) HTML elementin Vue.js .
read more »
GOLANG TEMPLATE INHERITANCE (PYTHON JINJA2 EXTENDS & INCLUDE)February 05, 2017
Template inheritance via Go html/template package. Show how onetempalate extends
from another,
and also include
templates,
just as how we do by Python Jinja2.
read more »
INPUT SUGGEST DROPDOWN MENUFebruary 04, 2017
Provide input suggest feature via Vue.js . Usually used in dictionary application.read more »
INPUT TEXT ELEMENT CHANGE EVENTFebruary 03, 2017
How to monitor the change eventof input
text element in
Vue.js .
read more »
READ LINES FROM URL
February 02, 2017
Read lines from web URLvia Go
programming language.read more »
INITIALIZE TWO DIMENSIONAL ARRAY/SLICEFebruary 01, 2017
Initialize 2-dimensional array/slice
in Go
programming language.read more »
VIRTUAL KEYBOARD
January 31, 2017
Virtual kayboard/keypad in GopherJS . Used in Pāli Dictionary .read more »
INSERT LINE OR STRING TO FILEJanuary 30, 2017
Insert a line or string to _n-th_ line of the file via Go programming language.read more »
VIRTUAL KEYBOARD
January 29, 2017
Virtual kayboard/keypad in Dart programming language. Used in Pāli Dictionary.
read more »
VIRTUAL KEYBOARD
January 28, 2017
Virtual kayboard/keypad in vanilla JavaScript . Used in Pāli Dictionary.
read more »
INPUT SUGGEST DROPDOWN MENUJanuary 27, 2017
Provide input suggest feature via AngularJS . Usually used in dictionary application.read more »
ANIMATE.CSS TEST DEMOJanuary 26, 2017
Use Animate.css and AngularJS to animate your webpage.read more »
ANIMATE.CSS TEST DEMOJanuary 25, 2017
Use Animate.css and Vue.js to animate your webpage.read more »
ANIMATE.CSS TEST DEMOJanuary 24, 2017
Use Animate.css and GopherJS to animate your webpage.read more »
APPEND LINE/STRING TO FILEJanuary 23, 2017
Append text line or string to the end of file via Go programming language.read more »
GENERATE RANDOM STRING FROMJanuary 22, 2017
Generate a random string from in Dart.
read more »
VIRTUAL KEYBOARD
January 21, 2017
Virtual kayboard/keypad via Vue.js . Used in PāliDictionary .
read more »
VIRTUAL KEYBOARD
January 20, 2017
Virtual kayboard/keypad via AngularJS . Used in Pāli Dictionary .read more »
LET IT COME, LET IT GO - AJAHN JAYANTOJanuary 19, 2017
"LET IT COME, LET IT GO" ~ Ajahn Jayantoread more »
REMOVE LEADING AND TRAILING EMPTY STRINGS IN STRING ARRAYJanuary 19, 2017
Remove leading and trailing empty strings in string array/slice
via Go
programming language.read more »
MOVE DIRECTORIES AND MODIFY PATH IN FILESJanuary 18, 2017
Replace specific pattern of strings in HTML files under directory viased .
read more »
TEST IF A STRING CONSISTS OF SINGLE LETTER OR CHARACTERJanuary 17, 2017
Test if a string consists of single character or letter in Go programming language.read more »
SETTING IMPLEMENTATION VIA JSON AND WEB STORAGE(LOCALSTORAGE)
January 16, 2017
Implementation of setting feature in web application via JSON, Web Storage
(localStorage
), and JavaScript
.
read more »
TEST IF AN ELEMENT CONTAINS A CLASSJanuary 15, 2017
Test if an element contains a class via GopherJS.
read more »
GENERATE RANDOM STRING FROMJanuary 14, 2017
Generate a random string from in JavaScript.
read more »
RESIZE IMAGE FROM WEB January 13, 2017 (Updated: March 15, 2017) Read an image from web and resize it in Go programming language.read more »
LOCALIZE THEME VIA JINJA2 CUSTOM FILTERJanuary 12, 2017
Pelican static site generator - Localizetheme with
i18n_subsites
plugin via custom Jinja2 filter.
Implementation of gettext-like filter.
read more »
REPLACE STRING IN DIRECTORYJanuary 11, 2017
Replace specific pattern of strings in HTML files under directory viased .
read more »
GET PARTIAL PAGES OR ARTICLES IN THEMEJanuary 10, 2017
Pelican static site generator - Getpartial pages
or articles
with specific metadataby
Jinja2 built-in selectattrfilter in
theme .
read more »
WINDOW.LOCATION EXAMPLE - ACCESS BROWSER URLJanuary 09, 2017
Example of accessing browser URL via JavaScriptwindow.location
.
read more »
THE 13 LAWS OF KARMA THAT WILL CHANGE YOUR LIFEJanuary 09, 2017
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 »
GET SINGLE PAGE OR ARTICLE BY SLUG METADATA IN THEMEJanuary 08, 2017
Pelican static site generator - Get asingle page
or article
by _slug_ metadata
in
theme .
read more »
TRANSLATE STRING ACCORDING TO DEFAULT LANGUAGE IN THEMEJanuary 07, 2017
Pelican static site generator - Support multilingual in Pelican theme. Translate strings
according to default languageof
settings in the
theme. (implement macrogettext
)
read more »
ACCESS HREF VALUE OF ANCHOR TAGJanuary 06, 2017
Access (raw) href value of anchor tag () viaGopherJS .
read more »
NULL TEST
January 05, 2017
Test if a variable is nullvia GopherJS .
read more »
HTML WEB HISTORY API EXAMPLEJanuary 04, 2017
Change browser URL without reloading web pages - Example for how to use HTML history API.
read more »
HTML WEB HISTORY API EXAMPLEJanuary 03, 2017
Change browser URL without reloading web pages - Example for HTMLhistory API via
GopherJS .
read more »
IMO 2016 PROBLEM 6
January 02, 2017
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 »
WINDOW.LOCATION - ACCESS URLJanuary 02, 2017
Access URL, path, query string, etc. of current URL via window.location andGopherJS .
read more »
SETTING IMPLEMENTATION VIA JSON AND WEB STORAGE(LOCALSTORAGE)
January 01, 2017
Implementation of setting feature in web application via JSON, Web Storage
, and GopherJS
.
read more »
KEYBOARD EVENT - ARROW KEYS EXAMPLEDecember 31, 2016
Detect arrow keystrokes via GopherJS .read more »
CREATEELEMENT AND CREATETEXTNODE DOM EXAMPLEDecember 30, 2016
DOM Example of createElementand createTextNode
via GopherJS .
read more »
GET PREFIX OR SUFFIX FROM STRINGDecember 29, 2016
Get prefix or suffix of a string in Makefile.
read more »
TRIM PREFIX OR SUFFIX FROM STRINGDecember 28, 2016
Remove prefix or suffix from string via Go programming language.read more »
MOUSEENTER AND MOUSELEAVE EVENT EXAMPLEDecember 27, 2016
Example of onmouseenterand
onmouseleave
event
via GopherJS .
read more »
ONLINE CONCATENATE AND COMPRESS JAVASCRIPT FILESDecember 26, 2016
Concatenate and minify JavaScriptfiles via Makefile
, curl
, and online Google ClosureCompiler .
read more »
ONLINE CONCATENATE AND COMPRESS JAVASCRIPT FILESDecember 25, 2016
Concatenate and minify JavaScriptfiles via Bash
script, curl
, and online Google ClosureCompiler .
read more »
PUBLISH STATIC WEBSITE TO GITHUB PROJECT PAGESDecember 24, 2016
Publish your static website to GitHub project pages via ghp-importin Makefile
.
read more »
CHECK INSTALLED PACKAGE VERSION ON UBUNTU LINUXDecember 23, 2016
Given an installed package name on Ubuntu Linux, find its version inMakefile .
read more »
BUILD ISSUE OF OPENCC GO BINDING ON UBUNTU LINUX 16.10December 22, 2016
Fail to build OpenCC Go binding on Ubuntu Linux 16.10, and how I fix it.
read more »
PARSE COMMAND LINE ARGUMENTS - STRING VARIABLEDecember 21, 2016
How to parse command-line arguments (string variable) via flagpackage in Go
programming language.read more »
COPY LARGE NUMBER OF FILES ON LINUXDecember 20, 2016
Copy large number of files efficiently via Bashscript on Linux.
read more »
FOCUS AND BLUR OF DOM ELEMENTDecember 19, 2016
Focus and Blur
of DOM
element via GopherJS.
read more »
WITHOUT JUDGING OR CRITICISING, BUT JUST NOTICING - AJAHN SUMEDHONovember 23, 2016
... without judging or criticising, but just noticing ... - Self-view, Personality and Awareness-
Luang Por Sumedho
read more »
TRAVERSE DOM TREE
June 14, 2016
Traverse DOM tree via GopherJS.
read more »
REPLACE DOM ELEMENT IN PLACEJune 13, 2016
Replace DOM element in place viaGopherJS .
read more »
CHECK NODETYPE OF DOM ELEMENTJune 12, 2016
Check node type (nodeType) of DOM
element via GopherJS.
read more »
ACCESS CHILD NODES OF DOM ELEMENTJune 11, 2016
Access child nodes (childNodes) of
DOM element via GopherJS.
read more »
ADD TOOLTIP TO EVERY (PĀLI) WORDJune 10, 2016
Add tooltip to
every word via GopherJS . Used in Pāli Tipiṭaka .read more »
TREEVIEW
June 09, 2016
Treeview via
GopherJS . Used in PāliTipiṭaka .
read more »
RESIZABLE VIEWS
June 08, 2016
Resizable views via GopherJS . Used in Pāli Tipiṭaka .read more »
REGISTER EVENT HANDLER (EVENT BINDING)June 07, 2016
Two ways to register event handler via GopherJS : Set element on-Event property oraddEventListener
.
read more »
GETELEMENTSBYTAGNAMEJune 06, 2016
Use getElementsByTagNameto access head
element via GopherJS.
read more »
TOOLTIP
June 05, 2016
Tooltip via
GopherJS . Used in PāliTipiṭaka .
read more »
INSERT CSS DYNAMICALLYJune 04, 2016
Insert (add, append) CSS to head element via GopherJS.
read more »
SETTIMEOUT
June 03, 2016
JavaScript setTimeoutequivalent in Go
/GopherJS -
time.AfterFunc .
read more »
THIS KEYWORD
June 02, 2016
Show how to access/use thiskeyword via
GopherJS .
read more »
SET/GET DOM CSS
June 01, 2016
Example - Set or Get CSS property of DOM element viaGopherJS .
read more »
ADD TOOLTIP TO EVERY WORDMay 31, 2016
Add tooltip to
every word via AngularJS . Used in PāliTipiṭaka .
read more »
PYTHON TRY EXCEPT TRANSLATED TO GOLANG SYNONYMSMay 30, 2016
Synonyms - Python try-except translated to Go programming language.read more »
I18N DIRECTIVE
May 29, 2016
Client side gettext -like Internationalization (i18n ) via AngularJS Directives.
read more »
GETTEXT-LIKE I18N SOLUTIONMay 28, 2016
Client side gettext -like Internationalization (i18n ) viaAngularJS .
read more »
TREEVIEW
May 27, 2016
Treeview via
AngularJS . Used in Pāli Tipiṭaka.
read more »
TOOLTIP
May 26, 2016
Tooltip via
AngularJS . Used in Pāli Tipiṭaka.
read more »
RESIZABLE VIEWS
May 25, 2016
Resizable Views via AngularJS . Used in PāliTipiṭaka .
read more »
REPLACE PĀLI WORD IN VELTHUIS SCHEME WITH UNICODEMay 24, 2016
Find Pāli word in Velthuisscheme , and
replace them with unicode via Go programming language.read more »
FIND REDUNDANT FILES SAVED BY CHROMEMay 23, 2016
Find redundant files saved by Chrome browser via Bash script.read more »
FIND REDUNDANT FILES SAVED BY CHROMEMay 22, 2016
Find redundant files saved by Chromebrowser via Go .
read more »
GOQUERY - ITERATE OVER ALL DOM ELEMENTS IN HTMLMay 21, 2016
Iterate over all DOM nodes/elements via goqueryin Go
programming language.read more »
FIND AND REMOVE FILES IN ONE LINE OF COMMANDMay 20, 2016
Use find
command to find all files with specific name and delete them in oneline of command.
read more »
FIND COMMAND EXCLUDE SUB-DIRECTORYMay 19, 2016
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 CIMay 18, 2016
Run wkhtmltopdf on Travis CI , which convert HTML files with chinese charactersto PDF .
read more »
HTML TO PDF VIA WKHTMLTOPDFMay 17, 2016
Convert HTML files in directory to PDF recursively via wkhtmltopdfand Bash
script.
read more »
GUESS METADATA FROM HTML AND CONVERTED TO RESTRUCTUREDTEXTMay 16, 2016
Guess metadata from HTML webpage and convert it to reStructuredTextformat.
read more »
BASIC HTML TABLE TO RESTRUCTUREDTEXT SUPPORT FOR HTML2RST SERVICE ONGAE GO
May 15, 2016
Add basic HTML tableto reStructuredText
support for online HTML to reStructuredText serviceon Google App
Engine Go .
read more »
ONLINE TAOBAO ITEM TO RESTRUCTUREDTEXT IMAGE ON GOOGLE APP ENGINE GOMay 14, 2016
Online service on Google App Engine Go , which helps you extract title, image URL from Taobao item webpage, and output in reStructuredTextformat.
read more »
ONLINE HTML TO RESTRUCTUREDTEXT ON GOOGLE APP ENGINE GOMay 13, 2016
Online HTML to reStructuredTextservice on Google
App Engine Go .
read more »
HTML TO RESTRUCTUREDTEXTMay 12, 2016
Convert HTML to
restructuredtext
format via net/html package in Go programming language. (Not fullysupported)
read more »
GOOGLE APP ENGINE GO - HTML LINK TO RESTRUCTUREDTEXTMay 11, 2016
Given a webpage URL. Fetch the title of the webpage and output reStructuredText link on Google App Engine Go .read more »
GET HTML TITLE VIA NET/HTML PACKAGEMay 10, 2016
Get HTML title via net/htmlpackage in Go
programming language.read more »
REMOVE EXECUTE PERMISSION OF FILES IN DIRECTORY RECURSIVELYMay 09, 2016
Remove execute(x) permission of files in directory recursively via chmod command and Bashscript.
read more »
HTML A, IMG, UL, LI ELEMENT TO RESTRUCTUREDTEXTMay 08, 2016
Convert HTML unordered (bulleted) list, HTML link
, and HTML image
to restructuredtext
format via net/html
package in Go
programming language.read more »
HTML A, UL, LI ELEMENT TO RESTRUCTUREDTEXTMay 07, 2016
Convert HTML unordered (bulleted) listand HTML link
to restructuredtext
format via net/html
package in Go
programming language.read more »
SEARCH TAOBAO.COM
May 06, 2016
Search Taobao.com .
read more »
GOQUERY - CONVERT HTML UNORDERED LIST TO RESTRUCTUREDTEXTMay 05, 2016
Convert HTML unordered (bulleted) listto restructuredtext
format via goquery
in Go
programming language.read more »
GOQUERY - REPLACE HTML LINK NODE WITH RESTRUCTUREDTEXT TEXT NODEMay 04, 2016
Replace HTML links nodewith text node
of
restructuredtext
format in a webpage via goqueryin Go
programming language.read more »
RSYNC OVER SSH WITH KEYMay 03, 2016
Example of copy local files to remote machine which allows only SSHkey login via rsync
command.
read more »
GITHUB PAGES CUSTOM 404 PAGE WITH REDIRECT LINKMay 02, 2016
Custom 404 page
for GitHub Pages . In the 404 page, a redirect link is created based on the current URL path.
read more »
UPGRADE FROM UBUNTU 12.04 TO 14.04May 01, 2016
Upgrade from AWS EC2t1.micro
running Ubuntu 12.04 LTSwith Apache-2.2 to
t2.nano
running Ubuntu 14.04 LTSwith Apache-2.4.
read more »
CREATE/MIGRATE LINUX USERS ON AMAZON EC2April 30, 2016
Create or migrate user account with SSH login only (no password login)on AWS EC2
t2.nano
with Ubuntu 14.04 LTS.
read more »
MOVE LARGE NUMBER OF FILES VIA TAR COMMANDApril 29, 2016
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 »
WRAP PĀLI WORDS IN SPAN ELEMENTApril 28, 2016
Wrap Pāli words in spanelement via regular
expression and Go
.
read more »
GOQUERY GET NUMBER OF CHILDREN NODESApril 27, 2016
Get the number of children nodes via goqueryin Go .
read more »
PROCESS HTML FILES FORMAT IN VOLUMNApril 26, 2016
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 »
RENAME FILES IN DIRECTORY TO LOWERCASEApril 25, 2016
Convert the name of files in directory to lowercase via Bashscript.
read more »
FIXED WIDTH/LENGTH STRINGApril 24, 2016
Output fixed width/length string in Go programming language.read more »
READ YES/NO FROM CONSOLEApril 23, 2016
Read Yes/No (i.e., ask for user confirmation) from console in Go programming language.read more »
CREATE RESTRUCTUREDTEXT METADATA VIA TEXT/TEMPLATE PACKAGEApril 22, 2016
Create reStructuredTextmetadata via Go
text/template
and text/width
package.
read more »
NUMBER OF CHILD NODES VIA NET/HTML PACKAGEApril 21, 2016
Get the number of child nodes via Go net/htmlpackage.
read more »
ENCODING CONVERSION, NEWLINE MANIPULATION, STRING REPLACEMENTOF FILE
April 20, 2016
Convert encoding of file from Big5to UTF-8
, remove DOS newline in file, replace string big5 with UTF-8, and append UNIX newlineto end of file.
read more »
GET VINE VIDEO SRC VIA GOQUERYApril 19, 2016
Get Vine video src URL via goqueryin Go
programming language. My answer to Stack Overflow question: Getting blank return when using GoQuery to get video srcread more »
SCRAPE JAVASCRIPT CODE VIA STRINGS PACKAGEApril 18, 2016
Scape JavaScript code to get campaign number via Gostrings
package.
read more »
GOQUERY EXAMPLE - GET SIMPLE TEXT FROM HTML PAGEApril 17, 2016
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 PAGEApril 16, 2016
Pelican static site generator - Link to section in another page via reStructuredText.
read more »
GETELEMENTBYID VIA NET/HTML PACKAGEApril 15, 2016
Equivalent of JavaScript getElementById via Gonet/html
package.
read more »
HTML TABLE TO RESTRUCTUREDTEXT LIST-TABLE VIA GOQUERYApril 14, 2016
Convert HTML table toreStructuredText
list-table
via goquery in Go
programming language.read more »
UNROBUST HTML TABLE TO RESTRUCTUREDTEXT LIST-TABLEApril 13, 2016
Convert HTML table toreStructuredText
list-table
via Go net/html
package. This is
experimental and not robust implementation.read more »
CONVERT ALL HTML LINKS TO RESTRUCTUREDTEXT VIA GOQUERYApril 12, 2016
Convert all HTML linksto restructuredtext
in a webpage via goquery in Go programming language.read more »
EXTRACT TEXT VIA STATE MACHINE AND GOQUERYApril 11, 2016
Extract text (i.e., footnote) in HTMLvia state machine
and goquery
in Go
programming language.read more »
ITERATE OVER ALL DOM ELEMENTS IN HTML April 10, 2016 (Updated: April 15, 2016) Iterate over all DOM elements inHTML via Go
programming language. Use net/html package to parse and iterate all elements in HTML. Search for HTML linksand output them in
reStructuredText
format.
read more »
COPY TO CLIPBOARD
April 09, 2016
Copy content of textareato clipboard via
JavaScript .
read more »
STRING REPLACEMENT EXAMPLEApril 08, 2016
Example for how to replace a string in a variable in Makefile.
read more »
A TIME TO LOVE - THE WAY IT IS - LUANG POR SUMEDHOApril 07, 2016
A TIME TO LOVE - The Way It Is - Luang Por Sumedhoread more »
SEARCH PTT BBS
April 07, 2016
Search PTT BBS
.
read more »
READ LINES FROM FILE OR STRING April 06, 2016 (Updated: April 09, 2018) Readlines from string or file in Go programming language.read more »
WRITE STRING TO FILE April 05, 2016 (Updated: March 01, 2017) Go - write string to file via osCreate
method and io
Copy
method.
read more »
HACKER NEWS LINK TO RESTRUCTUREDTEXTApril 04, 2016
Extract title and URL from Hacker News commentvia goquery
, and then output the info to reStructuredText footnote.
read more »
SEARCH LINKS OF MAJOR SEARCH ENGINES April 03, 2016 (Updated: February 24, 2017) Search links of major search engines - Google, DuckDuckGo , Bing
, Yahoo , Baidu
, Yandex , Ecosia
, Qwant .
read more »
WRAP PĀLI WORDS IN SPAN ELEMENTApril 02, 2016
Wrap Pāli words in spanelement via regular
expression and
JavaScript .
read more »
THE ARIYA SANGHA - PEACE BEYOND DELUSION (II) - LUANG POR LIEMṬHITADHAMMO
April 02, 2016
The Ariya Sangha - Peace Beyond Delusion (II) - Luang Por LiemṬhitadhammo
read more »
COPY TO CLIPBOARD
April 01, 2016
Copy content of textareato clipboard via
GopherJS .
read more »
EXTRACT TITLE, IMAGE, AND URL VIA GOQUERYMarch 31, 2016
Extract title, image, and URL in buy123 product webpage via goquery , and then output the info to reStructuredText image.
read more »
REPLACE RESTRUCTUREDTEXT LINK BY REGULAR EXPRESSIONMarch 30, 2016
Make reStructuredTextlinks of the
same name anonymous via regular expressionby sed
stream editor.
read more »
REPLACE FOOTNOTE BY REGULAR EXPRESSIONMarch 29, 2016
Replace footnote in reStructuredTextformat via
regular expression
by sed
stream editor.
read more »
REPLACE FOOTNOTE BY REGULAR EXPRESSIONMarch 28, 2016
Replace footnote in reStructuredTextformat via
regular expression
in Vim
editor.
read more »
SERVER GET FORM POST VALUEMarch 27, 2016
Server get HTML form value from HTTP POST in Go programming language.read more »
REMOVE QUERY STRING FROM URLMarch 26, 2016
Remove query string fromURL in Go
programming language.read more »
ELEMENT POSITION (OFFSET)March 25, 2016
Get DOM
element position (offset) via GopherJS .read more »
PHOTOS OF ME ON FACEBOOKMarch 24, 2016
Find photos of me on Facebook .read more »
GET UTF-8 STRING WIDTHMarch 23, 2016
Get UTF-8 string width (width of English letter is 1, width of CJK characteris 2) in Go
programming language.read more »
GET HTML TITLE VIA GOQUERYMarch 22, 2016
A simple example to read HTML title via goqueryin Go .
read more »
MAKEFILE NOTDIR = PYTHON BASENAME / GOLANG PATH.BASEMarch 21, 2016
Makefile 's notdir
= Python basename
/ Go
path.Base .
read more »
CONVERT FILE ENCODING FROM BIG5 TO UTF-8March 21, 2016
Convert file encoding from Big5to UTF-8 via Go
programming language.read more »
INSERT LINE AFTER FIRST PATTERN MATCHMarch 20, 2016
Insert a line after first pattern match via sedstream editor.
read more »
DOWNLOAD HTML FROM URL March 19, 2016 (Updated: October 10, 2018) Download and save HTML file from given URL via Go . Do nothing if the HTML file already locallyexists.
read more »
CONVERT FILES IN DIRECTORY FROM BIG5 TO UTF-8March 18, 2016
Convert all files in a directory recursively (i.e., including subdirectories of the directory) from Big5encoding to UTF-8
via iconv
command.
read more »
FIND PĀLI WORD IN VELTHUIS SCHEMEMarch 17, 2016
Find Pāli word in Velthuisscheme via Go
programming language.read more »
READ JPEG IMAGE DATE VIA EXIF METADATAMarch 16, 2016
Read JPEG image date from Exifmetadata in Go
programming language.read more »
APPEND TEXT AT THE BEGINNING OF EACH LINEMarch 15, 2016
Append text at the beginning of each line via sedstream editor.
read more »
INSERTAFTER - INSERT NEW NODE AFTER REFERENCE NODEMarch 14, 2016
insertAfter
- Insert new node after reference node via GopherJS . (opposite of insertBefore)
read more »
GET HEAD ELEMENT IN HTML DOCUMENTMarch 13, 2016
Access head element inHTML document
via GopherJS .
read more »
CONVERT TRADITIONAL CHINESE PO FILE TO SIMPLIFIED CHINESEVIA OPENCC
March 12, 2016
Convert Traditional Chinese PO file to Simplified Chinese via OpenCCand sed
in Makefile
.
read more »
CONCETENATE AND MINIFY CSS VIA SED AND TR COMMANDMarch 11, 2016
Concatenate and Minify CSS via sedand tr
command in Makefile
.
read more »
MINIFY HTML
March 10, 2016
Minify HTML via Go
programming language.read more »
MINIFY CSS
March 09, 2016
Minify CSS via Go
programming language.read more »
REMOVE C/C++ STYLE COMMENTSMarch 08, 2016
Remove C/C++ style comments via Go programminglanguage.
read more »
ONLINE CONCATENATE AND COMPRESS JAVASCRIPT FILESMarch 07, 2016
Concatenate and compress JavaScriptfiles via Go
programming language and online Google ClosureCompiler .
read more »
CONCATENATE JAVASCRIPT FILESMarch 06, 2016
Concatenate JavaScript files via Go programming language.read more »
CONVERT TRADITIONAL CHINESE PO FILE TO SIMPLIFIED CHINESEMarch 05, 2016
Automatically convert Traditional Chinese(zh_TW
)
PO
file to Simplified Chinese(zh_CN
)
by OpenCC and Go
programming language.read more »
CREATE SYMBOLIC LINK IF NOT EXISTMarch 04, 2016
Makefile - Create symbolic link if it does not exist. Otherwise do nothing.read more »
FIND REDUNDANT FILES SAVED BY CHROMEMarch 03, 2016
Find redundant files saved by Chrome browser via Python .read more »
EXAMPLE FOR BLOCK ACTION IN TEMPLATE PACKAGEMarch 02, 2016
Example for block actionin Go
text/template
and html/template
packages.
read more »
INSERT LINE WITH MATCHED PATTERNMarch 01, 2016
Extract URL from reStructuredTextlink and insert the
URL in the file as metadata via Python .read more »
BUTTON FOR TRADITIONAL/SIMPLIFIED CHINESE CONVERSION ONWEBSITE
February 29, 2016
Conversion Button of Traditional/Simplified Chinese on Website viaJavaScript .
read more »
CONVERT HTML TABLE TO RESTRUCTUREDTEXT LIST-TABLEFebruary 28, 2016
Python script to convert HTML tableto reStructuredText
list-table
via Beautiful Soup 4.
read more »
FONT SIZE LARGER/SMALLERFebruary 27, 2016
Make font size of your website larger/smaller via JavaScript.
read more »
ONLINE CONCATENATE AND COMPRESS JAVASCRIPT FILESFebruary 26, 2016
Online concatenate and compress JavaScriptfiles via Python
script.
read more »
CONCATENATE JAVASCRIPT FILESFebruary 25, 2016
Concatenate JavaScript files via Python script.read more »
BEAUTIFUL SOUP 4 SYNONYMS WITH JAVASCRIPTFebruary 24, 2016
Synonyms - Python Beautiful Soup 4translated to
JavaScript .
read more »
PELICAN ADD BUDDHIST CALENDARFebruary 23, 2016
Pelican static site generator - add Buddhist calendar inyour theme .
read more »
CONVERT WAV TO MP3 VIA FFMPEGFebruary 22, 2016
Write a bash script to convert wav to mp3 via ffmpeg onUbuntu Linux 15.10.
read more »
MKDIR -P
February 22, 2016
mkdir -p command in Goread more »
MKDIR -P
February 21, 2016
mkdir -p command in Pythonread more »
CSS FOR RESTRUCTUREDTEXT FOOTNOTE AND CITATIONFebruary 21, 2016
CSS for reStructuredText(rst) footnote
and citation
.
read more »
REGULAR EXPRESSION NAMED GROUP - EXTRACT METADATA FROM FILEPATH
February 20, 2016
Go regexp
example of named group matches- extract metadata
from file path.
read more »
PELICAN GENERATE INDEX.HTML BY RESTRUCTUREDTEXT OR MARKDOWNFebruary 19, 2016
Pelican static site generator - Generate index.html by writing reStructuredText orMarkdown .
read more »
ECHO COLOR OUTPUT
February 18, 2016
echo colorful output inMakefile .
read more »
GOPHERJS XMLHTTPREQUEST (XHR) AND MAKEFUNC EXAMPLEFebruary 18, 2016
Show how to use MakeFuncin
GopherJS by XMLHttpRequest(XHR
) example.
read more »
EXPORT PIXNET BLOG TO RESTRUCTUREDTEXT FILESFebruary 17, 2016
Python scripts to export PIXNET blog posts to files of reStructuredTextformat.
read more »
TEST IF ITEM EXIST IN WEB STORAGE BY GOPHERJSFebruary 16, 2016
Check if an item exists (is populated) in web storage (localStorageor
sessionStorage
)
by GopherJS .
read more »
CONVERT FOOTNOTE TO RESTRUCTUREDTEXT FORMATFebruary 15, 2016
Python Regular Expressionto
convert footnotes in file to reStructuredTextformat.
read more »
QUERYSELECTORALL AND QUERYSELECTOR EXAMPLE BY GOPHERJSFebruary 14, 2016
Go querySelectorAlland querySelector
Example by GopherJS
.
read more »
TINY EMBEDDING EXAMPLE OF RESTRUCTUREDTEXT STRINGLISTIMPLEMENTATION
February 13, 2016
Tiny Go embedding
code example of
analogy to StringList implementation of reStructuredText.
read more »
CALL STRUCT METHOD WITH MULTIPLE ARGUMENTS AND RETURNS BYNAME
February 12, 2016
Call a function (method ), with multiple arguments and returns, of a struct by name during run-time in Go . (run-time reflection)
read more »
CALL A STRUCT AND ITS METHOD BY NAMEFebruary 11, 2016
Call a function (method ) of a struct by name during run-time in Go . (run-time reflection)
read more »
SYNONYMS WITH PYTHON CLASSFebruary 10, 2016
Synonyms - Python classtranslated to Go
read more »
TOGGLE-ABLE SIDEBAR BY GOPHERJSFebruary 09, 2016
Go toggle-able sidebar by GopherJS , inspired by Octopress.
read more »
SUCCINCT TRIE IMPLEMENTATIONFebruary 08, 2016
Go implemantation of succinct trieported from Bits.js
.
read more »
CAVEATS OF GOPHERJS DEVELOPMENTFebruary 07, 2016
Fix runtime error via goroutinein Go
code compiled to JavaScriptby GopherJS .
read more »
UNDEFINED TEST IN GOPHERJSFebruary 06, 2016
Check if something (object, variable, API, ...) is undefined or not inGopherJS .
read more »
COUNT LEADING SPACES OF A STRINGFebruary 05, 2016
Count leading spaces of a string in Go .read more »
WALK ALL FILES IN DIRECTORY February 04, 2016 (Updated: May 10, 2018) List all files in a directory in Go . Similar toPython os.walk
.
read more »
ITERATE OVER UTF-8 STRINGS (NON-ASCII STRINGS)February 03, 2016
Iterate over UTF-8 or non-ASCII strings in Go . Iterations by for or rangekeywords.
read more »
BUG IN SUCCINCT TRIE IMPLEMENTATION OF BITS.JSFebruary 02, 2016
Fix the bug in succinct trieimplementation of
Bits.js - Wrong trie insertion if words are not inserted in alphabetical order.read more »
INPUT TEXT ELEMENT ENTER KEYPRESS EVENT BY GOPHERJSFebruary 01, 2016
Add the enter keypress event handler for the input text elementby GopherJS
read more »
REMOVE ALL CHILD NODES OF A DOM ELEMENT BY GOPHERJSJanuary 31, 2016
Go programming language - Remove all children ofa DOM
element by GopherJS .read more »
SAVE VARIABLES OF ANY TYPE IN JSON FILEJanuary 31, 2016
Save variables of any type (struct, map, array, slice, etc.) in JSONformat file via Go
programming language.read more »
PRETTY PRINT VARIABLE (STRUCT, MAP, ARRAY, SLICE) January 30, 2016 (Updated: May 16, 2018) Pretty print variable (struct, map, array, slice) in Go.read more »
CREATE DIRECTORY IF NOT EXISTJanuary 30, 2016
Makefile - Create a directory if it does not exist. Otherwise donothing.
read more »
GOPHERJS SYNONYMS WITH JAVASCRIPT January 29, 2016 (Updated: January 15, 2017) Synonyms - Go /GopherJS idioms and snippets translated toJavaScript
read more »
GETTEXT FUNCTION ON FRONTEND (BROWSER) BY GOPHERJSJanuary 28, 2016
Implement gettext function on front-end (browsers) by GopherJS . The _gettext_ function translates a text string into the user's nativelanguage.
read more »
COMPILE SASS/SCSS FILES TO CSS VIA LIBSASSJanuary 28, 2016
Write a Go program to compile your SASS/SCSS
(CSS extension language) files to CSS via libsass and Go wrapperfor libsass .
read more »
CONVERT PO FILE TO JSON FORMATJanuary 27, 2016
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 »
CONVERT PO FILE TO JSON FORMATJanuary 26, 2016
Convert PO
files to JSON format via Python . The data of JSON format can be passed to front-end by web servers to translate a text string into the user's native language. You can use the JSON data to implement gettext function in browsers.read more »
ACCESS HTTP REQUEST HEADER BY XHR GETALLRESPONSEHEADERS()January 25, 2016
Run Golang program in your browser by GopherJS . Access HTTP Request Headerby
getAllResponseHeaders() method in XMLHttpRequest(XHR) request.
read more »
ACCESS HTTP REQUEST HEADER (ACCEPT-LANGUAGE) BY JSONPJanuary 24, 2016
Run Golang program in your browser by GopherJS . Access Accept-Languagefield in HTTP
Request Header
by JSONP
to detect browser language preference (user locale ).read more »
DETECT BROWSER LANGUAGE PREFERENCE BY WINDOW.NAVIGATOR.LANGUAGEJanuary 24, 2016
Run Golang program in your browser by GopherJS . Access window.navigator.language of NavigatorLanguage API to detect browser language preference (user locale).
read more »
RESTRUCTUREDTEXT PACKAGEJanuary 23, 2016
Packages of reStructuredText(to HTML
) implementation in Go.
read more »
JSONP EXAMPLE (CORS) BY GOPHERJSJanuary 23, 2016
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 »
PARSE ACCEPT-LANGUAGE IN HTTP REQUEST HEADERJanuary 22, 2016
Parse Accept-Languagein HTTP
Request Header
in
JavaScript Programming Language.read more »
XMLHTTPREQUEST (XHR) HTTP POST JSON DATA BY GOPHERJSJanuary 21, 2016
Run Golang program in your browser by GopherJS . Use XMLHttpRequest (XHR) to send HTTP POSTrequests 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-endand backend.
read more »
XMLHTTPREQUEST (XHR) HTTP GET JSON DATA BY GOPHERJSJanuary 20, 2016
Run Golang program in your browser by GopherJS . Use XMLHttpRequest (XHR) to send HTTP GETrequests to
retrieve JSON data from remoteserver.
read more »
XGETTEXT EXTRACT TRANSLATABLE STRINGS FROM GOLANG HTML/TEMPLATEJanuary 19, 2016
Use xgettext
(one of GNU gettext utilities) to extract translatable strings from HTMLtemplates of Go
html/template .
read more »
I18N GOLANG WEB APPLICATION BY GETTEXT AND HTML/TEMPLATEJanuary 19, 2016
i18n
(Internationalization) Go web applications by GNU gettext tools and html/template . Use POand MO
files generated by gettext in Golang web application to render HTML of specific languages by html/template.
read more »
TOGGLE (SHOW/HIDE) HTML ELEMENT BY GOPHERJSJanuary 18, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. This example show how to toggle (show/hide) a HTML element by GopherJSand its DOM binding
.
read more »
DRAGGABLE (MOVABLE) ELEMENT BY GOPHERJSJanuary 17, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. This example show how to write a draggable/movable element by GopherJS andits DOM binding .
read more »
I18N PYTHON WEB APPLICATION BY GETTEXT AND JINJA2January 17, 2016
i18n
(Internationalization) Python web applications by GNU gettext tools and Jinja2 . Use POand MO
files generated by gettext in Python web application to render HTML of specific languages by Jinja2 templateengine.
read more »
GOPHERJS DOM EXAMPLE - DROPDOWN MENUJanuary 16, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. This example show how to write a dropdown menu by GopherJS and its DOM binding.
read more »
GOPHERJS DOM EXAMPLE - TOGGLE (PLAY/PAUSE) SOUND ON CLICKEVENT
January 15, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. This example show how to toggle (play/pause) sound on click eventof a HTML
DOM element.
read more »
GOPHERJS DOM EXAMPLE - PLAY SOUND ON CLICK EVENTJanuary 15, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. This example show how to play sound on clickevent of a HTML
DOM element.
read more »
INTERNATIONALIZATION (I18N) OF PYTHON APPLICATION BY GNUGETTEXT TOOLS
January 14, 2016
Internationalization (i18n)
of Python applications by GNU gettext tools. This post shows how touse PO
and MO
files in Python .
read more »
GOPHERJS DOM EXAMPLE - CREATE AND APPEND ELEMENTJanuary 14, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. This example show how to create a new HTML element and append it to the DOMtree.
read more »
GOPHERJS DOM EXAMPLE - HIDE ELEMENT BY DISPLAY:NONEJanuary 13, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. This example show how to hide HTML elements by setting its CSS property display:none.
read more »
ONLINE SNAKE GAME BY GOPHERJSJanuary 13, 2016
Online snake game using Go programming language, compiled to JavaScriptby GopherJS
. (GopherJS DOM
example)
read more »
ONLINE INPUT METHOD (PĀLI) BY GOPHERJSJanuary 12, 2016
Online Pali (Pāli, Pāḷi) Input Method using Go programming language, compiled to JavaScript by GopherJS . (GopherJS DOMexample)
read more »
GOPHERJS DOM EXAMPLE - ACCESS HTML DATA ATTRIBUTEJanuary 12, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. This example shows how to access HTMLdata-* attribute
.
read more »
GOPHERJS DOM EXAMPLE - ACCESS INPUT ELEMENT VALUEJanuary 11, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. This example show how to access the value ofHTML input element
.
read more »
GOPHERJS DOM EXAMPLE - DETECT KEYPRESS (KEYBOARD EVENT)January 11, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. Detect user keypress by registering keyboardevent handler and
print out the keycodeof the keyboard
event.
read more »
GOPHERJS DOM EXAMPLE - EVENT BINDING (ADDEVENTLISTENER)January 11, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. Use addEventListenerto
attach event handler to specific DOMelement.
read more »
GOPHERJS SERVE AND BUILD COMMAND USAGEJanuary 10, 2016
Example of how to use _serve_ and _build_ command of GopherJS.
read more »
GOPHERJS DOM EXAMPLE - GETELEMENTBYID AND SET INNERHTMLJanuary 10, 2016
Run Golang program in your browser by GopherJS . Show how to write a Goprogram to do DOM
manipulation by example. Use getElementByIdto access
DOM
element and set innerHTMLof the
element.
read more »
SQLITE3 DATABASE EXAMPLE - BASIC USAGEJanuary 09, 2016
Use SQLite in Go
program. Write a Golang program to initialize a database, create a table, write some data to the table and read datafrom the table.
read more »
INTERNATIONALIZATION (I18N) OF GO APPLICATION BY GNU GETTEXTTOOLS
January 08, 2016
Internationalization (i18n)
of Go applications by GNU gettext tools. This post shows how touse PO
and MO
files in Golang .
read more »
AUTOMATICALLY CONVERT TRADITIONAL CHINESE PO FILE TOSIMPLIFIED CHINESE
January 08, 2016
Automatically convert Traditional Chinese(zh_TW
)
PO
file to Simplified Chinese(zh_CN
)
by OpenCC and Python programming language.read more »
INTERNATIONALIZATION (I18N) OF WEB APPLICATION BY GNU GETTEXT TOOLSJanuary 07, 2016
Support multiple languages in your (web) applications, by GNU gettext tools, which include _xgettext_, _msginit_, _msgmerge_, and _msgfmt_.read more »
WEB SCRAPE JAVASCRIPT WEBPAGE BY DRYSCRAPEJanuary 06, 2016
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 January 05, 2016 (Updated: May 23, 2017) Automatic deployment of websites, by Pelican, Travis CI , and
Github Pages
read more »
CONVERSION OF TRADITIONAL AND SIMPLIFIED CHINESEJanuary 04, 2016
Conversion of Traditional and Simplified Chinese by OpenCCand Python
programming language.read more »
CONVERSION OF TRADITIONAL AND SIMPLIFIED CHINESEJanuary 03, 2016
Conversion of Traditional and Simplified Chinese by OpenCCand Go programming
language.
read more »
USE WGET TO FETCH WEBPAGESJanuary 02, 2016
Write a bash script to use wget to fetch webpages.read more »
USE REGULAR EXPRESSION TO FIND STRINGS MARKED FOR INTERNATIONALIZATION (I18N)January 01, 2016
Use regular expression in Python to search and find strings marked for i18n (Internationalization)read more »
INTERNATIONAL MATHEMATICAL OLYMPIAD (IMO) 2014 PROBLEM 6December 17, 2015
International Mathematical Olympiad (IMO ) 2014 Problem 6read more »
ASIAN PACIFIC MATHEMATICS OLYMPIAD (APMO) 2015 PROBLEM 4December 16, 2015
Asian Pacific Mathematics Olympiad(APMO
) 2015
Problem 4
read more »
INTERNATIONAL MATHEMATICAL OLYMPIAD (IMO) 2010 PROBLEM 6August 04, 2015
International Mathematical Olympiad (IMO ) 2010 Problem 6read more »
INTERNATIONAL MATHEMATICAL OLYMPIAD (IMO) 2015 PROBLEM 6July 23, 2015
International Mathematical Olympiad (IMO ) 2015 Problem 6read more »
MAGICAL RECURRENCE
June 23, 2015
In a recent algorithmic coding contest which I didn't do well, thehardest 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 »
UNITED STATES OF AMERICA MATHEMATICAL OLYMPIAD (USAMO) 2015PROBLEM 3
May 11, 2015
United States of America Mathematical Olympiad (USAMO) 2015 Problem 3
read more »
GENERATE RANDOM STRING FROM April 13, 2015 (Updated: March 21, 2017) Generate a random string from in Golang.read more »
INTERNATIONALIZATION AND LOCALIZATION OF GOOGLE APP ENGINE PYTHON WEBAPP USING WEBAPP2 AND JINJA2April 12, 2015
i18n and L10n of Google App Engine Python web application, with webapp2, Jinja2, Babel, and pytz.read more »
THE INFAMOUS GRASSHOPPER PROBLEMApril 01, 2015
The infamous Grasshopper problemread more »
SAVE JSON DATA IN DIRECTORYMarch 28, 2015
Save JSON-format data in the directory using Go programming language.read more »
WAIT FOR GOROUTINES TO FINISH March 23, 2015 (Updated: May 16, 2018) Use channels to wait for all goroutines to finishread more »
RESPONSIVE NAVIGATION BAR (NAVBAR)March 19, 2015
Responsive top navigation bar (navbar) used in this website.read more »
IMPORT CSS FILE IN SCSS WITH PYSCSSMarch 18, 2015
Include regular CSS file in SCSS file with pyScss.read more »
SIMPLE CUSTOM RESPONSIVE GRID LAYOUTMarch 13, 2015
A simple custom responsive grid layout exmaple without CSS frameworks.read more »
GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (7) - CUSTOM FUNCTIONS ANDFILTERS
March 12, 2015
Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Go template custom function vs Jinja2 custom filterand function.
read more »
CAPTURE AND HANDLE CTRL+C EVENTMarch 11, 2015
Run cleanup function when receiving ^C signal.read more »
GOROUTINES POLL WEB FEEDSMarch 10, 2015
Poll RSS/ATOM feeds with Goroutinesread more »
MULTIPLE APPLICATION WITH SAME CONTEXTMarch 09, 2015
Multiple web.py applications with the same context (web.ctx)read more »
GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (6) - TEMPLATE INHERITANCE(EXTENDS)
March 08, 2015
Comparison of Python Jinja2 and Go html/template , side by side for easy reference - Mimic Jinja2 template inheritancein Go html/template
read more »
GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (5) - MAPS AND DICTIONARIESMarch 07, 2015
Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Loop through Python Dictionaries vs Go Mapsread more »
GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (4) - ARRAYS AND SLICESINDEX
March 06, 2015
Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Python List vs Go Arrays and Slices - Loop Indexread more »
GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (3) - ARRAYS AND SLICES March 05, 2015 (Updated: March 06, 2015) Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Python List vs Go Arrays and Slicesread more »
WEB APPLICATION ON BOTH GOOGLE APP ENGINE AND APACHE March 04, 2015 (Updated: March 05, 2015) Web application (web.py framework) template runs on both Google App Engine Python and Apache with mod_wsgi.read more »
PARSE WEB FEED - RSS AND ATOMMarch 03, 2015
Parse Atom 1.0/RSS 2.0 web feeds in Go programming language.read more »
CONVERT ATOM TO RSS
March 02, 2015
Convert Atom 1.0 to RSS 2.0 format in Go programming language.read more »
ACCESS HTML DATA ATTRIBUTEMarch 01, 2015
Access data-* attribute of HTML elements in Dartread more »
XML PARSING EXAMPLE (8) - PARSE ATOM 1.0February 28, 2015
How to read XML/HTML files in Go programming language (for newbie) - Parse Atom 1.0 format.read more »
XML PARSING EXAMPLE (7) - PARSE RSS 2.0February 27, 2015
How to read XML/HTML files in Go programming language (for newbie) - Parse RSS 2.0 format.read more »
XML PARSING EXAMPLE (6) - PARSE OPML CONCISELYFebruary 26, 2015
How to read XML/HTML files in Go programming language (for newbie) - Parse OPML format concisely.read more »
XML PARSING EXAMPLE (5) - PARSE OPMLFebruary 25, 2015
How to read XML/HTML files in Go programming language (for newbie) -Parse OPML format.
read more »
GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (2)February 24, 2015
Comparison of Python Jinja2 and Go html/template, side by side for easy reference - print Hello World! on screenread more »
XML PARSING EXAMPLE (4)February 24, 2015
How to read XML/HTML files in Go programming language (for newbie) - Read multiple direct child elements.read more »
ONLINE INPUT METHOD - PALI (PĀLI, PĀḶI)February 23, 2015
Online Pali (Pāli, Pāḷi) Input Method using Dart programminglanguage.
read more »
PARSE ACCEPT-LANGUAGE IN HTTP REQUEST HEADERFebruary 22, 2015
Parse Accept-Language in HTTP Request Header in Go ProgrammingLanguage.
read more »
GOLANG HTML/TEMPLATE VERSUS PYTHON JINJA2 (1) February 21, 2015 (Updated: March 06, 2015) Comparison of Python Jinja2 and Go html/template, side by side for easy reference - Load and Serve Templatesread more »
XML PARSING EXAMPLE (3)February 21, 2015
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 FUNCTIONFebruary 20, 2015
Cross-domain requests by JSONP with object instance function as callback on Google App Engine for Python.read more »
JSONP WITH ANONYMOUS CALLBACK FUNCTION February 20, 2015 (Updated: February 20, 2015) Cross-domain requests by JSONP with anonymous callback functionon
Google App Engine for Python.
read more »
JSONP ON GOOGLE APP ENGINE PYTHON February 20, 2015 (Updated: February 20, 2015) Cross-domain requests by JSONP on Google App Engine for Python.
read more »
XML PARSING EXAMPLE (2) February 19, 2015 (Updated: February 21, 2015) How to read XML/HTML files in Go programming language (for newbie) - Read element attribute.read more »
KEYBOARD EVENT (ARROW KEY EXAMPLE)February 18, 2015
Detect keystrokes in Dart programming language.read more »
READ COMMAND-LINE ARGUMENTS EXAMPLEFebruary 18, 2015
How to pass command-line arguments (flags) in Go programming language.read more »
XML PARSING EXAMPLE (1) February 17, 2015 (Updated: February 21, 2015) How to read XML/HTML files in Go programming language (for newbie) - Read element and its content.read more »
DRAGGABLE (MOVABLE) ELEMENTFebruary 17, 2015
Draggable, movable (drag and drop) HTML element using Dart programminglanguage.
read more »
MOUSEEVENT CLIENTX AND CLIENTY DEPRECATEDFebruary 16, 2015
e.clientX => e.client.x & e.clientY => e.client.yread more »
DRAGGABLE TOGGLEABLE SIMPLE WEB KEYBOARDFebruary 16, 2015
Demonstrate how to make an online 0-9 keypad, which is draggable via jQuery and toggleable via vanilla JavaScript.
read more »
DART HTTP POST JSON DATA TO GO SERVERFebruary 15, 2015
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
February 14, 2015
Dropdown menu using Dart programminglanguage.
read more »
HIDE DIV WHEN CLICKED OUTSIDE ITFebruary 14, 2015
Hide div element when clicked outside it, using Dart programming language.read more »
LOAD DART SCRIPT IF DARTIUM, OTHERWISE LOAD JAVASCRIPT IN BROWSERFebruary 14, 2015
Load Dart script while development or the browser supports dart. Otherwise load JavaScript as usual.read more »
HIDE DIV WHEN CLICKED OUTSIDE IT February 13, 2015 (Updated: February 02, 2017) Hide div element when clicked outside it, in vanilla JavaScriptway. No jQuery
or libraries are used.read more »
JAVASCRIPT DROP DOWN MENU February 13, 2015 (Updated: February 02, 2017) Dropdown menu using vanilla JavaScript. No jQuery
or libraries are used.read more »
TOGGLE ELEMENT (DROPDOWN/MENU) VISIBILITY WITH CSSFebruary 07, 2015
Toggle element (usually div) with pure CSSonly (no JavaScript
). Suitable for
dropdown/menu application.read more »
DROPDOWN MENU USING DIRECTIVEFebruary 04, 2015
Use AngularJS powerful custom directive to implement dropdown menu without jQuery or any other library.read more »
LIST ALL FILES IN DIRECTORY RECURSIVELY AND RENAMEFebruary 02, 2015
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 SPIRITUALITYFebruary 01, 2015
“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, isover.”
read more »
INSANE DFS
January 15, 2015
Insane DFS
read more »
SWAP AND SUM
January 13, 2015
Swap and Sum
read more »
ROBOT
September 23, 2014
Robot
read more »
ARES_GETHOSTBYNAME() IS SLOW ON SOME WINDOWS MACHINESSeptember 12, 2014
The function ares_gethostbyname() in c-ares library, as of version 1.10.0, is slow on some Windows machines. ...read more »
DOM ELEMENT REMOVE ALL CHILDREN January 31, 2014 (Updated: February 20, 2015) DOM element remove all children in Dart programming languageread more »
HELLO WORLD IN C
November 17, 2013
Hello World program in C programming languageread more »
TOGGLE ELEMENT WITHOUT JAVASCRIPTJune 22, 2013
Example of toggling DOM element using AngularJS , without any JavaScriptcode.
read more »
GET ELEMENT OFFSET (POSITION)May 12, 2013
Get the offset (position) of an AngularJS DOM element without jQueryread more »
INCORRECT NG-MOUSEENTER NG-MOUSELEAVE AND SOLUTION May 01, 2013 (Updated: February 24, 2015) Solution to mouseenter and mouseleave event in old version AngularJS.read more »
DRAGGABLE (MOVABLE) ELEMENT April 04, 2013 (Updated: February 20, 2015) Draggable, movable HTML element using AngularJS.read more »
SAFE SCOPE.$APPLY IMPLEMENTATION (ERROR: $APPLY ALREADY INPROGRESS)
April 04, 2013 (Updated: February 23, 2015) Safely execute an expression in angular from outside of the angularframework.
read more »
PRETTY PRINT VARIABLE (DICTIONARY, LIST, OBJECT, ARRAY)March 09, 2013
Pretty print variable in Pythonread more »
SET HTML DOCUMENT TITLEMarch 08, 2013
Set HTML document title in AngularJSread more »
UPDATE PROPERTY IN PARENT SCOPE February 08, 2013 (Updated: February 23, 2015) Update parent scope from child scope by event dispatching and listening mechanism.read more »
DATEPICKER WITH JQUERY February 06, 2013 (Updated: February 23, 2015) jQuery datepicker wrapped in AngularJSdirective.
read more »
REMOVE STRING TRAILING NEWLINE (CARRIAGE RETURN)January 09, 2013
Remove trailing newline (carriage return) of a string in C programminglanguage .
read more »
MY LAST WORDS - AJAHN PRAWITDecember 11, 2012
My Last Words - Ajahn Prawitread more »
TOGGLE (PLAY/PAUSE) SOUND ON CLICK EVENT OF DOM ELEMENT October 12, 2012 (Updated: February 25, 2015) Toggle sound on click event of DOM element.read more »
DETECT USER LANGUAGE (LOCALE) ON GOOGLE APP ENGINE PYTHON October 12, 2012 (Updated: February 21, 2015) Detect user locale/language from HTTP request header on Google AppEngine for Python.
read more »
PARSE ACCEPT-LANGUAGE IN HTTP REQUEST HEADER October 11, 2012 (Updated: February 21, 2015) Parse Accept-Language in HTTP Request Header in Python.read more »
LOAD CSS DYNAMICALLY October 10, 2012 (Updated: February 23, 2015) Load CSS file dynamically.read more »
REMOVE LEADING AND TRAILING WHITESPACES October 09, 2012 (Updated: February 22, 2015) Remove leading and trailing whitespaces of a string in JavaScript.read more »
PLAY SOUND ON CLICK EVENT OF DOM ELEMENT October 08, 2012 (Updated: February 25, 2015) Play sound on click event of DOM element.read more »
CROSS-BROWSER HTTP POST REQUEST October 05, 2012 (Updated: March 02, 2015) JavaScript cross-browser HTTP POST requestread more »
CROSS-BROWSER HTTP GET REQUEST October 05, 2012 (Updated: March 02, 2015) JavaScript cross-browser HTTP GET requestread more »
DOM READY WITHOUT JAVASCRIPT FRAMEWORKSOctober 04, 2012
Check DOM readiness in vanilla JavaScript.read more »
CONVERSION OF TRADITIONAL AND SIMPLIFIED CHINESEOctober 03, 2012
JavaScript library New Tong Wen Tang for conversion of Traditional andSimplified Chinese.
read more »
FIRING ORDER (PRECEDENCE) OF EVENT HANDLER October 03, 2012 (Updated: March 03, 2015) Use onmousedown event instead of onclick event if the event handler to be fired before onblur event.read more »
LOAD FAVICON DYNAMICALLY October 02, 2012 (Updated: February 23, 2015) Load website icon (favicon) dynamically.read more »
JAVASCRIPT BASENAME() October 02, 2012 (Updated: February 20, 2015) JavaScript equivalent of basename program.read more »
ONMOUSEENTER AND ONMOUSELEAVE SUPPPORT FOR OLD BROWSERS October 02, 2012 (Updated: February 26, 2015) JavaScript Cross-Browser Implementation of onMouseEnter andonMouseLeave Event
read more »
CHANGE SCOPE (CONTEXT) OF ANONYMOUS FUNCTION October 01, 2012 (Updated: March 07, 2015) Change the scope (context) of anonymous function - change what _this_ keyword refers to in anonymous function.read more »
SCOPE (CONTEXT) OF EVENT HANDLER FUNCTION October 01, 2012 (Updated: March 07, 2015) Discuss the scope (context) of event handler and how to change what _this_ keyword refers to.read more »
ONINPUT AND ONPROPERTYCHANGE EVENT ALTERNATIVE September 30, 2012 (Updated: February 22, 2015) 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 September 29, 2012 (Updated: March 13, 2015) Use social buttons to make your website more popular.read more »
SINGLE CALLBACK FOR MULTIPLE ASYNCHRONOUS AJAX REQUESTS(XMLHTTPREQUEST)
September 29, 2012 (Updated: March 20, 2017) JavaScript single callback for multiple asynchronous XHR requests.read more »
CHECK WEBSITE AVAILABILITY AND THEN REDIRECT BY JSONP September 28, 2012 (Updated: March 25, 2015) Redirect users to another website if the website is available.read more »
USE XSL TO TRANSFORM XML (XSLT) September 27, 2012 (Updated: February 18, 2015) XSLT (Extensible Stylesheet Language Transformations) in Python.read more »
STRING STARTSWITH, ENDSWITH AND CONTAINS IMPLEMENTATION September 27, 2012 (Updated: February 20, 2015) JavaScript equivalent of Python string startswith, endswith, andcontains.
read more »
JAVASCRIPT CREATE DOM ELEMENT DYNAMICALLY September 26, 2012 (Updated: February 20, 2015) Create DOM elements by JavaScript.read more »
PYTHON CREATE HTML ELEMENT DYNAMICALLY ON SERVER SIDE September 26, 2012 (Updated: February 20, 2015) Serve DOM elements to clients dynamically on Google App Engine Pythonread more »
JAVASCRIPT REMOVE ALL CHILDREN OF A DOM ELEMENT September 26, 2012 (Updated: March 25, 2017) Bug-free way of removing child nodes of a DOM element in JavaScript.read more »
JAVASCRIPT CROSS-BROWSER CROSS-DOMAIN XMLHTTPREQUEST (XDOMAINREQUESTIN IE)
September 25, 2012 (Updated: March 20, 2017) Cross-domain AJAX requestsread more »
WIDTH PERCENTAGE TO PIXEL September 23, 2012 (Updated: February 26, 2015) 1% width of browser window equal to how many pixels?read more »
WIDTH OF BROWSER WINDOW IN PIXEL September 16, 2012 (Updated: February 26, 2015) Width of browser window in pixel.read more »
ACCESS-CONTROL-ALLOW-ORIGIN IN HTTP HEADER ON GOOGLE APP ENGINE September 15, 2012 (Updated: February 22, 2015) Config Access-Control-Allow-Origin in HTTP headers on Google AppEngine.
read more »
COMPARISON OF MOUSEENTER MOUSELEAVE MOUSEOVER MOUSEOUT August 07, 2012 (Updated: February 26, 2015) Compare mouseenter, mouseleave, mouseover, and mouseout events.read more »
LIGHTWEIGHT DYNAMIC JAVASCRIPT LOADER WITH DEPENDENCY HANDLING July 25, 2012 (Updated: April 03, 2015) Load JavaScript scripts dynamically with dependencies.read more »
AJAX FORM POST REQUEST TO GOOGLE APP ENGINE PYTHON July 24, 2012 (Updated: March 02, 2015) Send/receive data to/from Google App Engine Python servers by HTTP POSTrequests in AJAX
way.
read more »
JAVASCRIPT DRAG AND DROP (DRAGGABLE, MOVABLE) ELEMENT WITHOUT EXTERNALLIBRARY
July 13, 2012 (Updated: February 20, 2015) Draggable, movable HTML element using vanilla JavaScript .read more »
GOOGLE CLOSURE LIBRARY EDITOR WITH EQUATION EDITOR DIALOG July 08, 2012 (Updated: April 06, 2015)Rich text editor
with math equation dialog using Google Closure Library.
read more »
JAVASCRIPT DOM ELEMENT POSITION (SCROLL POSITION INCLUDED) July 01, 2012 (Updated: February 18, 2015) Get DOM element position (including scroll position) using JavaScript.
read more »
JAVASCRIPT BACK TO TOP LINK June 27, 2012 (Updated: April 06, 2015) JavaScript Back to TopLink
read more »
JAVASCRIPT KEYBOARD EVENT (ARROW KEY EXAMPLE) June 25, 2012 (Updated: October 08, 2018) Detect arrow keystrokesin JavaScript
.
read more »
JAVASCRIPT EVENT TARGET ELEMENT (SRCELEMENT) June 21, 2012 (Updated: April 07, 2015) Event target element in JavaScriptevent handling.
read more »
LOAD EXTERNAL JAVASCRIPT OR CSS FILE DYNAMICALLY June 18, 2012 (Updated: February 23, 2015) Load JavaScript or CSSon demand.
read more »
JAVASCRIPT PREFIX MATCH (DICTIONARY APPLICATION) June 14, 2012 (Updated: February 24, 2015) Given a set of strings (words), and an user input string, output a set of strings with prefix the same as the user input stringread more »
GOOGLE APP ENGINE DATASTORE EXAMPLE : DICTIONARY APPLICATION June 07, 2012 (Updated: April 07, 2015) Simple usage example of Google App Engine PythonDatastore
.
read more »
FIXED MENU BAR ON TOP OF WEBSITEJune 02, 2012
Put your menu bar on top of the website, no matter how users scroll.read more »
MULTIPLE FILES UPLOAD WITH GOOGLE APP ENGINE PYTHONMay 29, 2012
Let website users upload multiple files to Google App Engine (Python)servers.
read more »
PYTHON LIBRARY XML.DOM.MINIDOM HOWTO (7) May 27, 2012 (Updated: February 01, 2017)Python XML
/HTML
manipulation primer ofxml.dom.minidom
read more »
SPECIAL FORMAT CONVERSION IN PYTHONMay 27, 2012
%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 NUMPYMay 25, 2012
Evaluate Multivariate Normal Distributionwith
NumPy in Python .
read more »
HTTP POST (MULTIPART/FORM-DATA) ON ANDROIDMay 24, 2012
Upload a file to the server in your Android app.read more »
PYTHON LIBRARY XML.DOM.MINIDOM HOWTO (1) May 24, 2012 (Updated: February 01, 2017)Python XML
/HTML
manipulation primer ofxml.dom.minidom
read more »
PYTHON LIBRARY XML.DOM.MINIDOM HOWTO (2) May 24, 2012 (Updated: February 01, 2017)Python XML
/HTML
manipulation primer ofxml.dom.minidom
read more »
PYTHON LIBRARY XML.DOM.MINIDOM HOWTO (3) May 24, 2012 (Updated: February 01, 2017)Python XML
/HTML
manipulation primer ofxml.dom.minidom
read more »
PYTHON LIBRARY XML.DOM.MINIDOM HOWTO (4) May 24, 2012 (Updated: February 01, 2017)Python XML
/HTML
manipulation primer ofxml.dom.minidom
read more »
PYTHON LIBRARY XML.DOM.MINIDOM HOWTO (5) May 24, 2012 (Updated: February 01, 2017)Python XML
/HTML
manipulation primer ofxml.dom.minidom
read more »
PYTHON LIBRARY XML.DOM.MINIDOM HOWTO (6) May 24, 2012 (Updated: February 01, 2017)Python XML
/HTML
manipulation primer ofxml.dom.minidom
read more »
SHOW ARGMAX/ARGMIN IN LATEX ON BLOGMay 24, 2012
Type the math symbol "argmin" and "argmax" in LaTeXread more »
PĀLI INPUT METHOD ON UBUNTU LINUXMay 23, 2012
Type romanized Pāli on your Ubuntu Linux.read more »
SHOW SOURCE CODE ON WEB May 21, 2012 (Updated: April 02, 2015) Show source code on your websiteread more »
SHOW MATH ON WEB
May 21, 2012
Show math symbols on the blog or website.read more »
Powered by Github Pages , Pelican, pyScss
.
Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0