Skip to content

Instantly share code, notes, and snippets.

--[[
rofi.lua - rofi-powered menus for awesome wm
Usage:
rofi = require("rofi")
change width (optional, default 500px):
rofi.width=300
bind to key:
@RobSis
RobSis / .ctags
Created April 18, 2013 08:15
The rules for ctags recognizing function and global variable definitions in QuakeC code.
--langdef=quakec
--langmap=quakec:.qc
--regex-quakec=/^[ \t]*(void|float|vector|string|entity)[ \t]*\([^(]*\)[ \t]*([a-zA-Z0-9_]+)[ \t]*\=/\2/f,functions/
--regex-quakec=/^[ \t]*\.?(float|vector|string|entity)[ \t]+([^();= ]+)[ \t]*(=.*)?;/\2/v,variable definitions/
@RobSis
RobSis / quakec.vim
Created April 18, 2013 08:16
Vim syntax file for QuakeC language.
" Vim syntax file
" Language: QuakeC
" Maintainer: Robert Siska <github.com/RobSis>
" Last Change: 2013 Mar 03
" Quit when a (custom) syntax file was already loaded
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
@RobSis
RobSis / conf.mvn
Created October 8, 2014 11:31
A grc module for colourising the maven outputs
# a grc module for colourising the maven outputs
regexp=^\[WARNING\]
colours=bold yellow
count=once
-
regexp=^\[ERROR\]
colours=bold red
count=once
-
@RobSis
RobSis / civilwar.txt
Last active August 29, 2015 14:13
Civil War is a Cleo mod for GTA: San Andreas.
// Civil War is Cleo mod for San Andreas.
// It toggles bunch of cheats to create civil war-like
// settings and adds counter of kills since last death.
// Type CIVILWAR to enable/disable the mod, and Tab to
// hide/show the counter.
//
// http://gist.github.com/RobSis/
{$CLEO .cs}