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
; TDLib Minimal Linux Client in x86-64 Assembly (NASM) | |
; | |
; nasm -f elf64 -o nasm_tdjson_example.o nasm_tdjson_example.asm | |
; gcc -o nasm_tdjson_example nasm_tdjson_example.o -ldl -no-pie | |
; ./nasm_tdjson_example | |
section .data | |
; Error messages | |
lib_error db "Error: libtdjson.so not found", 10, 0 | |
client_error db "Error: Failed to create client", 10, 0 |
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
() recv_external(slice in_msg) impure { | |
var signature = in_msg~load_bits(512); | |
var cs = in_msg; | |
var (msg_seqno, valid_until, stored_seqno, public_key) = (cs~load_uint(32), cs~load_uint(32), get_data().begin_parse().load_uint(32), get_data().begin_parse().load_uint(256)); | |
throw_if(35, valid_until <= now()); | |
throw_unless(33, msg_seqno == stored_seqno); | |
throw_unless(34, check_signature(slice_hash(in_msg), signature, public_key)); | |
accept_message(); | |
cs~touch(); | |
while (cs.slice_refs()) { |
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
I. TON Ducks | |
1. | |
video: https://t.me/tonplay_chat/271/1229 | |
I wanted to set a new world record for TON Ducks, but under the onslaught of two bulls, "Duck" flew into textures. | |
I think you need to check the field bounds check in TON Ducks (validation doesn't always work). | |
2. | |
- video: https://t.me/tonplay_chat/271/1155 | |
AI is not very good at avoiding obstacles as I mentioned above, but then it turned out that his damage does not blow boxes. |
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
<?php | |
... | |
/** | |
* https://github.com/yiisoft/yii/issues/1197 | |
* | |
* @param bool $resetDefault | |
* | |
* @return $this|GxActiveRecord | |
*/ | |
public function resetScope($resetDefault = 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
... | |
nod_bench = Benchmark.measure do | |
input_file = ... | |
... |
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
... | |
lang.each do |section| | |
articles = Utils.get_articles(json, section) | |
next unless articles | |
... | |
end | |
... |
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
<?php | |
use Symfony\Component\HttpFoundation\Session\SessionInterface; | |
class AppDefaultAuthenticator extends AbstractGuardAuthenticator implements AuthenticatorInterface | |
{ | |
... | |
private $session; | |
... | |
public function __construct(SessionInterface $session) { |
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
<?php | |
... | |
/** | |
* @ORM\Column(type="datetimetz", unique=false) | |
*/ | |
private $created_at; | |
/** | |
* @ORM\Column(type="datetimetz", unique=false) | |
*/ | |
private $updated_at; |
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
[ 3][t 4][1561985602.845554113][Td.cpp:4380][#1][!Td][&td_requests] Sending update: updateOption { | |
name = "version" | |
value = optionValueString { | |
value = "1.4.0" | |
} | |
} | |
[ 3][t 4][1561985602.846087217][Td.cpp:4380][#1][!Td][&td_requests] Sending update: updateAuthorizationState { | |
authorization_state = authorizationStateWaitTdlibParameters { | |
} | |
} |
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
... | |
val startMain = Intent(Intent.ACTION_MAIN) | |
startMain.addCategory(Intent.CATEGORY_HOME) | |
startMain.flags = Intent.FLAG_ACTIVITY_NEW_TASK | |
startActivity(startMain) | |
... |
NewerOlder