Skip to content

Instantly share code, notes, and snippets.

// source: https://github.com/serde-rs/json
let data = r#"{
"name": "John Doe",
"age": 43,
"phones": [
"+44 1234567",
"+44 2345678"
]
}"#;
//source: https://github.com/alexcrichton/toml-rs/blob/master/examples/decode.rs
let toml_str = r#"
global_string = "test"
global_integer = 5
[server]
ip = "127.0.0.1"
port = 80
[[peers]]
ip = "127.0.0.1"
port = 8080
#![allow(unused)]
fn main() {
let string = r##"He said, "I want to include "# in the sentence"."##; // " He said, "I want to include "# in the sentence".
println!("{}", string);
}
#![allow(unused)]
fn main() {
let string1 = r#"""#; // "
let string2 = r#""""""""#; // """"""
let string3 = r#"He asked,"Is rust awesome?""#; // He asked,"Is rust awesome?"
println!("{}", string1);
println!("{}", string2);
println!("{}", string3);
}
#![allow(unused)]
fn main() {
let string1 = r""; // nothing
let string2 = r"#"; // #
let string3 = r" _ there are spaces here _ "; // _ there are spaces here _
println!("{}", string1);
println!("{}", string2);
println!("{}", string3);
}
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <Thing.h>
#include <WebThingAdapter.h>
const char* ssid = <>;
const char* password = <>;
const int lampPin = 13;
/*
Firmata is a generic protocol for communicating with microcontrollers
from software on a host computer. It is intended to work with
any host computer software package.
To download a host software package, please click on the following link
to open the list of Firmata client libraries in your default browser.
https://github.com/firmata/arduino#firmata-client-libraries
/*
Firmata is a generic protocol for communicating with microcontrollers
from software on a host computer. It is intended to work with
any host computer software package.
To download a host software package, please click on the following link
to open the list of Firmata client libraries in your default browser.
https://github.com/firmata/arduino#firmata-client-libraries