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 | |
# Copyright 2016 Till Hofmann <[email protected]> | |
# This work is free. You can redistribute it and/or modify it under the | |
# terms of the Do What The Fuck You Want To Public License, Version 2, | |
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. | |
random_word () { | |
ALL_NON_RANDOM_WORDS=/usr/share/dict/words | |
non_random_words=`cat $ALL_NON_RANDOM_WORDS | wc -l` | |
random_number=$(expr $non_random_words \* $RANDOM / 32767) |
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
std::string foo_string = "foo"; | |
std::string bar_string = "bar"; | |
std::string res; | |
char * tmp; | |
if (asprintf(&tmp, "concatenation: %s %s", foo_string.c_str(), bar_string.c_str()) != -1) { | |
res = tmp; | |
free(tmp); | |
} else { | |
throw Exception("Out of memory"); | |
} |
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
\lst@definelanguage{pddl} | |
{ | |
keywords={ | |
define, | |
}, | |
morekeywords={[2] | |
domain, | |
problem, | |
requirements, | |
predicates, |
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
05-01 15:17:20:396 csync_walker: directory: /tmp/test/owncloud-test | |
05-01 15:17:20:396 _csync_detect_update: ==> file: owncloud-test - hash 8671896127397113479, mtime: 1398950224, fileId: 0000730152460427b79e3 | |
05-01 15:17:20:396 _csync_detect_update: Database entry found, compare: 1398950224 <-> 1398949025, etag: 5362450ed9f59 <-> 5362450ed9f59, inode: 65309 <-> 65309 | |
05-01 15:17:20:396 _csync_detect_update: file: owncloud-test, instruction: INSTRUCTION_EVAL <<= | |
05-01 15:17:20:396 csync_ftw: Uniq ID from Database: owncloud-test/subdir -> 536248b09129d | |
05-01 15:17:20:396 csync_walker: directory: /tmp/test/owncloud-test/subdir | |
05-01 15:17:20:397 _csync_detect_update: ==> file: owncloud-test/subdir - hash 3742522823791505315, mtime: 1398950224, fileId: 0000730252460427b79e3 | |
05-01 15:17:20:397 _csync_detect_update: Database entry found, compare: 1398950224 <-> 1398950055, etag: 536248b09129d <-> 536248b09129d, inode: 65310 <-> 65310 | |
05-01 15:17:20:397 _csync_detect_update: file: owncloud-test/subdir, instruction: |
NewerOlder