Brad Lucas

Programming, Clojure and other interests

Gist mode issue

July 2, 2017


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.

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 →


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.


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 →

Bump Version

June 29, 2017

A script to bump the version number in a pom.xml file.


# A script to bump the version number inside a pom.xml file

if [ -z "$1" ]
    echo ""
    echo "Bump version script for incrementing the version number in a project's pom.xml file."
    echo ""
    echo "Usage: bump-version 'version-string'"
    echo ""
    echo ""

echo $VER

# enure we have a value 
CMD="mvn versions:set -DnewVersion=$VER"
echo "Executing:"
echo $CMD

mvn versions:set -DnewVersion=$VER

echo "done"

Continue reading →

Diff Heroku Configs

June 28, 2017

Here is a script that was created to diff the configurations between two Heroku apps. This came about when configuring and testing a development and a production Heroku system. In this case you want to know how they differ.



CMD="diff <(heroku config --app $APP1) <(heroku config --app $APP2)"
echo $CMD

eval $CMD

Continue reading →