Skip to content

Instantly share code, notes, and snippets.

View mowen's full-sized avatar

Martin Owen mowen

View GitHub Profile
(defun org-pomodoro-refile (refile-heading)
"Move the heading at point to the heading specified."
(let ((match-found nil)
(paste-location (point)))
(save-excursion
(goto-char (point-min))
(if (re-search-forward refile-heading nil t)
(progn
(backward-char)
(setq match-found t
@mowen
mowen / gist:5416352
Last active December 16, 2015 09:58
// ==UserScript==
// @name YouTube Prank
// @namespace http://patnoddle.com/
// @version 0.1
// @description Make changes to YouTube content.
// @match *://*youtube*/*
// @copyright 2013+, Pat Noddle
// @require http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>jQuery Prototype</title>
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.2.custom.css" rel="stylesheet" />
<script type="text/javascript" language="javascript" src="jquery-ui-1.8.2.custom/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" language="javascript" src="jquery-ui-1.8.2.custom/js/jquery-ui-1.8.2.custom.min.js"></script>
<script type="text/javascript" language="javascript" src="nassi-shneiderman.js"></script>
<style type="text/css">
.block { border: 1px solid #000; text-align: center; }
@mowen
mowen / autoexec.cfg
Last active March 31, 2018 13:15
CS:GO Autoexec
m_rawinput "1" // Raw Input on
m_customaccel "0" // Mouse Acceleration off
m_customaccel_exponent "0" // Acceleration Amount
m_mousespeed "0" // Windows mouse acceleration off
m_mouseaccel1 "0" // Windows mouse acceleration initial threshold (2x movement)
m_mouseaccel2 "0" // Windows mouse acceleration secondary threshold (4x movement)
sensitivity "2.2"
zoom_sensitivity_ratio_mouse "1.0"
cl_crosshaircolor "1"
@mowen
mowen / org-style.css
Created March 9, 2010 12:19
A stylesheet for the Emacs Org Mode HTML export
/**
* This stylesheet will work pretty well with a regular Org Mode HTML export.
* However, you do have to turn off all of the defaults:
*
* (setq org-export-html-style-include-scripts nil
* org-export-html-style-include-default nil)
*
* and insert a call to the stylesheet:
*
* (setq org-export-html-style