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
| #include <esp_log.h> | |
| #include <esp_sleep.h> | |
| #include <ulp_riscv.h> | |
| #include <driver/rtc_io.h> | |
| #include <driver/gpio.h> | |
| #include <soc/rtc_periph.h> | |
| #include <freertos/FreeRTOS.h> | |
| #include <freertos/task.h> | |
| extern const uint8_t ulp_main_bin_start[] asm("_binary_ulp_main_bin_start"); |
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
| use std::time::Duration; | |
| use std::sync::atomic::{AtomicBool, Ordering}; | |
| use async_std::io::{self, ErrorKind}; | |
| use async_std::net::{ToSocketAddrs, UdpSocket}; | |
| use async_std::sync::{Arc, Weak}; | |
| use async_std::channel::{bounded, Sender, Receiver}; | |
| use async_std::task::{self, JoinHandle}; | |
| struct Listener { | |
| recv_task: Option<JoinHandle<()>>, |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int count = 0; | |
| void print(char* str) { | |
| count++; | |
| printf("%s\n", str); | |
| } |
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
| using System; | |
| using System.Linq; | |
| namespace NPlusOneCoordProblem | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| double R = 2; |
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
| using System; | |
| namespace OptionExample | |
| { | |
| public class Option<T> | |
| { | |
| private readonly bool _hasValue; | |
| private readonly T _value; | |
| public bool HasValue => _hasValue; |
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 | |
| require __DIR__ . '/../vendor/autoload.php'; | |
| use Discord\Discord; | |
| $discord = new Discord([ | |
| 'token' => '', | |
| 'logging' => false | |
| ]); |
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
| extern crate num_bigint; | |
| extern crate num_traits; | |
| mod utils; | |
| use num_bigint::BigUint; | |
| use utils::input_num; | |
| fn main() { | |
| let mut x = trim(input_num(10)); |
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
| #[macro_use] | |
| extern crate lazy_static; | |
| mod console_io; | |
| use console_io::*; | |
| use std::fmt; | |
| use std::collections::HashMap; | |
| use std::ops::{Add, Shl, Shr, Mul}; |
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
| use async_std::prelude::FutureExt; | |
| use async_std::net::SocketAddr; | |
| use async_std::sync::{channel, Sender, Receiver}; | |
| use async_std::task; | |
| const QUEUE_SIZE: usize = 128; | |
| pub struct Communicator<T> { | |
| tx_packet: Sender<T>, | |
| rx_packet: Receiver<T>, |
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
| use async_std::sync::{Arc, Weak, Mutex}; | |
| use async_std::task::{self, JoinHandle}; | |
| use futures::future::{abortable, Aborted, AbortHandle}; | |
| use std::time::Duration; | |
| fn main() { | |
| task::block_on(async { | |
| let _peer = Peer::new(); | |
| }); | |
| } |
NewerOlder