Skip to content

Instantly share code, notes, and snippets.

@garrows
garrows / .git-hooks-pre-commit.sh
Created July 10, 2015 05:50
Js-Beautify recursively git hook
#!/bin/sh
type js-beautify >/dev/null 2>&1 || { echo >&2 "js-beautify command missing. Installing now."; sudo npm install -g js-beautify; }
find . -type f -name "*.js" -not -path "*node_modules*" -exec js-beautify -r {} \;
@garrows
garrows / styles.less
Created November 11, 2015 23:19
Atom Custom Background
.panes::after {
content: "";
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
pointer-events: none;
background: url("https://source.unsplash.com/random");
// background: url("https://source.unsplash.com/category/nature"); //Nature category
@garrows
garrows / .jsbeautifyrc
Last active January 22, 2016 02:44
JS Hint & Beautify
{
"indent_size": 4,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": true,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"jslint_happy": true,
"brace_style": "collapse",
"keep_array_indentation": false,
@garrows
garrows / Installed Modules.txt
Last active April 28, 2017 00:44
Atom Configs
Community Packages (15) /Users/glen/.atom/packages
├── api-blueprint-preview@0.7.0
├── atom-beautify@0.29.22
├── busy-signal@1.3.0
├── editorconfig@2.2.2
├── git-diff-details@1.4.0
├── git-plus@7.5.0
├── intentions@1.1.2
├── language-api-blueprint@1.0.2
├── lcov-info@0.12.0