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
<?php | |
/** | |
* purifierConfig is an HTMLPurifier config handler. | |
* | |
* It manages HTMLPurifier configs. | |
* | |
* | |
* Accepts an array of configs at initialization resembling something like: | |
* |
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
#!/bin/sh | |
file="Sublime Text 2 Build ${1} x64.tar.bz2" | |
# Uncomment line below for 32 bit. | |
#file="Sublime Text 2 Build ${1}.tar.bz2" | |
url="http://www.sublimetext.com/${file}" | |
first=0 | |
if [ $(id -u) -ne 0 ] | |
then |
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
''' | |
[CREDITS] | |
authors: | |
adzenith (https://github.com/adzenith) | |
ajpalkovic (https://github.com/ajpalkovic) | |
Anomareh (https://github.com/Anomareh) | |
url: | |
https://gist.github.com/1136448 | |
[OPTIONS] |
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
diff --git a/mynt/core.py b/mynt/core.py | |
index 0cab910..d7d6778 100644 | |
--- a/mynt/core.py | |
+++ b/mynt/core.py | |
@@ -38,6 +38,8 @@ class Mynt(object): | |
'archives_url': '/', | |
'assets_url': '/assets/', | |
'base_url': '/', | |
+ 'category_layout': None, | |
+ 'categories_url': '/', |
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 __future__ import unicode_literals | |
import re | |
from markdown.extensions import Extension | |
from markdown.extensions.attr_list import AttrListTreeprocessor as _AttrListTreeprocessor, isheader | |
from markdown.util import isBlockLevel |
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 __future__ import absolute_import, unicode_literals | |
from copy import deepcopy | |
from operator import or_ | |
import re | |
import hoep as h |
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
def longest_substr(data): | |
supstr = data[0] | |
end = len(supstr) | |
substr = '' | |
for i in xrange(end): | |
start = i + 1 + len(substr) | |
if (start >= end + 1): | |
break |
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
# completion colors | |
eval `dircolors` | |
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" | |
# history search | |
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search | |
zle -N up-line-or-beginning-search | |
zle -N down-line-or-beginning-search |