Skip to content

Instantly share code, notes, and snippets.

@roycoding
roycoding / Readme.md
Created November 20, 2022 17:20
A (crappy) Markua 0.10 to LaTeX conversion script

A (crappy) Markua 0.10 to LaTeX conversion script

This gist has a Python script I created to convert my book, Zefs Guide to Deep Learning from Markua 0.10 in LaTeX. It works, but maybe not for you. But maybe if you mess with it, it can suit your needs.

I wrote my book in Leanpub's Markua 0.10 markup language and am publishing the ebook there, but I decided that I wanted to publish a paperback in a smaller size via Amazon's Kindle Direct Publishing. Unfortunately, none of the smaller print sizes that Leanpub supports are the same as the smaller print sizes that KDP will print, so in order to create a "pocket-sized" book, I needed to generate my own PDF file.

The most recommended way to do this is via pandoc. Unfortunately, pandoc does not support converting from Markua to LaTeX (although they supposedly support the other direction). While pandoc does support markdown to LaTeX, I found that there were

@roycoding
roycoding / Neural_net_warping_tutorial.ipynb
Last active April 19, 2024 18:25
Feature space warping by neural networks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@roycoding
roycoding / hiring.md
Created August 10, 2021 02:10
What's hard about hiring data roles

What's hard about hiring data roles

Roy Keyes

9 Aug 2021 - This is a post on my blog. Get the RSS feed!

children-fishing.jpg

Hiring is hard and data hiring has special challenges

@roycoding
roycoding / book.md
Last active July 13, 2021 16:37
I wrote a book

I wrote a book

Roy Keyes

14 July 2021 - This is a post on my blog. Get the RSS feed!

I never really set out to write a book.

I wrote a book. A book about hiring. You can buy it at dshiring.com.

@roycoding
roycoding / dog.md
Last active July 23, 2020 05:32
Notifications with Keybase: You get a puppy!

Notifications with Keybase: You get a puppy!

Roy Keyes

22 July 2020 - This is a post on my blog. Grab the RSS feed here 😉

Recently one of my relatives really wanted a dog. Not just any dog, but a specific puppy at an animal shelter in town. The problem was that the dog was not yet available for adoption, as the shelter was still waiting some amount of time in the event that the dog's owner would claim it. That basically meant we could call the shelter to check the status or keep checking the shelter's website.

Are you lazy enough to get a dog?

@roycoding
roycoding / rss.md
Created May 21, 2020 20:10
It's 2020 and I made an RSS feed for my blog (with Python)

It's 2020 and I made an RSS feed for my blog (with Python)

Roy Keyes

21 May 2020 - This is a post on my blog. Grab the RSS feed here 😉

I was recently telling someone about all of the awesome blog posts I have sitting in my backlog, just waiting to actually be written. They asked if there was a way to subscribe or get notified when my next post was live. The answer was "watch my Twitter", which was admittedly unsatisfactory.

Coincidentally I have been seeing a number of recent articles on the desire for more independent blog content and a return to RSS-based syndication. I think this is all part of a broader push for a (return to a?) m

@roycoding
roycoding / Transfer_learning.ipynb
Created March 14, 2018 04:05
Transfer learning example (fast.ai Dogs vs Cats image classifier) on Google Colab
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@roycoding
roycoding / Fastai_Colab_GPU_test.ipynb
Last active January 23, 2018 22:27
fast.ai on Google Colaboratory with GPU test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@roycoding
roycoding / sandwich.py
Created October 5, 2017 20:46
Pandas sandwich: show first and last n lines of dataframe
def sandwich(df, rows=3):
'''
Display n rows of head and tail of dataframe.
Input:
df - dataframe of interest
rows - integer number of rows from each end of dataframe to display
Output:
dataframe

Keybase proof

I hereby claim:

  • I am roycoding on github.
  • I am roycoding (https://keybase.io/roycoding) on keybase.
  • I have a public key ASCG1vUl8yOBMIxO_ZbxVQMM_o4o82YhmpLQ7lhGZiqtHAo

To claim this, I am signing this object: