Skip to content

Instantly share code, notes, and snippets.

View snide's full-sized avatar
🐢
Steady, constant work always wins.

Dave Snider snide

🐢
Steady, constant work always wins.
View GitHub Profile
@mutewinter
mutewinter / YouCompleteMe_dash_support.patch
Last active January 15, 2017 14:39
Add dash and underscore completion for the YouCompleteMe Vim plugin.
diff --git a/ycmd/identifier_utils.py b/ycmd/identifier_utils.py
index 4217fdef..ac91c97b 100644
--- a/ycmd/identifier_utils.py
+++ b/ycmd/identifier_utils.py
@@ -102,6 +102,7 @@ FILETYPE_TO_IDENTIFIER_REGEX = {
}
FILETYPE_TO_IDENTIFIER_REGEX[ 'scss' ] = FILETYPE_TO_IDENTIFIER_REGEX[ 'css' ]
+FILETYPE_TO_IDENTIFIER_REGEX[ 'javascript' ] = FILETYPE_TO_IDENTIFIER_REGEX[ 'css' ]
FILETYPE_TO_IDENTIFIER_REGEX[ 'sass' ] = FILETYPE_TO_IDENTIFIER_REGEX[ 'css' ]
@imankulov
imankulov / watchmedo.sh
Created March 26, 2013 19:37
One-liner. Auto-building Sphinx docs with watchdog. Forked from http://jacobian.org/writing/auto-building-sphinx/
# pip install watchdog
exec watchmedo shell-command --patterns='*.rst;*.py' --ignore-pattern='_build/*' --recursive --command='make html' --wait
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: