Skip to content

Instantly share code, notes, and snippets.

View alexbaumgertner's full-sized avatar
💻
Digital Nomad

Alex Baumgertner alexbaumgertner

💻
Digital Nomad
View GitHub Profile
def el = __context__;
if (el instanceof com.intellij.lang.javascript.psi.JSReferenceExpression) {
while (true) {
el = el.getParent()
if (el == null) return false
if (el instanceof com.intellij.lang.javascript.psi.JSFunction) {
return __context__.getReferenceName().equals(el.getName())
<script>
$(document).ready( function() {
var $grid = $('.row').masonry({
// main isotope options
itemSelector: '.row__item',
columnWidth: '.row__sizer',
gutter: '.gutter-sizer',
percentPosition: true,
});
# ~/.gitconfig
# Add this to your global git configuration file
# Change phpstorm to webstorm, if you use that.
# Diff and merge tool changes
# Run `git difftool <directory/file>...` or `git mergetool <directory/file>...`
[merge]
tool = webstorm
[diff]
tool = webstorm
@alexbaumgertner
alexbaumgertner / gist:4707211
Last active December 12, 2015 03:28 — forked from baxang/gist:1395787
nginx init script (nginx in /opt/ )
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon