Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# Check for JSHint errors
function linth {
if [[ "$1" == *js ]]
then
if [ -n "$(type -t jshint)" ]; then
printf "\nJSHint results for $1:\n\n"
jshint $1
else
@viskri
viskri / changes.sh
Created June 27, 2015 09:54
Open all the changed files (uncommitted files) in Sublime
#!/usr/bin/env bash
function ch {
printf "Running git status...\n"
printf "Files changed:\n"
filesChanged=`git status -s | cut -c4-`
echo $filesChanged
for word in $filesChanged
do
sublime $word
1) Project, Module, Project Settings, Module Settings, Global library, Project stucture
Add dependency (by path, directory, module).
2) Import a module (Eclipse, SBT, Maven..)
3) Open (files, classes,symbols, line numbers, unpinned, native-neighbourhood [Intellij & Sublime] , reveal)
4) Code Navigation
Tab limit, Scrolls, Alt selection, Navigation bar, Navigation bar ( Create/Delete/Search)
View mode
Structure
Quick jump
Vim Mode
Source: Presentation of Hadi Hariri (https://www.parleys.com/tutorial/intellij-idea-tips-tricks)
Set Keymap in Preferences to: Mac OS 10.5+
Recently opened Files --> ⌘E
Recently Edited Files --> ⇧⌘E
Hide views (e.g. Project) --> ⇧⎋ (⇧ escape-key)
In all Navigations, you can use Camel Case (e.g. FIS for FileInputStream)