This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <glib.h> | |
| #include <gdk/gdk.h> | |
| #include <gtk/gtk.h> | |
| #include <glib/gprintf.h> | |
| #include <string.h> | |
| /* | |
| * | |
| * Colorpicker. That's all. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exec ctags-exuberant \ | |
| --languages=Python,JavaScript \ | |
| -h ".py",".js" -R \ | |
| --totals=yes \ | |
| --tag-relative=yes \ | |
| --fields=afmikKlnsStz \ | |
| --python-kinds=-iv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Quick and dirty taks runner implementation | |
| """ | |
| import datetime | |
| import sqlite3 | |
| import json | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import time | |
| import random | |
| import os | |
| import psycopg2 | |
| import datetime | |
| import multiprocessing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from distutils.core import setup, Extension | |
| module = Extension('sqlitebck', | |
| sources=['src/sqlitebck.c', ], | |
| libraries=['sqlite3', ]) |