Skip to content

Instantly share code, notes, and snippets.

View vio's full-sized avatar
💭
📦 🔨 🔧

Viorel Cojocaru vio

💭
📦 🔨 🔧
View GitHub Profile
@vio
vio / less.vim
Created June 21, 2012 12:36 — forked from bryanjswift/less.vim
lesscss syntax file for Vim
" Vim syntax file
" Language: LESS Cascading Style Sheets
" Maintainer: Leaf Corcoran <[email protected]>
" Modifier: Bryan J Swift <[email protected]>
" URL: http://leafo.net/lessphp/vim/less.vim
" URL: http://gist.github.com/161047
" Last Change: 2009 August 4
" LESS by Leaf Corcoran
" CSS2 by Nikolai Weibull
" Full CSS2, HTML4 support by Yeti
@vio
vio / post-merge
Last active August 29, 2015 14:12 — forked from sindresorhus/post-merge
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"