Skip to content

Instantly share code, notes, and snippets.

View tdlib.log
[ 3][t 8][1526622432.139708281][SecretChatsManager.cpp:483][!SecretChatsManager] Create SecretChatActor: [id:-1052484648]
[ 3][t 8][1526622432.139754534][SecretChatActor.cpp:1844][!SecretChat -1052484648] SecretChatActor: start_up
[ 4][t 8][1526622432.139801502][utils.cpp:21][!SecretChat -1052484648] Create storer for messages_getDhConfig {
version = 0
random_length = 0
}
[ 3][t 8][1526622432.139820814][NetQuery.h:351][!SecretChat -1052484648] [Query:[id:983040][tl:0x26cf8950][state:Query]]
[ 3][t 8][1526622432.139829874][NetQuery.h:245][!SecretChat -1052484648][&net_query] [Query:[id:983040][tl:0x26cf8950][state:Query]] [debug:dispatch]
[ 3][t 8][1526622432.139842987][NetQuery.h:245][!SecretChat -1052484648][&net_query] [Query:[id:983040][tl:0x26cf8950][state:Query]] [debug:sent to main session multi proxy DcId{2}]
View animal.rb
class User < ActiveRecord::Base
has_many :animals
has_many :dogs
has_many :cats
end
class Zoo < ActiveRecord::Base
has_many :animals
has_many :elephants
end
View attributes.rs
//
// #[item_attribute] - attribute for module or file
//
// #![crate_attribute] - attribute for crate
//
// - #[attribute = "value"]
// - #[attribute(key = "value")]
// - #[attribute(value)]
//
// #![crate_type = "lib"] - crate as library (instead `--crate-type` compile param)
View rust-class-method-and-trait.rs
// file_1.rs
//
// implement class method and instance method with the same name
//
struct Car {
stamp: &'static str
}
impl Car {
fn print() {
println!("It is Car class method!")