Skip to content

Instantly share code, notes, and snippets.

KSTseng kstseng

Block or report user

Report or block kstseng

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View load_credential.R
##
## R sample code for loading credential
##
library(configr)
config = read.config(file = '~/.config/credential')
## section_a
username_a = config$section_a$username
password_a = config$section_a$password
View load_credential.py
'''
python sample code for loading credential
'''
import configparser
config = configparser.ConfigParser()
config.read('~/.config/credential')
## section_a
View credential_example
[section_a]
username=abc
password=123
[section_b]
username=def
password=456
You can’t perform that action at this time.