Save £10 on Shadow.tech Virtual Gaming PC

So you may have seen the Shadow Virtual Gaming PC on Channel5's The Gadget Show, this where i found about it.

Subsequently i opened an account and so far pretty impressed, it streams fairly smooth and once all setup i was playing within 10 - 15 mins.

The network speed on the VM is stupidly fast, my first game which was 55GB downloaded at roughly 50mb/s (roughly 500mbps), that is pretty fast!

The game ran smoothly on full settings, however as the game i was playing is a bit different than the usual (City Skylines) the graphics card isn't as important, all the work is done by the CPU.

The only thing i would say is that 12GB of RAM isn't much, and soon filled once some mods are added to the game.

If you want to give it a try then use my code below and save £10 off your first month.

AAR4MRRW

https://shop.shadow.tech/gben/invite/AAR4MRRW

Code highlighting the easy way

So after relaunching this site using Umbraco and the default Bootstrap 4 theme (blog) i realised there was no <code> highlighting included in bootstrap.

After some quick Googling i came across a very useful JavaScript library called highlight.js this library is able to auto match up to 176 languages and colour code them accordingly.

This seemed pretty nifty and much easier than codiing a ton of css myself.

To implement this you just need to add 3 very small lines into the <head> if the site:

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>

Then wrap your code with the following:

<pre><code>...</code></pre>

If the auto highlighting doesn't work or you would like to use a different style you can manually set it like so:

<pre><code class="html">...</code></pre>

Or if you would like to disable code highlighting altogether:

<pre><code class="nohighlight">...</code></pre>

This is just a real basic implementation of this JavaScript library, take a look over on the project website to see about custom initialization, downloading the library and creating a custom library.