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 / README.md
Created April 21, 2017 20:37 — forked from raysegantii/README.md
Use bootstrap-sass npm package with Phoenix's brunch
  1. install npm packages
  2. update brunch-config.js
  3. rename web/static/css/app.css to web/static/css/app.scss
  4. update web/static/css/app.scss
@lee-dohm
lee-dohm / templates
Created March 22, 2017 16:18
Script to create a templates PR for a repo
#!/usr/bin/env ruby
require 'fileutils'
# Use: atom-templates [repo_name]
#
# 1. Clone the repository if it doesn't already exist; fetch `master` if it does
# 2. Clean up old `template-update` branch if it exists
# 3. Check out new branch `template-update` based on `origin/master`
# 4. Copy template files over
@lee-dohm
lee-dohm / test.js
Created February 2, 2017 17:11
Copy paste test
import '../support'
import CharacteristicsBlock from '../../src/hero/characteristics-block'
import HeroEnvironment from '../../src/renderer/hero-environment'
describe('CharacteristicsBlock', function () {
let block, heroEnv
beforeEach(function () {
heroEnv = new HeroEnvironment()
@lee-dohm
lee-dohm / styles.less
Created January 7, 2017 03:14
Atom Style Tweak - Highlight trailing whitespace except on the cursor line
atom-text-editor::shadow {
div.line:not(.cursor-line) {
.trailing-whitespace {
background-color: @background-color-error;
color: contrast(@background-color-error);
}
}
}
@lee-dohm
lee-dohm / styles.less
Created January 7, 2017 03:13
Atom Style Tweak - Make cursor pulse instead of blink
atom-text-editor, atom-text-editor::shadow {
.cursor {
transition: opacity 0.5s;
}
}
@lee-dohm
lee-dohm / styles.less
Created January 7, 2017 03:11
Atom Style Tweak - Unitalicize comments
atom-text-editor, atom-text-editor::shadow {
.comment {
font-style: normal;
}
}
@lee-dohm
lee-dohm / styles.less
Created January 7, 2017 03:11
Atom Style Tweak - Highlight the cursor line
atom-text-editor::shadow {
.cursor-line {
background-color: @background-color-highlight;
}
}
@lee-dohm
lee-dohm / styles.less
Created January 7, 2017 03:09
Atom Style Tweak - Add background shading behind spelling errors
atom-text-editor::shadow .misspelling {
background-color: @background-color-error;
opacity: 0.4;
border-radius: 6px;
border: none;
}
@lee-dohm
lee-dohm / styles.less
Created January 7, 2017 03:08
Atom Style Tweak - Prevent the cursor from blinking
atom-text-editor::shadow {
.cursors.blink-off .cursor {
opacity: 1;
}
}
@lee-dohm
lee-dohm / styles.less
Created January 7, 2017 01:51
Atom Style Tweak - Crazy angled Tree View (and Minimap)
// https://discuss.atom.io/t/crazy-3d-angled-tree-view/18765
#atom-perspective() {
@viewing-distance: 12in;
@rotation: 20deg;
.tree-view-scroller {
transform: translateY(-10vh) perspective(@viewing-distance) rotateY(@rotation);
padding-top: 12vh;
padding-bottom: 12vh;
transform-origin: left;