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
#include <random> | |
#include <vector> | |
std::vector<int> generateRandomVector(int size) | |
{ | |
std::vector<int> vec(size); | |
std::generate(begin(vec), end(vec), rand); | |
return vec; | |
} |
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 | |
set -e | |
sudo cp tomerge /usr/local/bin | |
cp tomerge.yaml ~/.config/tomerge.yaml | |
$EDITOR ~/.config/tomerge.yaml |
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
@mock.patch('__builtin__.open', create=True) | |
def test_cmd_config_basic_items(self, mock_open): | |
test = """ | |
# comment | |
stringkey1 = stringvalue1 | |
stringkey2 = "stringvalue2" | |
intkey = 1234 | |
floatkey = 56.78 | |
bool1 = yes |
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
function hl { | |
if [ "$#" -le 1 ] | |
then | |
colorname="red" | |
pattern=$1 | |
else | |
colorname=$1 | |
pattern=$2 | |
fi | |
case $colorname in |
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
diff --git a/language/assistant/staticassistantsmanager.cpp b/language/assistant/staticassistantsmanager.cpp | |
index 92ca321..248f960 100644 | |
--- a/language/assistant/staticassistantsmanager.cpp | |
+++ b/language/assistant/staticassistantsmanager.cpp | |
@@ -105,17 +105,6 @@ StaticAssistantsManager::StaticAssistantsManager(QObject* parent) | |
} | |
d->m_completionModel = new AssistantCompletionModel(this); | |
- connect(d->m_completionModel, &AssistantCompletionModel::hasCompletions, this, [this]{ | |
- if (auto view = d->m_currentView.data()) { |
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
==23529== Memcheck, a memory error detector | |
==23529== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. | |
==23529== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info | |
==23529== Command: ./svnimport | |
==23529== | |
==23529== Conditional jump or move depends on uninitialised value(s) | |
==23529== at 0x62D8DDC: qDetectCpuFeatures() (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.4.2) | |
==23529== by 0x62B287C: qHash(QString const&, unsigned int) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.4.2) | |
==23529== by 0x4E57F52: QHash<QString, QString (*)(QVariant const&, KDevelop::Declaration*)>::findNode(QString const&, unsigned int*) const (qhash.h:912) | |
==23529== by 0x4E5805A: QHash<QString, QString (*)(QVariant const&, KDevelop::Declaration*)>::insert(QString const&, QString (* const&)(QVariant const&, KDevelop::Declaration*)) (qhash.h:768) |
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
reset_color="\[\033[00m\]" | |
color_code=$(( 104 + (16#$(hostname | md5sum | cut -c 10) % 127) )) | |
host_color="\[\033[38;05;${color_code}m\]" | |
user_color="\[\033[1;32m\]" | |
path_color="\[\033[1;33m\]" | |
prompt_sign="\$" | |
if [ ${UID} -eq 0 ]; then | |
user_color="\[\033[1;31m\]" | |
path_color="\[\033[1;31m\]" |
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 | |
REALSVN=/usr/bin/svn | |
ARGS="$@" | |
if [ "$1" = "commit" -o "$1" = "ci" ]; then | |
shift # pop off $1 for diff | |
skip_args=("--help" "-h" "--message" "-m" "--file" "-F") | |
skip=false |
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
--style=1tbs | |
--indent=spaces=2 | |
--attach-namespaces | |
--attach-extern-c | |
--indent-preproc-define | |
--indent-preproc-cond | |
--max-instatement-indent=80 | |
--break-blocks | |
--pad-oper | |
--pad-paren-in |
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
[Default Item Styles - Schema Monokai] | |
Alert=ff9c0e0e,ff9c0e0e,1,,,,fff7e6e6,-,,--- | |
Annotation=ff644a9b,ff452886,,,,,-,-,,--- | |
Attribute=ffa2ff17,ff79b600,,,,,-,-,,--- | |
Base-N Integer=ffae81ff,ff8d4fff,,,,,-,-,,--- | |
Built-in=ffffaa00,ffd18b00,,,,,-,-,,--- | |
Character=ffffc3a7,ffcb9b85,,,,,-,-,,--- | |
Comment=ff898887,ff898887,,,,,-,-,,--- | |
Comment Variable=ff644a9b,ff452886,,,,,-,-,,--- | |
Constant=ffffffff,ffb9b9b9,1,,,,-,-,,--- |
NewerOlder