Skip to content

Instantly share code, notes, and snippets.

@crtahlin
crtahlin / GetCreditData.R
Last active August 29, 2015 14:04
Get Credit Data
# load the XML library
library(XML)
# function to get contract data from DUTB ####
getCreditData <- function(bank) {
if (bank=="NLB") {url <- "http://www.dutb.eu/si/o-nas/informacije-javnega-znacaja/pogodbe-nlb"}
if (bank=="NKBM") {url <- "http://www.dutb.eu/si/o-nas/informacije-javnega-znacaja/pogodbe-nkbm"}
html <- htmlTreeParse(url, useInternalNodes = TRUE)
@crtahlin
crtahlin / sillyOauth2.0connect.R
Created September 18, 2015 14:48
A naive way to authenticate via Oauth2.0 from R and get data from Fitbit.
# a simple Oauth2.0 connection with Fitbit API
install.packages("httr") # install if not installed
library("httr") # load package for http communication
# set client ID - REPLACE WITH YOURS INSIDE THE QUOTES!
clientID = "2296JS"
# construct string to put in GET request for authentication
oauthString <-
paste0("https://www.fitbit.com/oauth2/authorize?response_type=token",

Keybase proof

I hereby claim:

  • I am crtahlin on github.
  • I am crtahlin (https://keybase.io/crtahlin) on keybase.
  • I have a public key ASCJVGCUEUPzet9ebkqKMGY9rMvJTBiUgyYwR5RvKqoLAQo

To claim this, I am signing this object:

0x3729404ea3dd60a96959088941f93284ef2eb9f3
@crtahlin
crtahlin / Mining an overlay and using it for Bee
Created June 19, 2023 19:47
Mining an overlay and using it for Bee
# Mining an overlay and using it for Bee
- The following is a brief step-by-step process of using tools to mine an overlay address in a specific Swarm neighborhood (e.g. less populated one) and using the generated keys with a Bee node. Staking step is left out (if you want to earn BZZ you have to also stake).
- Use swarm-tools to mine the address and generate keys
- Build swarm-tools-rs from source ...
- clone the repo with tool:
- https://github.com/rndlabs/swarm-tools-rs.git
- install cargo rust package manager, on Ubuntu
- `sudo apt install cargo`
- `cargo check` in the cloned folder, it seems to also download dependencies etc.