Skip to content

Instantly share code, notes, and snippets.

Avatar

Patrick Schratz pat-s

View GitHub Profile
View gist:938d5642573107654e09c9884dd3bc28
fs::dir_create("inst/paramtest", recurse = TRUE)
writeLines('on:
push:
pull_request:
# for now, CRON jobs only run on the default branch of the repo (i.e. usually on master)
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "0 4 * * *"
name: Parameter Check
@pat-s
pat-s / example.R
Created Mar 17, 2020
init_mlr3learner_drat_deploy
View example.R
init_mlr3learner_drat_deploy("mlr3learners.mboost") # replace this with the actual learner name
@pat-s
pat-s / install-r-macOS.sh
Created Dec 14, 2019
Install R official on macOS
View install-r-macOS.sh
#! /bin/bash
R_VERSION=$1
wget https://mac.r-project.org/el-capitan/R-${R_VERSION}-branch/R-${R_VERSION}-branch-el-capitan-sa-x86_64.tar.gz
sudo tar fvxz R*.tar.gz -C /
rm R*.tar.gz
View gist:66b0e96d89a4ae3750d04e0e7fcc5651
/* -------------------------------------------------------
*
* !! This file was generated by xaringanthemer !!
*
* Changes made to this file directly will be overwritten
* if you used xaringanthemer in your xaringan slides Rmd
*
* Issues or likes?
* - https://github.com/gadenbuie/xaringanthemer
* - https://www.garrickadenbuie.com
@pat-s
pat-s / addins.json
Last active Mar 2, 2020
Apply RStudio Desktop Settings
View addins.json
{
"styler::style_active_file": "Ctrl+Y",
"addmins::insert_dashes": "Ctrl+8",
"xaringan::inf_mr": "Ctrl+M",
"drake::rs_addin_loadd": "Ctrl+K",
"browse::browse": "Ctrl+B"
}
View keybase.md

Keybase proof

I hereby claim: * I am pat-s on github. * I am pjs_2288 (https://keybase.io/pjs_2288) on keybase. * I have a public key ASB8cUKmxs09bvNSYJ2iOViLxrnW16qLshzeuq2Q0AA9Uwo To claim this, I am signing this object:

{   "body": {     "key": {       "eldest_kid": "01207c7142a6c6cd3d6ef352609da239588bc6b9d6d7aa8bb21cdebaad90d0003d530a",       "host": "keybase.io",       "kid": "01207c7142a6c6cd3d6ef352609da239588bc6b9d6d7aa8bb21cdebaad90d0003d530a",       "uid": "12e179864b07ae9c1b23ce0419e08f19",       "username": "pjs_2288"     },     "merkle_root": {       "ctime": 1571349533,       "hash": "3cde0ebb524780b292e1268998cfe41adfab25eeb860beb42ff66d939ec8f8d4f94084495db97fdb62cc1402c1ec370d757fc22017043acc2abc9ad7a75bc19a",       "hash_meta": "947b2df0b7b8a92e4dadae3cf08ec34596c7f5a41ccabb6ff1135ba71a6b68b2",       "seqno": 8204710     },     "service": {       "entropy": "KD5cShE51I0CqV15tlqxkby/",       "name": "github",       "username": "pat-s"     },     "type": "web_service_bin
View spack-build-out.txt
This file has been truncated, but you can view the full file.
==> Executing phase: 'autoreconf'
==> Executing phase: 'configure'
View reprex-multicore-issue
remotes::install_github("mlr-org/mlr@0c8185963f13303e143d634dc5bcd199edb01442")
library(mlr)
library(ParamHelpers)
library(parallelMap)
library(magrittr)
inner <- makeResampleDesc("CV", iters = 2)
outer <- makeResampleDesc("CV", iters = 4)
lrn_xgboost <- makeLearner(
View gist:6b2af28e59ee49534ecc0de888843a14
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'install',
1 verbose cli '--user',
1 verbose cli 'root',
1 verbose cli '-g',
1 verbose cli '--prefix',
1 verbose cli '/home/pjs/git/pkgbuilds/nodejs-decktape/pkg/nodejs-decktape/usr',
1 verbose cli 'decktape@2.8.9' ]
@pat-s
pat-s / create_new_server_user.sh
Created Aug 30, 2018
Creates a new server on a Unix server
View create_new_server_user.sh
$USER=simon
sudo mkdir /data/$USER
sudo adduser $USER
pwgen 13 1
sudo passwd $USER
sudo usermod -a -G data_users $USER