Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" charset="utf-8">
window.sensiPlugins = [];
</script>
</head>
<body>
# -*- coding: utf-8 -*-
"""
Quick and dirty taks runner implementation
"""
import datetime
import sqlite3
import json
import time
exec ctags-exuberant \
--languages=Python,JavaScript \
-h ".py",".js" -R \
--totals=yes \
--tag-relative=yes \
--fields=afmikKlnsStz \
--python-kinds=-iv
#ifndef COMMON_DEBUG_H
#define COMMON_DEBUG_H
#include <glib.h>
#include <lua.h>
#define lua_showstack(L, depth) _lua_showstack(L, depth, __LINE__, __FUNCTION__)
void
@husio
husio / dbus.c
Created December 18, 2010 12:41
timeout = -1;
lua_pushstring(L, "timeout");
lua_gettable(L, -1);
if (lua_isnumber(L, -1)) {
timeout = lua_tointeger(L, -1);
} else {
fprintf(strerr, "timeout param not found\n");
}
lua_pop(L, 1);
#include <glib.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <glib/gprintf.h>
#include <string.h>
/*
*
* Colorpicker. That's all.
*
if exists("g:loaded_colorpicker")
finish
endif
let g:loaded_colorpicker = 1
if !has("python")
echo "Failed. Colorpicker requires Vim to be compiled with Python support"
finish
endif
@husio
husio / remotenotify.py
Created April 2, 2012 16:10
Remote irssi notification (SSH + libnotify)
#!/usr/bin/env python2
import optparse
import re
import select
import sys
import socket
import time
import paramiko
-- Standard awesome library
require("awful")
require("awful.autofocus")
require("awful.rules")
-- Widget and layout library
require("wibox")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
Xft*dpi: 100
Xft*antialias: true
Xft.hinting: hintfull
#Xft.hintstyle: 5
Xft*lcdfilter: 5
Xft*minspace: true
# {{{ ncmpc
ncmpc*faceName: fixed
ncmpc*faceSize: 8