Skip to content

Instantly share code, notes, and snippets.

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
#include <glib.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <glib/gprintf.h>
#include <string.h>
/*
*
* Colorpicker. That's all.
*
@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);
#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
exec ctags-exuberant \
--languages=Python,JavaScript \
-h ".py",".js" -R \
--totals=yes \
--tag-relative=yes \
--fields=afmikKlnsStz \
--python-kinds=-iv
# -*- coding: utf-8 -*-
"""
Quick and dirty taks runner implementation
"""
import datetime
import sqlite3
import json
import time
<!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 -*-
from django.db import models
class LtreeField(models.CharField):
"""Field implementation of PostgreSQL ltree type"""
def __init__(self, *args, **kwds):
super(LtreeField, self).__init__(max_length=128, *args, **kwds)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import random
import os
import psycopg2
import datetime
import multiprocessing
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup, Extension
module = Extension('sqlitebck',
sources=['src/sqlitebck.c', ],
libraries=['sqlite3', ])