This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| LiquidCrystal Library - Custom Characters | |
| Demonstrates how to add custom characters on an LCD display. | |
| The LiquidCrystal library works with all LCD displays that are | |
| compatible with the Hitachi HD44780 driver. There are many of | |
| them out there, and you can usually tell them by the 16-pin interface. | |
| This sketch prints "I <heart> Arduino!" and a little dancing man | |
| to the LCD. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function reloadCSS() { | |
| const links = document.getElementsByTagName('link'); | |
| Array.from(links) | |
| .filter(link => link.rel.toLowerCase() === 'stylesheet' && link.href) | |
| .forEach(link => { | |
| const url = new URL(link.href, location.href); | |
| url.searchParams.set('forceReload', Date.now()); | |
| link.href = url.href; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function convertTableToCsv(tableSelector) { | |
| return _.map($(tableSelector + ' tr'), function(row) { | |
| return _.map($(row).find('th, td'), function(datum) { | |
| return datum.textContent.replace(/,/g, ''); | |
| }).join(','); | |
| }).join('\n'); | |
| } | |
| // to download | |
| var data = convertTableToCsv('#mytable'); |