Skip to content

Instantly share code, notes, and snippets.

View jandix's full-sized avatar

Jan jandix

View GitHub Profile
@jandix
jandix / index.css
Created December 21, 2019 18:26
three.js
‎‎​
@jandix
jandix / ssh-key.md
Last active July 22, 2019 06:40
Add ssh-key to git provider

Create new ssh key

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Open .ssh/config

Host github

Keybase proof

I hereby claim:

  • I am jandix on github.
  • I am tollpatsch (https://keybase.io/tollpatsch) on keybase.
  • I have a public key ASDdoZQK9BhK5eleTM8hbbCdFg9wUokj3ux8sJ8ovToDIwo

To claim this, I am signing this object:

@jandix
jandix / run.R
Created May 6, 2019 11:47
The base file to start a plumber service.
# load router
r <- plumber::plumb("./router.R")
# start application
r$run(host="0.0.0.0",
port = 9090,
swagger = FALSE)
@jandix
jandix / nodemon.json
Last active May 6, 2019 11:42
A configuration file to setup nodemon to start a plumber API.
{
"signal": "SIGHUP",
"verbose": true,
"execMap": {
"R": "Rscript"
}
}
@jandix
jandix / users.R
Created April 3, 2019 08:59
Define users
# define a user database
users <- data.frame(id = integer(),
name = character(),
password = character(),
stringsAsFactors = FALSE)
# create test users
users <- rbind(users, data.frame(id = 1,
user = "jane@example.com",
password = bcrypt::hashpw("12345"),