Closed j-adel closed 3 months ago
In case someone would like to replicate the process for updating/editing, here's the PowerShell script:
$files = @(
@{filename="What-is.md"; title="What is…?"},
@{filename="Basics.md"; title="Basics"},
@{filename="Operators.md"; title="Operators"},
@{filename="The-shell-aka-REPL.md"; title="The shell a.k.a. REPL"},
@{filename="Standard-libraries.md"; title="Standard libraries"},
@{filename="Package-management.md"; title="Package management"},
@{filename="Characters-and-strings.md"; title="Characters and strings"},
@{filename="Numbers.md"; title="Numbers"},
@{filename="Random-Numbers.md"; title="Random Numbers"},
@{filename="Arrays.md"; title="Arrays"},
@{filename="Linear-Algebra.md"; title="Linear Algebra"},
@{filename="Control-flow-and-loops.md"; title="Control flow and loops"},
@{filename="Functions.md"; title="Functions"},
@{filename="Dictionaries.md"; title="Dictionaries"},
@{filename="Sets.md"; title="Sets"},
@{filename="Collection-functions.md"; title="Collection functions"},
@{filename="Types.md"; title="Types"},
@{filename="Missing-and-Nothing.md"; title="Missing and Nothing"},
@{filename="Exceptions.md"; title="Exceptions"},
@{filename="Modules.md"; title="Modules"},
@{filename="Expressions.md"; title="Expressions"},
@{filename="Macros.md"; title="Macros"},
@{filename="Parallel-Computing.md"; title="Parallel Computing"},
@{filename="IO.md"; title="I/O"},
@{filename="DataFrames.md"; title="DataFrames"},
@{filename="Introspection-and-reflection.md"; title="Introspection and reflection"},
@{filename="Noteworthy-packages-and-projects.md"; title="Noteworthy packages and projects"},
@{filename="Naming-Conventions.md"; title="Naming Conventions"},
@{filename="Performance-tips.md"; title="Performance tips"},
@{filename="IDEs-Editors-and-Plugins.md"; title="IDEs, Editors and Plug-ins"},
@{filename="Resources.md"; title="Resources"},
@{filename="Videos.md"; title="Videos"}
)
$outputFile = "MergedFile.md"
# Clear the output file if it exists
if (Test-Path $outputFile) {
Remove-Item $outputFile
}
foreach ($file in $files) {
$title = $file.title
$filename = $file.filename
Add-Content -Path $outputFile -Value "# $title`r`n"
Get-Content -Path $filename | Add-Content -Path $outputFile
Add-Content -Path $outputFile -Value "`r`n"
}
Collated the cheat sheet content into Markdown for people who'd like to copy it over to local notes. Any suggestions for modifications/improvements are welcome.