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 | |
import cssutils | |
css_parser = cssutils.CSSParser(validate=False) | |
# cssutils.log.setLevel(logging.FATAL) | |
css_text = '\'\'\':before{content:"\\f175"}.s1{content:"\\f178"}.s2:before{content:"\\f179"}.s3:before{content:"\\f17a"}.s4:before{content:"\\f17b"}.s5:before{content:"\\f17c"}.s6:before{content:"\\f17d"}.s7:before{content:"\\f17e"}.s8:before{content:"\\f180"}.s9:before{content:"\\f181"}.s10:before{content:"\\f182"}.s11:before{content:"\\f183"}' | |
sheet = css_parser.parseString(cssText=css_text) | |
css_urls = cssutils.getUrls(sheet) | |
print(list(css_urls)) |
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 | |
import json | |
import random | |
with open("jq-test-input.json", "w") as fd: | |
obj = {"key_one": random.random(), "key_two": random.random(), "key_three": random.random()} | |
fd.write("[\n") | |
for x in range(10*1000*1000): | |
if x != 0: |
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/Telegram/SourceFiles/history/history_message.cpp b/Telegram/SourceFiles/history/history_message.cpp | |
index a318520..45ca737 100644 | |
--- a/Telegram/SourceFiles/history/history_message.cpp | |
+++ b/Telegram/SourceFiles/history/history_message.cpp | |
@@ -709,6 +709,7 @@ void HistoryMessage::initMedia(const MTPMessageMedia *media) { | |
} | |
} break; | |
case mtpc_messageMediaWebPage: { | |
+ break; // nopreview fix | |
auto &d = media->c_messageMediaWebPage().vwebpage; |