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
// Create checkbox to hide preview rules | |
var checkbox = document.createElement("input"); | |
checkbox.type = "checkbox"; | |
checkbox.checked = true; | |
checkbox.addEventListener("change", function () { | |
for (var span of document.querySelectorAll( | |
'span[title="Rule is in preview"]', | |
)) { | |
span.closest("tr").style.display = event.currentTarget.checked | |
? null |
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 -ex | |
to_merge="${1:-docking_inter}" | |
imgui_branch="${2:-master}" | |
git merge --no-ff --no-commit "$to_merge" || true # Always fails | |
# But double-check that we really ended up in a merge status | |
git rev-list -1 MERGE_HEAD | |
# Reset everything to be like the merged branch |
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
import logging | |
class DisallowLogsHandler(logging.Handler): | |
def emit(self, record): | |
raise AssertionError(f'Unexpected log: "{self.format(record)}"') | |
logging.lastResort = DisallowLogsHandler(level=logging.WARNING) |
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
{ | |
"IndexDocument": { | |
"Suffix": "index.html" | |
}, | |
"ErrorDocument": { | |
"Key": "api/1.2.2/404.html" | |
}, | |
"RoutingRules": [ | |
{ | |
"Condition": { |
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 -x -e | |
check() { | |
mkdir -p /tmp/a /tmp/b | |
cp generate.cr /tmp/a/ | |
sed -i -e "${1}d" generate.cr | |
cp generate.cr /tmp/b/ | |
(cd /tmp/b && crystal build --warnings=none generate.cr) || return 4 | |
(cd /tmp/a && crystal build --warnings=none generate.cr) || return 5 |
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 --unified --recursive konversation-1.7.2/src/viewer/chatwindow.cpp konversation-1.7.2.new/src/viewer/chatwindow.cpp | |
--- konversation-1.7.2/src/viewer/chatwindow.cpp 2017-05-09 17:29:00.000000000 +0200 | |
+++ konversation-1.7.2.new/src/viewer/chatwindow.cpp 2017-11-07 00:13:25.359449297 +0100 | |
@@ -278,7 +278,15 @@ | |
void ChatWindow::append(const QString& nickname, const QString& message, const QHash<QString, QString> &messageTags, const QString& label) | |
{ | |
if(!textView) return; | |
- textView->append(nickname, message, messageTags, label); | |
+ QString nickname_ = nickname; | |
+ QString message_ = message; |
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
#!/usr/bin/env python3 | |
"""Create a file tree with all chat logs from Quassel. | |
Usage: | |
./dump_quassel_logs.py /var/lib/quassel/quassel-storage.sqlite | |
The file names will have this format: | |
./network/#channel/YYYY-MM-DD.log | |
The lines in each file will have this format: | |
[HH:MM:SS] <nick> message |
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 get_name() | |
return "THE 99-HOLE" | |
end | |
function get_description() | |
return { | |
"*alice* is an XBus input connected to an electronic transmitter.", | |
"*bob* is an XBus output connected to an electronic receiver.", | |
"Receive packets of data from *alice* and send them to *bob*.", | |
"Numbers are between 1 and 26.", |
NewerOlder