Skip to content

Instantly share code, notes, and snippets.

View docsteveharris's full-sized avatar
💭
I may be slow to respond.

Steve Harris docsteveharris

💭
I may be slow to respond.
View GitHub Profile
@docsteveharris
docsteveharris / main.js
Created June 7, 2014 21:16
FoldingText keybindings to focus in or out by a level
// Log
// ===
// 140607 - cloned from demo keybindings.ftplugin
define(function(require, exports, module) {
'use strict';
var Extensions = require('ft/core/extensions').Extensions;
Extensions.addInit(function (editor) {
@docsteveharris
docsteveharris / fix_slope_graph_labels.do
Created April 2, 2013 15:42
overlapping labels in slope graphs in stata
// try and handle labels over-writing by altering the label position
// pos_gap is a variable that controls how close two labels must be before the position is changed
// it can only handle a series of 3 overlapping labels
// the first is assigned up a clock position
// the second is assigned down a clock positon
local pos_gap 0.1
bys this_icode (percent): replace pos = pos + 1 ///
if abs(percent[_n] - percent[_n+1]) < `pos_gap' ///
& pos[_n] == pos[_n+1]
bys this_icode (percent): replace pos = pos - 1 ///
@docsteveharris
docsteveharris / Solarized (Dark).tmTheme
Created August 16, 2012 21:55 — forked from eleclerc/Solarized (Dark).tmTheme
Solarized theme (dark & light) with markdown support for Sublime Text 2 editor
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Solarized (dark)</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>