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 | |
if [ "$(id -u)" -ne 0 ]; then | |
sudo -Hu root $0 $@ | |
sudo usermod -a -G docker $(id -nu) | |
exit 0 | |
fi |
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
web: java $JAVA_OPTS -jar jetty-runner.jar ${WEBAPP_RUNNER_OPTS} --port $PORT ./BaseX.war |
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
// Copyright (c) 2008-2009 Bjoern Hoehrmann <[email protected]> | |
// See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details. | |
#define UTF8_ACCEPT 0 | |
#define UTF8_REJECT 1 | |
static const uint8_t utf8d[] = { | |
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 00..1f | |
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 20..3f | |
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 40..5f |
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 <string> | |
#include <vector> | |
#include "Base64Decode.h" | |
const static char padCharacter = '='; | |
std::vector<uint8_t> base64Decode(const std::basic_string<char>& input) | |
{ | |
if (input.length() % 4) //Sanity check | |
return null; |
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 "string_util.h" | |
std::vector<std::string> &split(const std::string &str, std::vector<std::string> &tokens, char separator, unsigned int limit) { | |
std::istringstream iss; | |
std::string tok; | |
iss.str(str); | |
unsigned int i = 0; | |
while (i < limit - 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <inttypes.h> | |
int | |
main(int argc, char **argv) | |
{ | |
printf("sizeof(size_t) = %zu\n", sizeof(size_t)); | |
printf("sizeof(uint8_t) = %zu\n", sizeof(uint8_t)); |
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
CC = gcc | |
CFLAGS = -Wall -Werror -std=gnu99 | |
all: base64 | |
base64.o: base64.c base64.h | |
main.o: main.c | |
OBJECTS = base64.o main.o |
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
CFLAGS=-Wall -Werror | |
all: base64 | |
base64.o: base64.c base64.h | |
main.o: main.c | |
OBJECTS = base64.o main.o |
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 -rupN touchegg-1.1/src/touchegg/actions/implementation/MouseClick.cpp touchegg-1.1a/src/touchegg/actions/implementation/MouseClick.cpp | |
--- touchegg-1.1/src/touchegg/actions/implementation/MouseClick.cpp 2012-07-24 18:59:56.000000000 +0000 | |
+++ touchegg-1.1a/src/touchegg/actions/implementation/MouseClick.cpp 2014-02-26 12:36:54.427721804 +0000 | |
@@ -51,8 +51,12 @@ void MouseClick::executeStart(const QHas | |
void MouseClick::executeUpdate(const QHash<QString, QVariant>& /*attrs*/) {} | |
-void MouseClick::executeFinish(const QHash<QString, QVariant>& /*attrs*/) | |
+void MouseClick::executeFinish(const QHash<QString, QVariant>& attrs) | |
{ |