Skip to content

Instantly share code, notes, and snippets.

@kamitchell
kamitchell / .vimrc
Created April 23, 2017 00:03
Man pages in Vim
" Put this in your .vimrc
" man pages
source $VIMRUNTIME/ftplugin/man.vim
" Don't let $MANPAGER get in the way
let $MANPAGER="cat"
@kamitchell
kamitchell / inline.enex
Last active August 29, 2015 14:11
Evermote removes margins from inline styles!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export3.dtd">
<en-export export-date="20141212T072052Z" application="Evernote" version="Evernote Mac 6.0.4 Beta 1 (451173)">
<note><title>inline</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">
<en-note>
<div style="color: #111;font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, Verdana, sans-serif;word-wrap: break-word">
<h1 style="color: #000;font-size: 2.2857em;line-height: 1.5em;">Heading 1</h1>
<p style="color: #111;font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, Verdana, sans-serif;word-wrap: break-word;font-size: 1.1429em;line-height: 1.3125em;">Paragraph</p>
<h2 style="color: #111;font-size: 1.7143em;line-height: 1.5em;">Heading 2</h2>
@kamitchell
kamitchell / 01.make
Created November 29, 2014 22:36
Neovim fails to build with Homebrew OS X 10.11.1
2014-11-29 16:32:12 -0600
make
CMAKE_BUILD_TYPE=RelWithDebInfo
CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/neovim/HEAD"
install
mkdir -p .deps/build/third-party
cd .deps/build/third-party && \
cmake -G 'Unix Makefiles' \
@kamitchell
kamitchell / My Notes.enex
Created November 21, 2014 02:40
Note that displays without spacing in Evernote 6.0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export3.dtd">
<en-export export-date="20141121T023227Z" application="Evernote" version="Evernote Mac 6.0 (451092)">
<note><title>Evernote spacing</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">
<en-note>
<div>
<p style="color: rgb(51, 51, 51); font-family: helvetica, arial, freesans, clean, sans-serif;">Evernote Spacing</p>
<h2 style="font-weight: 700; color: rgb(51, 51, 51); padding-bottom: 0.3em; font-size: 1.75em; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(238, 238, 238); font-family: helvetica, arial, freesans, clean, sans-serif;">Heading 2</h2>
<ul style="padding-left: 2em; color: rgb(51, 51, 51); font-family: helvetica, arial, freesans, clean, sans-serif;">
@kamitchell
kamitchell / gist:5477735
Created April 28, 2013 17:53
Example Nikola script generated by Buildout 2.1.0. Note that the __future__ import is stranded in the middle of the file.
#!/usr/bin/python
import sys
sys.path[0:0] = [
'/Users/kevin/src/nblog/eggs/Nikola-5.4.4-py2.7.egg',
'/Users/kevin/src/nblog/eggs/Markdown-2.3.1-py2.7.egg',
'/Users/kevin/src/nblog/eggs/configparser-3.3.0r2-py2.7.egg',
'/Users/kevin/src/nblog/eggs/pytz-2013b-py2.7.egg',
'/Users/kevin/src/nblog/eggs/PyRSS2Gen-1.1-py2.7.egg',
void main(int argc, char **argv)
{
return 0;
}
Process: steam [644]
Path: /Applications/Steam.app/Contents/MacOS/osx32/steam
Identifier: com.valvesoftware.steam
Version: ??? (1.0)
Code Type: X86 (Native)
Parent Process: bash [638]
Date/Time: 2010-05-13 01:08:33.667 -0500
OS Version: Mac OS X 10.6.3 (10D578)
Report Version: 6