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 re | |
import zlib | |
from datetime import datetime | |
from decimal import Decimal | |
def get_value_from_line(fields, line_no): | |
for field in fields: | |
if field['field_line'] == line_no: | |
return field['field_text'] |
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
/** | |
ref: https://cs.chromium.org/chromium/src/components/viz/common/frame_sinks/begin_frame_args.h?q=60hz&dr=C&l=11 | |
The original 16666 corresponds to 60 Hz/FPS: (1 / 60) * 10^6 = 16666μs | |
**/ | |
diff --git a/components/viz/common/frame_sinks/begin_frame_args.h b/components/viz/common/frame_sinks/begin_frame_args.h | |
index c4d0e29c7d65..a39ede9849c6 100644 | |
--- a/components/viz/common/frame_sinks/begin_frame_args.h | |
+++ b/components/viz/common/frame_sinks/begin_frame_args.h | |
@@ -91,7 +91,8 @@ struct VIZ_COMMON_EXPORT BeginFrameArgs { |
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
register = Library() | |
@register.simple_tag(takes_context=True) | |
def change_lang(context, lang=None, *args, **kwargs): | |
try: | |
request = context.get('request') | |
path = request.path | |
url_parts = resolve(path) |
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
{... | |
"scripts": { | |
"postinstall": "node patch.js", | |
... | |
} | |
} |
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
javascript:(function(){top.window.location='http://foo.bar/co?tf_id='+typeform.submissionRepository.token.split("$")[0];})(); |