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
--- a/base/src/configurator.c 2015-02-05 22:21:37.000000000 +0100 | |
+++ b/base/src/configurator.c 2015-02-09 12:42:29.524780027 +0100 | |
@@ -571,16 +571,16 @@ | |
snode = xmlDocGetRootElement(second->xmldata); | |
/* Get first subtree */ | |
- xmlBufPtr fbuf = calloc(1, 2000); | |
+ xmlBufferPtr fbuf = calloc(1, 2000); | |
CHECK_ALLOC(fbuf, 1); | |
- xmlBufGetNodeContent(fbuf, fnode); |
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
#!/bin/bash | |
# This script uses Hub (https://hub.github.com/) to create pull requests for | |
# multiple repositories | |
# Print usage (doesn't exit) | |
usage() { | |
echo | |
echo "update -g NAME -e EXEC -r REMOTE -c CMSG -p PRMSG REPO [...]" | |
echo |
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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"title": "JSON schema for Python logging.config.dictConfig", | |
"type": "object", | |
"required": ["version"], | |
"properties": { | |
"version": {"type": "integer", "enum": [1]}, | |
"formatters": { | |
"type": "object", | |
"patternProperties": { |
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
def reproduce(m, f, target_m, target_f): | |
stack = [] | |
generation = 0 | |
while True: | |
generation += 1 | |
m1, f1 = m+f, f | |
m, f = m, f+m | |
success = m == target_m and f == target_f | |
success = success or (m1 == target_m and f1 == target_f) |
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
def a(m, f): | |
m, f, g = min(m, f), max(m, f), 0 | |
while f % m != 0: | |
g += f // m | |
m, f = f % m, m | |
g += f // m | |
return (m == 1 and str(g)) or 'impossible' |
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
109.169.248.247 - - [12/Dec/2015:18:25:11 +0100] "GET /administrator/ HTTP/1.1" 200 4263 "-" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" "-" | |
109.169.248.247 - - [12/Dec/2015:18:25:11 +0100] "POST /administrator/index.php HTTP/1.1" 200 4494 "http://almhuette-raith.at/administrator/" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" "-" | |
46.72.177.4 - - [12/Dec/2015:18:31:08 +0100] "GET /administrator/ HTTP/1.1" 200 4263 "-" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" "-" | |
46.72.177.4 - - [12/Dec/2015:18:31:08 +0100] "POST /administrator/index.php HTTP/1.1" 200 4494 "http://almhuette-raith.at/administrator/" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" "-" | |
83.167.113.100 - - [12/Dec/2015:18:31:25 +0100] "GET /administrator/ HTTP/1.1" 200 4263 "-" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" "-" | |
83.167.113.100 - - [12/Dec/2015:18:31:25 +0100] "POST /administrator/index.php HTTP/1.1" 200 4494 "http://almh |
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
swagger: "2.0" | |
info: | |
description: "Query execution." | |
version: "1.0.0" | |
title: "Run a query and get unicorms" | |
termsOfService: "http://datalicks.com/terms/" | |
contact: | |
email: "ben@datalikker.com" | |
license: | |
name: "Apache 2.0" |