Skip to content

Instantly share code, notes, and snippets.

@davejm
davejm / latex-short-captions.lua
Created April 26, 2018 12:08 — forked from tarleb/latex-short-captions.lua
Filter to turn figure titles into short captions in LaTeX
-- don't do anything unless we target latex
if FORMAT ~= "latex" then
return {}
end
local List = require'pandoc.List'
local function latex(str)
return List:new{pandoc.RawInline('latex', str)}
end
@davejm
davejm / twitter_favourite_deleter.py
Last active March 21, 2018 19:12
This script will unfavourite all of the tweets you have favourited (liked)
# This script will unfavourite all of the tweets you have favourited (liked).
# Install tweepy with pip install tweepy or pip3 install tweepy for python3
# Create a Twitter app at https://apps.twitter.com/. Give it read and write permissions. Click on the app and go to Keys and Access tokens to find the credentials.
import tweepy
consumer_key = ""
consumer_secret = ""
access_token = ""
@davejm
davejm / README.md
Created January 18, 2018 23:25 — forked from toddq/README.md
@davejm
davejm / README.md
Last active February 2, 2017 10:26 — forked from jasondavies/README.md
World Countries