Coder Social home page Coder Social logo

chrisjmccormick / chrisjmccormick.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from poole/poole

2.0 3.0 3.0 25.41 MB

My machine learning blog, built on Poole

License: Other

HTML 60.01% CSS 1.92% MATLAB 25.56% Python 0.46% SCSS 12.05%

chrisjmccormick.github.io's Introduction

My blog, dedicated to Machine Learning tutorials, code, and insights.

Base Design

My blog is built on top of Poole. I took inspiration and a lot of direction from Joshua Lande and his blog post here.

Because my blog is my GitHub user page (and not just a project page), I worked from the master branch of Poole.

Page Links in Header

Following instructions in Joshua Lande's post, I modified the masthead of the 'default.html' layout and added his code for displaying links to the top level pages. Also, the list of top level pages is defined in _config.yml.

Google Analytics

Google Analytics is enabled by simply setting the variable analytics_id in _config.yml.

Time Zone

Initially, I didn't have a timezone set for the site. This actually caused a problem at one point, because the site builder generated my post with a different date than what I put in the post, after converting the time. This was fixed by setting the timezone: America/Los_Angeles in _config.yml.

Math & Equations

Adding support for equations with MathJax was a cinch. I just put the following line in _includes/head.html

<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

{% highlight html %}

<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

{% endhighlight %}

WordPress Migration

Since I work in Python, I used the exitwp tool to convert all of my wordpress posts to Jekyll posts in markdown. Wordpress has an option for exporting your entire site as one big XML file, and exitwp is able to take this in and spit out all the images and posts.

One thing I had to consider was "categories". I wanted to setup redirects from my Wordpress site to my Jekyll one, and the Wordpress redirect feature isn't customizeable. The issue this created is that Jekyll uses categories as part of the URL, but Wordpress does not. I opted to simply strip the categories from my posts to simplify things.

Another issue I faced was with the timezones. The funny thing about timezones is that if there are any inconsistencies, it's possible that your blog post will end up published on a different calendar date because of the time difference. I had just this issue, and it caused some of my redirect links to break. I just had to go through the posts and fix the timezones using some find/replace all magic.

Lastly, all of my images in my wordpress site were specifically set in the URL to be displayed at 470px wide. I just used some find/replace all to strip out all instances of this.

Google Adsense

I put the Google Adsense code in _includes/advertising.html and then inserted in my _layouts/posts.html just above the comments.

It took a good day and a half or more before I saw any ads on my site. Until then, the Javascript Adsense Javascript was actually throwing an error! I could see the exception in the Chrome developer tools. Wish they handled that better--getting an exception on your code is unsettling!

chrisjmccormick.github.io's People

Contributors

chrisjmccormick avatar mdo avatar nickcdryan avatar cbarrick avatar smutek avatar tra avatar hnarayanan avatar dottorblaster avatar chaitanyakuber avatar cvrebert avatar dato avatar thebinarypenguin avatar juanitofatas avatar juliangrosshauser avatar matiassingers avatar mattr- avatar maurogestoso avatar nickmccurdy avatar indiv0 avatar jangid avatar resir014 avatar codegaze avatar holman avatar gyeben avatar mcclego avatar

Stargazers

Raspiani avatar MIRZA  avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.