Brad Lucas

Programming, Clojure and other interests

Tokenwatch (Part 2)

July 4, 2017

Once part 1 of TokenWatch was done the next step appeared when you saw all the details on each entries interior page. There I was most interested in the links to the Whitepapers so I could collect them and read through them more easily as a group.

For this part of the project I created another script tokenwatch_details.py which extends the previous tokenwatch.py script.

Code

To start I'll be getting the dataframe from the tokenwatch.py script sorted by NAME.

Continue reading →

Tokenwatch (Part 1)

July 3, 2017

Continuing with my research into tokens and blockchain assets I found another site called TokenMarket.net. This site includes ICOs which are running as well as upcoming campaigns.

In a similar fashion as previous post (http://blog.bradlucas.com/posts/2017-07-01-coin-market-cap/) I decided to scrape the site so I could group the entries by status more easily. The result of this is a Python script called tokenwatch.py.

The following are some highlights to get the script working.

Table Data

Continue reading →

Gist mode issue

July 2, 2017

Headline

Recently, I recommended using gist.el to work with your Gists on GitHub. I found an issue with gist.el in the version installed here.

I was having trouble editing the description of the gists with the e command.

e               gist-edit-current-description

The error that was returned was:

Continue reading →

Coin Market Cap

July 1, 2017

There is a useful page called CryptoCurrency Market Capitalizations for viewing the current state of the crytocurency markets.

https://coinmarketcap.com/assets/views/all/

The site shows all currencies runing today on a number of platforms. I'm interested in the ones running on Ethereum which have a Market Cap. Since, the site doesn't have this specific filtering capability I thought it would make a good project to grab the data from the page and filter it the way I'd like.

To do this I decided to investigate Pandas and it's read_html function for pulling data in from html tables.

Continue reading →

Devnull

June 30, 2017

For testing it is sometimes of interest to have a web service which returns OK for anything that is passed to it much like the null device in Unix. In Unix you can open open the /dev/null device and write to it. It is an empty file that accepts all data written to it without storing the data.

For a web service to act in a similar fashion it would run and accept anything passed as a parameter in urls passed to it.

Clojure

How could such an application be built in Clojure? One way would be to use HTTP Kit and have it return OK for anything that is passed to it.

Continue reading →