Migrated from https://bitbucket.org/saaj/workspace/snippets/pnXje/python-tea
This file contains 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
--- original/sqlite_tokenizer.py | |
+++ patched/sqlite_tokenizer.py | |
@@ -8,6 +8,10 @@ | |
import ctypes | |
from ctypes import POINTER, CFUNCTYPE | |
import struct | |
+ | |
+ | |
+SQLITE_OK = 0 | |
+SQLITE_DONE = 101 |
This file contains 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
/** | |
* Simplified datetime format string converter from LDML (Locale Data Markup | |
* Language) aka CLDR (Unicode Common Locale Data Repository) format to POSIX | |
* aka strftime format. | |
* | |
* Main usecase is using complete localization from CLDR with D3, which | |
* implements POSIX style of date formatting. | |
* | |
* References: | |
* - http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table |
This file contains 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
--- ~/venv/1/lib/python2.7/site-packages/routes/route.py | |
+++ ~/venv/2/lib/python2.7/site-packages/routes/route.py | |
@@ -421,7 +421,7 @@ | |
# our regexp first. It's still possible we could be completely | |
# blank as we have a default | |
if self.reqs.has_key(var) and self.defaults.has_key(var): | |
- reg = '(?:' + partreg + rest + ')?' | |
+ reg = '(' + partreg + rest + ')?' | |
# Or we have a regexp match with no default, so now being |
This file contains 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
// ==UserScript== | |
// @name Jira Markdown Converter | |
// @namespace https://gist.github.com/saaj/fb58cfca7d682a4d3c8083239eafc174 | |
// @description This userscript converts between Jira markup and Markdown in Jira ticket textarea | |
// @version 0.1.2 | |
// @author saaj | |
// @match https://*.atlassian.net/* | |
// ==/UserScript== | |
/** |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 -*- | |
''' | |
Ranking code based on: | |
https://github.com/coleifer/peewee/blob/master/playhouse/sqlite_ext.py | |
''' | |
import struct | |
import math |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer