Skip to content

Instantly share code, notes, and snippets.

View lee-dohm's full-sized avatar
😴
Taking some well-deserved naps

Lee Dohm lee-dohm

😴
Taking some well-deserved naps
View GitHub Profile
@lee-dohm
lee-dohm / styles.less
Created January 7, 2017 01:50
Atom Style Tweak - Disable the close icon on tabs
.tab .close-icon {
display: none;
}
@lee-dohm
lee-dohm / styles.less
Created January 7, 2017 01:48
Atom Style Tweak - Set the font size larger only in the active pane
.pane.active {
atom-text-editor {
font-size: 20px;
}
}
@lee-dohm
lee-dohm / styles.less
Created January 7, 2017 01:38
Atom Style Tweak - "Fixed" width gutter
// Make the line number portion of the gutter a larger minimum width so that the gutter doesn't
// grow and shrink on tiny files
atom-text-editor::shadow .gutter .line-number {
min-width: 100px;
}
@lee-dohm
lee-dohm / styles.less
Last active January 7, 2017 01:39
Atom Style Tweak - Change cursor to an underline
// Change the cursor to an underline
atom-text-editor::shadow .cursor, atom-text-editor .cursor {
border-left: none;
border-bottom: 2px solid #526fff;
}
@lee-dohm
lee-dohm / uri.js
Created January 1, 2017 20:10 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@lee-dohm
lee-dohm / debug.md
Created December 18, 2016 20:46
Atom-Beautify debugging information
#!/usr/bin/perl
# This filter changes all words to Title Caps, and attempts to be clever
# about *un*capitalizing small words like a/an/the in the input.
#
# The list of "small words" which are not capped comes from
# the New York Times Manual of Style, plus 'vs' and 'v'.
#
# 10 May 2008
# Original version by John Gruber:

Keybase proof

I hereby claim:

  • I am lee-dohm on github.
  • I am leedohm (https://keybase.io/leedohm) on keybase.
  • I have a public key ASBwGdqJ3h8yZpUuj7xMjFxk3zSn4Aws6awuHcT7baEKwwo

To claim this, I am signing this object:

@lee-dohm
lee-dohm / example.md
Last active October 27, 2016 06:56 — forked from ericclemmons/example.md
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot of noisy logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 <summary>Summary Goes Here</summary>
@lee-dohm
lee-dohm / styles.less
Last active March 31, 2016 02:02
Making the Atom tab close button bigger
// Add this to your `styles.less`
// Open the Command Palette and search for "Open Your Stylesheet"
.tab-bar {
font-size: 15px;
}