mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57:46 +00:00
Port before_v0.60/cool_oneliners
folder (#831)
This PR is part of porting all old scripts #221 and ports `cool_oneliners` folder ## Summary ### dict.nu This script has already been ported to `sourced/cool_oneliners/dict.nu` in28c7e097db
```yaml from: before_v0.60/cool_oneliners/dict.nu to: sourced/cool-oneliners/dict.nu functions: dict: sourced/cool-oneliners/dict.nu:2:dict ``` ### file_cat.nu has already been ported to `sourced/cool_oneliners/file_cat.nu` inc47ccd42b8
```yaml from: before_v0.60/cool_oneliners/file_cat.nu to: sourced/cool-oneliners/file_cat.nu ``` ### filesize.nu ```yaml from: before_v0.60/cool_oneliners/filesize.nu to: sourced/cool-oneliners/filesize.nu ``` ### js_map_to_markdown.nu ```yaml from: before_v0.60/cool_oneliners/js_map_to_markdown.nu to: sourced/cool-oneliners/js_map_to_markdown.nu ``` I created `sourced/cool-oneliners/assets/js_map.json` with the data for this script as it was before ### cdpath-implementation.nu ```yaml from: before_v0.60/cool_oneliners/cdpath-implementation.nu to: sourced/cool-oneliners/cdpath-implementation.nu functions: c: sourced/cool-oneliners/cdpath-implementation.nu:18:c ``` ### parse_aws_s3_ls.nu I don't have aws so I just ported the syntax ```yaml from: before_v0.60/cool_oneliners/parse_aws_s3_ls.nu to: null ``` Edit: I considered not porting this script yet because I can't test it for now ### npm_update_versions.nu ```yaml from: before_v0.60/cool_oneliners/npm_update_versions.nu to: sourced/cool-oneliners/npm_update_versions.nu ``` ### xml_search_schema.nu ```yaml from: before_v0.60/cool_oneliners/xml_search_schema.nu to: sourced/cool-oneliners/xml_search_schema.nu ```
This commit is contained in:
parent
f1b0432ad9
commit
b40ead9ae2
13 changed files with 61 additions and 66 deletions
6
sourced/cool-oneliners/xml_search_schema.nu
Normal file
6
sourced/cool-oneliners/xml_search_schema.nu
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Search the WordprocessingML XML Schema definition file for a simple type by name
|
||||
# You'll need the wml.xsd file.
|
||||
# To get that file, first download the following zip:
|
||||
# https://www.ecma-international.org/wp-content/uploads/ECMA-376-Fifth-Edition-Part-1-Fundamentals-And-Markup-Language-Reference.zip
|
||||
# Then, unzip the contents of OfficeOpenXML-XMLSchema-Strict.zip.
|
||||
open wml.xsd | from xml | get content | where tag == simpleType | flatten | where name =~ BrType | get content.content.0.attributes
|
Loading…
Add table
Add a link
Reference in a new issue