Skip to content

Instantly share code, notes, and snippets.

@JustinLivi
JustinLivi / beauty.terminal
Created February 12, 2018 23:25
Terminal Theme
<?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>BackgroundAlphaInactive</key>
<real>0.82830563583815031</real>
<key>BackgroundBlur</key>
<real>0.0</real>
<key>BackgroundBlurInactive</key>
<real>0.0</real>
@JustinLivi
JustinLivi / ESLint_glob_suggestion.md
Last active August 30, 2016 21:06
Cascading glob configuration

I'd really like to see the cascading functionality within a single .eslintrc file:

{
    "includes": "**/*.js",
    "rules": { "indent": [ 2, 4, { "SwitchCase": 1 }] },
    "children": [
        {
            // overrides the parent includes and excludes for these rules
            "includes": ["src/components/**/*.js", "src/routes/**/client.js"],
 "excludes": ["*.min.js"],
@JustinLivi
JustinLivi / commit-msg
Last active September 10, 2015 03:51 — forked from jhartikainen/commit-msg
ESLint git commit hook
#!/bin/bash
git stash -q --keep-index
# Test prospective commit
git diff-index --cached HEAD --name-only --diff-filter ACMR | egrep '.js$' | xargs $(npm bin)/eslint
RESULT=$?
git stash pop -q