- Download LLVM: http://releases.llvm.org/5.0.1/LLVM-5.0.1-win64.exe
- During the installation, make sure to add it to your path
- In QT Creator, select Help > About Plugins > C++ > Beautifier to enable the plugin
- Restart QT Creator
- Select Tools > Options > Beautifier
- Create a custom style called Chatterino, and copy paste the contents of .clang-format into it (I don't think the file can be automatically detected by QT Creator yet)
- Add a hotkey for the "Clang format file". I use F1
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
1765 | |
apa420 | |
arzenhuz | |
baxx | |
bendover_xd | |
bottleshark | |
buletbroof | |
chancu | |
commname | |
conf_xd |
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
{ | |
"banned": true, | |
"input_message": "🍑", | |
"banphrase_data": { | |
"permanent": false, | |
"length": 300, | |
"name": "1", | |
"phrase": "🍑" | |
} | |
} |
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
auto& db = DatabaseHandle::get(); | |
{ | |
hemirt::DB::Query<hemirt::DB::MariaDB::Values> q("SHOW TABLES LIKE \'wnmabot_settings\'"); | |
q.type = hemirt::DB::QueryType::RAWSQL; | |
auto res = db.executeQuery(std::move(q)); | |
if (auto eval = res.error(); eval) { | |
std::cerr << "Showing table `wnmabot_settings` error: " << eval->error() << std::endl; | |
this->err = true; |
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
src/application.hpp:3: 'singletons/ircmanager.hpp' does not need to be #included | |
src/application.hpp:4: 'singletons/resourcemanager.hpp' does not need to be #included | |
src/channel.hpp:3: 'logging/loggingchannel.hpp' does not need to be #included | |
src/channel.hpp:4: 'messages/image.hpp' does not need to be #included | |
src/channel.hpp:6: 'util/concurrentmap.hpp' does not need to be #included | |
src/channeldata.hpp:4: 'messages/image.hpp' does not need to be #included | |
src/emojis.hpp:3: 'messages/image.hpp' does not need to be #included | |
src/emojis.hpp:4: 'util/concurrentmap.hpp' does not need to be #included | |
src/logging/loggingchannel.hpp:3: 'messages/message.hpp' does not need to be #included; use a forward declaration instead | |
src/logging/loggingmanager.cpp:11: static data 'logBasePath' |
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
. 0 Id: 3e7c.216c Suspend: 1 Teb: 00000032`a8157000 Unfrozen | |
Child-SP RetAddr Call Site | |
00000032`a82f7fb0 00000000`5d65d028 chatterino!chatterino::widgets::Scrollbar::paintEvent(class QPaintEvent * __formal = 0x00000032`a82f8e78)+0x1c7 [c:\dev\git\chatterino2\src\widgets\scrollbar.cpp @ 224] | |
00000032`a82f8070 00000000`5d5fb8ae Qt5Widgetsd!QWidget::event(class QEvent * event = 0x00000032`a82f8e78)+0x9a8 [c:\users\qt\work\qt\qtbase\src\widgets\kernel\qwidget.cpp @ 8954] | |
00000032`a82f8370 00000000`5d5f8f66 Qt5Widgetsd!QApplicationPrivate::notify_helper(class QObject * receiver = 0x000001e5`4453e5f0, class QEvent * e = 0x00000032`a82f8e78)+0x17e [c:\users\qt\work\qt\qtbase\src\widgets\kernel\qapplication.cpp @ 3717] | |
00000032`a82f83d0 00000000`5caa87f6 Qt5Widgetsd!QApplication::notify(class QObject * receiver = 0x000001e5`4453e5f0, class QEvent * e = 0x00000032`a82f8e78)+0x3166 [c:\users\qt\work\qt\qtbase\src\widgets\kernel\qapplication.cpp @ 3680] | |
00000032`a82f8da0 00000000`5cc0ea4b Qt5Cored! |
HEJ
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
# Move stats from new user to old user | |
UPDATE | |
tb_user OldUser, | |
( | |
SELECT | |
level, | |
points, | |
minutes_in_chat_online, | |
minutes_in_chat_offline | |
FROM tb_user |
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
void main() | |
{ | |
/// Old way | |
NetworkManager::urlFetch(QUrl("google.com"), [](auto reply) { | |
// do shit with reply | |
}); | |
// or | |
NetworkManager::urlFetch(QNetworkRequest("google.com"), [](auto reply) { |
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
[alias] | |
st = status | |
ci = commit --verbose | |
co = checkout | |
df = diff | |
lg = log -p | |
ap = add --patch | |
permission-reset = !git diff -p -R --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply |