# installed by winget
winget install PowerShell-Preview
winget install git
git config --global user.name "Christophe Dervieux"
git config --global user.email christophe.dervieux@gmail.com
winget install rstudio
winget install vscode
winget install -e R
winget install Github.GithubDesktop
#! /bin/bash | |
# Using gh cli | |
# check tool requirement | |
if [[ -z $(command -v gh) ]] | |
then | |
echo "Github CLI tool (gh) needs to be installed. See https://cli.github.com/" | |
exit 1 | |
fi |
# This function, Copy-BetweenWslInstance, is designed to facilitate the copying of files between different WSL distributions. | |
# It requires the source and destination distributions, folders, and users as parameters. | |
# If the destination folder or user is not specified, the function will default to using the source folder or user. | |
# The function employs the wslpath utility to convert the paths into a format that is compatible with WSL. | |
# Finally, it utilizes the Copy-Item cmdlet to execute the file copying process. | |
function Copy-BetweenWslInstance { | |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$sourceDistribution, | |
[Parameter(Mandatory=$true)] |
# --- Setup so tools from github release ---------- | |
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine | |
# --- Tools ----- | |
function Get-GithubLatestRelease { | |
param ( | |
[parameter(Mandatory)][string]$project, # e.g. paintdotnet/release | |
[parameter(Mandatory)][string]$pattern, # regex. e.g. install.x64.zip | |
[switch]$prerelease |
#! /bin/bash | |
# Using gh cli | |
gh --repo jgm/pandoc release download --pattern '*amd64.deb' | |
sudo dpkg -i $(ls pandoc-*.deb) | |
rm $(ls pandoc-*.deb) |
Copyright 2023 Christophe Dervieux
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR TH
import { readLines } from "https://deno.land/std@0.196.0/io/read_lines.ts"; | |
const f= await Deno.open('tests/timing-for-ci.txt'); | |
let counter = 0 | |
const timedTests = []; | |
const timed = []; | |
let test: string; | |
let time: string; |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
<head></head> | |
<body> | |
<div id="plotly"> | |
<script type="application/json" data-for="htmlwidget-5fa2f8dac72d5da20b9f">{"x":{"data":[{"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103 |