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 -*- | |
import itertools | |
import operator | |
def trim(data, delta): | |
"""Trims elements within `delta` of other elements in the list.""" | |
output = [] |
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
from unidecode import unidecode | |
# Regular expression to match most "punctuation" | |
punctuation_re = re.compile(r'[\t !"#$%&\'()*\-/<=>?@\[\\\]^_`{|},.]+') | |
def slugify(text, delimiter=u'-'): | |
"""Generates an ASCII-only slug.""" | |
result = [] | |
for word in punctuation_re.split(text.lower()): |
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
import re | |
version_pattern = re.compile(r"/v(?P<version>[0-9a-z\-\+\.]+)", re.IGNORECASE) | |
class VersionedAPIMiddleware(object): | |
""" | |
Allows a Werkzeug/Flask application to have a versioned API. | |
This middleware will extract out the API version specification in a 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
#!/bin/bash | |
if [[ -z "$1" ]]; then | |
echo "Syntax: $0 debfile" | |
exit 1 | |
fi | |
DEBFILE="$1" | |
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1 | |
OUTPUT=`basename "$DEBFILE" .deb`.modified.deb |
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
http://jenkins/view/Radiator/api/json?tree=jobs[name,color,buildable,healthReport[description,score,iconUrl],builds[culprits[fullName],changeSet[items[msg]]]] |
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
user { "git": | |
home => "/var/git", | |
ensure => present | |
} | |
file { | |
"/var/git": | |
ensure => directory, | |
owner => "git", | |
group => "git", |
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
- Any of the "Armand Seasonal" (Lente, Printemps, Hiver, Été) | |
- Any Westvleteren (the 12 being the best, but hardest to find) | |
- HORALs Oude Geuze Mega Blend | |
- Struiselensis | |
If none of the above are findable, then nearly any beer by Cantillon: | |
- Cantillon Blåbær Lambik | |
- Cantillon Kriek Lambic | |
- Cantillon Gueuze Lambic |
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/src/controller.cpp b/src/controller.cpp | |
index 715f59e..c4a4012 100644 | |
--- a/src/controller.cpp | |
+++ b/src/controller.cpp | |
@@ -38,7 +38,7 @@ | |
#include <sys/stat.h> | |
#include <pwd.h> | |
-#include <ncursesw/ncurses.h> | |
+#include <ncurses.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
diff --git a/src/controller.cpp b/src/controller.cpp | |
index 34ca979..715f59e 100644 | |
--- a/src/controller.cpp | |
+++ b/src/controller.cpp | |
@@ -855,7 +855,7 @@ void controller::notify(const std::string& msg) { | |
} | |
if (cfg.get_configvalue_as_bool("notify-beep")) { | |
LOG(LOG_DEBUG, "controller:notify: notifying beep"); | |
- ::beep(); | |
+ //::beep(); |
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/config.sh b/config.sh | |
index 21d8d04..0b0c44c 100755 | |
--- a/config.sh | |
+++ b/config.sh | |
@@ -80,3 +80,5 @@ check_pkg "libcurl" || check_custom "libcurl" "curl-config" || fail "libcurl" | |
check_pkg "libxml-2.0" || check_custom "libxml2" "xml2-config" || fail "libxml2" | |
check_pkg "stfl" "" "--static" || fail "stfl" | |
all_aboard_the_fail_boat | |
+echo "CXXFLAGS+=$CPPFLAGS" >> config.mk | |
+echo "LDFLAGS+=$LDFLAGS" >> config.mk |