Skip to content

Instantly share code, notes, and snippets.

View LVG77's full-sized avatar

Lyubomir Georgiev LVG77

View GitHub Profile
@LVG77
LVG77 / remove_password_excel.R
Created May 6, 2018 22:14 — forked from markheckmann/remove_password_excel.R
Remove sheet's password protection in Excel
# remove sheet protection in Excel
# Sample file: https://www.dropbox.com/s/4ul0kowrscyr8cz/excel_protected.xlsx?dl=0
library(stringr)
library(zip)
# file with protected sheets
file <- "data/excel_protected.xlsx"
# file name and path after removing protection
@LVG77
LVG77 / List.RandomSelection.pq
Created March 20, 2018 19:55 — forked from tonmcg/List.RandomSelection.pq
M Language Data Processing Functions
let
List.RandomSelection = (sourceList as list) as text =>
let
Selection = sourceList{Number.RoundDown(Number.RandomBetween(0, List.Count(sourceList)))}
in
Selection,
DefineDocs = [
Documentation.Name = " List.RandomSelection",
Documentation.Description = " Randomly select a value from a list.",