aoctool : Advent of Code Downloader / Initializer - GitHub
文章推薦指數: 80 %
aoctool : Advent of Code Downloader / Initializer. The AOC tool is an opinionated and configurable utility for handling the repetitive parts of Advent of ...
Skiptocontent
{{message}}
coriolinus
/
aoctool
Public
Notifications
Fork
0
Star
0
Toolhandlinginitializationofayear'sAdventofCodepuzzles
0
stars
0
forks
Star
Notifications
Code
Issues
1
Pullrequests
0
Actions
Projects
0
Security
Insights
More
Code
Issues
Pullrequests
Actions
Projects
Security
Insights
coriolinus/aoctool
Thiscommitdoesnotbelongtoanybranchonthisrepository,andmaybelongtoaforkoutsideoftherepository.
master
Branches
Tags
Couldnotloadbranches
Nothingtoshow
{{refName}}
default
Couldnotloadtags
Nothingtoshow
{{refName}}
default
Atagalreadyexistswiththeprovidedbranchname.ManyGitcommandsacceptbothtagandbranchnames,socreatingthisbranchmaycauseunexpectedbehavior.Areyousureyouwanttocreatethisbranch?
1
branch
0
tags
Code
Clone
HTTPS
GitHubCLI
UseGitorcheckoutwithSVNusingthewebURL.
WorkfastwithourofficialCLI.
Learnmore.
OpenwithGitHubDesktop
DownloadZIP
LaunchingGitHubDesktop
Ifnothinghappens,downloadGitHubDesktopandtryagain.
LaunchingGitHubDesktop
Ifnothinghappens,downloadGitHubDesktopandtryagain.
LaunchingXcode
Ifnothinghappens,downloadXcodeandtryagain.
LaunchingVisualStudioCode
Yourcodespacewillopenonceready.
Therewasaproblempreparingyourcodespace,pleasetryagain.
Latestcommit
Gitstats
29
commits
Files
Permalink
Failedtoloadlatestcommitinformation.
Type
Name
Latestcommitmessage
Committime
day-template
src
.gitignore
Cargo.lock
Cargo.toml
README.md
Viewcode
aoctool:AdventofCodeDownloader/Initializer
Installation
Initialsetup
AnnualSetup
Per-daytemplating
SpecifyingtheTemplates
README.md
aoctool:AdventofCodeDownloader/Initializer
TheAOCtoolisanopinionatedandconfigurableutilityforhandlingtherepetitivepartsof
AdventofCodeinRust.
It'sintendedtosynergizenicelywithmyaoclibsupportlibrary,
butthereisnorequirementthatyourimplementationusethat.
Theactualworkflowforday1of2021mightlooklikethis:
$#Initializeanewworkspacefor2021
$aocinit-year--implementationadventofcode-2021&&cdadventofcode-2021
adventofcode-2021$#Setthesessionkey,acquiredfromthebrowser'scookies
adventofcode-2021$aocconfigset--session"$SESSION"
adventofcode-2021$#Initializeanewsub-cratecalledday01fromtemplates,anddownloadtheinputfile.
adventofcode-2021$aocinit
adventofcode-2021$#Fillintheday01/src/lib.rs:part1()functionbodyusingtheeditorofyourchoice.Then:
adventofcode-2021$cargorun-pday01
adventofcode-2021$#Fillintheday01/src/lib.rs:part2()functionbodyusingtheeditorofyourchoice.Then:
adventofcode-2021$cargorun-pday01----part2--no-part1
Foreachsubsequentday,theonlycommandrequiredisaocinit.
Installation
WindowsisonlysupportedviaWSL.
cargoinstall--git"https://github.com/coriolinus/aoctool.git"
Initialsetup
LogintotheAoCsitewithwhatevermethodyouprefer.Thenusethebrowser'sdevtoolstoinspect
thecookies.Youwanttheonecalledsession.Configurethistoolwithit,soitcandownloadthe
inputsforyou.
aocconfigset--session"$SESSION"
AnnualSetup
Ifdesired,initializeatop-levelworkspaceinthecurrentdirectorywith
aocinit-year
Thatsubcommandallowsforinlineconfigurationoftemplates,implementations,etconaper-year
basis.Toexplorethoseoptions:
aocinit-year--help
Thepathstotheday'stemplatefiles,totheimplementationdirectory,andtotheinputfilescan
allbeconfiguredonanannualbasis.Fordetails,see
aocconfigset--help
oredittheconfigurationdirectlywith
open"$(aocconfigpath)"
Per-daytemplating
aocinit
Withintheconfiguredyear(ifset)orinthecurrentdirectory,thiscommandwillcreateanew
sub-crateandaddittotheworkspace,aswellasdownloadingtheproblem'sinput.Inputsaresaved
toacanonicaldirectory.Thesub-cratewillbenamedforthedayinquestion,soitcanthenberun
like
cargorun-pday01----part2
SpecifyingtheTemplates
Bydefault,eachday'sexercisewillbeinitializedwiththetemplatesstoredhere.
However,thisbehaviorcanbecustomizedasdesired.Youcancustomizethedirectorywherethetemplatesarestoredwith
aocconfigset--day-templates
延伸文章資訊
- 1Interactive analysis of covariance (ANCOVA) - Bradley Monk
aoctool(x,y,group) fits a separate line to the column vectors, x and y, for each group defined by...
- 2matlab图像频谱分析代码_单因素协方差分析+aoctool+MATLAB ...
matlab图像频谱分析代码_单因素协方差分析+aoctool+MATLAB代码. weixin_39898733 于 2020-11-22 03:24:37 发布 174 收藏 ...
- 3MATLAB: Using aoctool for a 1-way ANCOVA (+plot)
MATLAB: Using aoctool for a 1-way ANCOVA (+plot). plotstatistics. I have two groups of subjects, ...
- 4aoctool - Interactive analysis of covariance - MathWorks
aoctool(x,y,group) fits a separate line to the column vectors, x and y , for each group defined b...
- 5Using the Statistics Toolbox (Statistics Toolbox)
The Statistics Toolbox has a small data set named carsmall with information about cars. It is a g...