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
| # For usage instructions scroll down | |
| function Show-SelectizeDialog { | |
| [CmdletBinding()] | |
| param( | |
| [Parameter(Mandatory)] | |
| [AllowEmptyCollection()] | |
| [object[]] $Items, | |
| [string] $DisplayProperty, |
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
| Sub CallPlumberAPI() | |
| Dim SERVER_URL As String | |
| Dim xmlhttp As Object | |
| Dim ws As Worksheet | |
| Dim inputRange As Range, dataRange As Range, outputRange As Range | |
| Dim cellAddress As String, rCode As String, outputAddress As String | |
| Dim i As Long, j As Long | |
| Dim tsvData As String, processedData As String | |
| Dim outputData() As String, outputRow() As String | |
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
| // Usage example: | |
| // • Either the parameter is Eurostat's "online data code": | |
| // insheet_eurostat ilc_di11i | |
| // • or the parameter is the custom URL generated with Eurostat GUI top right corner: | |
| // go to e.g. https://ec.europa.eu/eurostat/databrowser/view/ilc_di11i/default/table?lang=en and | |
| // do your selections by clicking the [⤓] Download button > selecting File format = "Tab separated values (.tsv)" and | |
| // Data scope = "Only displayed dimensions" and unticking "Compress file (.gzip)" > clicking the [Copy API link ⧉] button | |
| // insheet_eurostat "https://ec.europa.eu/eurostat/api/dissemination/sdmx/3.0/data/dataflow/ESTAT/ilc_di11i/1.0/*.*.*?c[freq]=A&c[unit]=RAT&c[geo]=EU27_2020,EA20,BE,BG,CZ,DK,DE,EE,IE,EL,ES,FR&c[TIME_PERIOD]=2019,2020,2021,2022,2023,2024,2025&compress=false&format=tsv" | |
| // To use it like other commands, put it in your "personal" folder/directory | |
| // (see: https://www.stata.com/support/faqs/programming/personal-ado-directory/ and https://www.stata.com/help.cgi?personal). |
See also https://github.com/alekrutkowski/ExcelLambdaTools
Convert 1-column range monthly dates in the format yyyy-mm, e.g. 2023-11, to 2-column range:
- 1st column: year number if it's January, otherwise empty
- 2nd column: the 3-character month code, e.g. "Nov"
=LAMBDA(rng,
LET(
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
| ############### | |
| ##################################### | |
| ################################################## | |
| ######################################################## | |
| ############################ ############### | |
| ##################### ########## | |
| ################### ####### | |
| ################# ################################### ###### | |
| ################# ###################################### ##### | |
| ############### ####################################### ##### |
- Chrome: https://webkul.com/blog/how-to-install-the-unpacked-extension-in-chrome/
- Edge: https://learn.microsoft.com/en-us/microsoft-edge/extensions/getting-started/extension-sideloading
Click the extension button to translate text inside paragraphs, headings (h1–h6), and list items into the language defined in MY_LANG while preserving inline markup and links.
Made with ChatGPT 5 (after a few iterations).
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
| #### Prerequisites -- in Linux terminal: | |
| # Once: | |
| # pipx install libretranslate | |
| # Run in the background: | |
| # libretranslate | |
| #### Test: | |
| # Open the following page in a web browser | |
| # (but first modify your.shiny-server.domain and your_translate_app_name): | |
| # https://your.shiny-server.domain/your_translate_app_name/?url=https://example.com/&from=en&to=fr |
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
| # Save it as /srv/shiny-server/your_app_name/app.R | |
| library(shiny) | |
| ui <- function(request) { | |
| query <- parseQueryString(request$QUERY_STRING) | |
| txt <- query$txt | |
| a <- as.numeric(query$a) | |
| b <- as.numeric(query$b) |
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
| # Shiny app that serves a transformed RSS feed immediately at "/". | |
| # It fetches the source RSS on every request, appends a single space to the end | |
| # of each line, and returns it with the correct RSS content type so feed readers | |
| # can subscribe directly. | |
| # This particular app fixes the annoying problem in Inoreader, which concatenates | |
| # the words in the descriptions of new R packages. | |
| library(shiny) |
NewerOlder