Skip to content

Instantly share code, notes, and snippets.

@monty5811
monty5811 / todonotes.sublime-snippet
Created June 26, 2014 15:18
Sublime text snippet for inserting LaTeX todonotes.
<snippet>
<content><![CDATA[
\todo[${1:inline,}color=${2:orange}]{${3:todo}}
]]></content>
<tabTrigger>todo</tabTrigger>
<scope>text.tex.latex</scope>
</snippet>
#! /usr/bin/env
import datetime
import sys
import urllib2
import PyRSS2Gen
from lxml import etree
from slugify import slugify
@monty5811
monty5811 / hb_batch.py
Created October 3, 2014 16:06
Handbrake batch convert
import os
import subprocess
handbrakePath = ""
tmpFolder = ""
outputFolder = ""
if os.path.isdir(outputFolder):
pass
else:
@monty5811
monty5811 / filtering_component.jsx
Created March 4, 2016 08:36
React Higher Order Component to filter an array of objects
import React, { Component } from 'react';
function obj2str(obj) {
if (obj === null) {
return '';
}
const vals = Object.keys(obj).map(
key => {
let val = obj[key];
if (typeof(val) === 'object') {

Keybase proof

I hereby claim:

  • I am monty5811 on github.
  • I am monty5811 (https://keybase.io/monty5811) on keybase.
  • I have a public key whose fingerprint is CF81 DAB0 9859 59FE 10C0 6B6F 0487 EDCA 306E 2F13

To claim this, I am signing this object: