Skip to content

Instantly share code, notes, and snippets.

@JodiTheTigger
JodiTheTigger / CsvToHtml5Table.php
Last active December 16, 2015 06:39
CsvToHtml5Table converts a csv file to a html5 based table. It has options to ignore columns and treat values in columns as picture sources or links (http and email).
<!DOCTYPE html>
<?php
/*
CsvToHtml5Table - Coverts a CSV file to a HTML5 table
Copyright (C) 2013 Richard Maxwell
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
@JodiTheTigger
JodiTheTigger / sqlTablesToCsClasses.py
Last active December 16, 2015 18:49
sqlTablesToCsClasses.py converts the result of a table creation sql text dump, into sqlite-net CSharp classes.
#!/usr/bin/python2
"""
sqlTablesToCsClasses.py Turns sql table creation text dumps into sqlite-net CSharp classes.
Copyright (C) 2013 Richard Maxwell <[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@JodiTheTigger
JodiTheTigger / gdbBacktraceToJson.py
Created January 14, 2014 01:52
gdbBacktraceToJson.py parses the output of the command "thread apply all bt full" and turns it into a json array. Useful for automating the analysis of coredump files generated when an application crashes. Use the tokenised json to search a database of crashes for similar crashes or make a nice web interface for viewing back traces. You could ma…
#!/usr/bin/python2
#
# gdbBacktraceToJson.py. Parses gdb backtraces into json.
# Copyright (C) 2014 Richard Maxwell <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@JodiTheTigger
JodiTheTigger / MatrixTransformsForGraphicsProgramming.md
Last active December 29, 2019 12:15
Instructions on using matrix maths to do rotations, translations, multiplications, deriving the view matrix and forming the projection matrix for graphics programming.

Matrix transforms for graphics programming

By Richard Maxwell

Why?

I wrote this because all the OpenGL and DirectX tutorials on the net and stackoverflow are all confusing and needlessly complicated. Conflating row and column matrices with matrix storage in computer memory, pre and post multiplication, right hand and left hand coordinates, and unexplained mathematical shortcuts and reader assumptions. It means it's hard to get anything right first time. So I wrote this document while I figured it all out myself, so that I could have a reference for myself later.

Keybase proof

I hereby claim:

  • I am jodithetigger on github.
  • I am jodithetigger (https://keybase.io/jodithetigger) on keybase.
  • I have a public key ASA8y3rJwKtB3v-k45FDl_fTpMeVeQmW7WcKKWIRtuP1qAo

To claim this, I am signing this object:

@JodiTheTigger
JodiTheTigger / jodis_programming_guidelines.md
Last active May 4, 2018 03:48
This is my brain dump of tweetable advice for better programming.

Richard's Thoughts on Coding

By Richard 'Jodi' Maxwell 2018-04-05

  • You are a writer, not a programmer.

  • Your code is read by:

    • People
  • Tools