Skip to content

Instantly share code, notes, and snippets.

View keybase.md

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:

@monty5811
monty5811 / filtering_component.jsx
Created Mar 4, 2016
React Higher Order Component to filter an array of objects
View filtering_component.jsx
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') {
@monty5811
monty5811 / hb_batch.py
Created Oct 3, 2014
Handbrake batch convert
View hb_batch.py
import os
import subprocess
handbrakePath = ""
tmpFolder = ""
outputFolder = ""
if os.path.isdir(outputFolder):
pass
else:
View itunesu2rss.py
#! /usr/bin/env
import datetime
import sys
import urllib2
import PyRSS2Gen
from lxml import etree
from slugify import slugify
@monty5811
monty5811 / todonotes.sublime-snippet
Created Jun 26, 2014
Sublime text snippet for inserting LaTeX todonotes.
View todonotes.sublime-snippet
<snippet>
<content><![CDATA[
\todo[${1:inline,}color=${2:orange}]{${3:todo}}
]]></content>
<tabTrigger>todo</tabTrigger>
<scope>text.tex.latex</scope>
</snippet>
You can’t perform that action at this time.