Click anywhere to close

Html Code Blocks

In an attempt to make this site look prettier I have added HTML code blocks. The library that I am using to do this is called highlight_js-rails. It was easily added to my rails project by just adding gem 'highlight_js-rails' to my Gemfile. Here is an example of it in action:

int main() {
  printf("Hello World\n");

This is my application.css:
*= require_self
 *= require highlight_js/monokai

And my application.js:

//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require highlight_js/highlight
//= require highlight_js/languages/ruby
//= require highlight_js/languages/cpp
//= require highlight_js/languages/python
//= require highlight_js/languages/javascript

Recent Posts

How to design a motherboard for your electronics project - Part 1 Designing a motherboard for your project is a great second step when developing an electronics project. This is the guide I wish existed when I got started doing this.
Categories:  Projects
Posted: February 21, 2021
Caffstat Beta Caffstat is the first Hackable Home Thermostat
Categories:  Projects
Posted: February 20, 2021
v2 Updates to my HomeKit Thermostat Making my thermostat project into something I can actually use every day
Categories:  Projects
Posted: December 31, 2020
Building my own HomeKit Thermostat Holiday 2020 project, building a custom HomeKit enabled thermostat
Categories:  Projects
Posted: December 27, 2020
Unwritten Coding Standards: Vertical Whitespace Simple vertical whitespace rules that will make any code easier to read
Categories:  Coding, mike8
Posted: May 27, 2020