Addshore

It's a blog

Tag: JavaScript

gitgraph.js and codepen.io for git visualization

I was looking for a new tool for easily visualizing git branches and workflows to try and visually show how Gerrit works (in terms of git basics) to clear up some confusions. I spent a short while reading stackoverflow, although most of the suggestions weren’t really any good as I didn’t want to visualize a real repository, but a fake set of hypothetical branches and commits.

I was suggested Graphviz by a friend, and quickly found webgraphviz.com which was going in the right direction, but this would require me to learn how to write DOT graph files.

Eventually I found gitgraph.js, which is a small JavaScript library for visualizing branching ‘things’, such as git, well, mainly git, hence the name and produce graphics such as the one below.

Continue reading

Browser extension showing blocked sites in searches

Blocked.org.uk LogoSo last night I took another look at the ever-increasing list of domains that are blocked, due to various court orders, by various ISPs in the UK.

A first look

My first port of call was Wikipedia which has an article titled ‘List of websites blocked in the United Kingdom‘. Now this list, although referenced, doesn’t really contain all domains that are blocked. Luckily the article does include various other links.

From the Wikipedia article I then found the wiki of 451unavailable.org.uk which lists all current UK blocking orders. There is a wiki page for each blocking order, for example UK/temp plixid which lists 17 sites. Again each of these pages contains lots of links, and the main set of links here are to check which ISPs are currently blocking the given domain.

This brings us to blocked.org.uk.

Continue reading

Coolest thing I have seen on CodePen so far

CodePen is a front end developer playground, It provides a HTML, CSS, and JavaScript code editor in your browser with instant previews of the code you see and write.

Below is by far the coolest thing I have found to date (even though it takes a little while)

Continue reading

Github release download count – Chrome Extension

The Github IconGitHub tracks the number of downloads for all assets (files) that are attached to a release, but GitHub currently makes it very hard for users to get at this information. The number of downloads is currently only accessible through the API.

I noticed this many months ago when wondering how many people were downloading the new C++ version of Huggle. At the time I started coming up with some odd little script that I could set running somewhere checking the download counts and updating a static list, I even thought about just uploading the build files to some other site that tracked this information.

A few days ago I took my first look at developing chrome extensions for a referencing tool for Wikidata, and thus today I thought, why not just make an extension for chrome that adds the download counts to the GitHub releases page!

Continue reading

© 2018 Addshore

Theme by Anders NorenUp ↑