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
[package] | |
name = "twitch_tokens" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
reqwest = "0.11.16" | |
tokio = { version = "1.27.0", features = ["macros", "rt-multi-thread"] } |
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
{ | |
"rust-analyzer.completion.snippets.custom": { | |
"Arc::new": { | |
"postfix": "arc", | |
"body": "Arc::new(${receiver})", | |
"requires": "std::sync::Arc", | |
"description": "Put the expression into an `Arc`", | |
"scope": "expr" | |
}, | |
"Rc::new": { |
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
fn defer<F: FnOnce()>(f: F) -> impl Drop { | |
struct D<F: FnOnce()>(Option<F>); | |
impl<F: FnOnce()> Drop for D<F> { | |
fn drop(&mut self) { | |
if let Some(f) = self.0.take() { | |
f() | |
} | |
} | |
} | |
D(Some(f)) |
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
#[derive(Debug)] | |
struct Error; | |
struct SharedPool { | |
a: PoolOptions, | |
} | |
struct PoolOptions; | |
async fn check<'s: 'p, 'p>( | |
mut _conn: Floating<'s>, |
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
[package] | |
name = "maybe" | |
version = "0.1.0" | |
edition = "2018" | |
resolver = "2" | |
[dependencies] | |
sqlx = { version = "0.5.7", default-features = false, features = [ | |
"runtime-tokio-native-tls", |
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
[package] | |
name = "maybe" | |
version = "0.1.0" | |
edition = "2018" | |
resolver = "2" | |
[dependencies] | |
sqlx = { version = "0.5.7", default-features = false, features = [ | |
"runtime-tokio-native-tls", |
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
// ==UserScript== | |
// @name clone_github_on_vscode | |
// @namespace http://greasespot.net/ | |
// @version 0.2 | |
// @description Let you open Github repositories in vscode | |
// @author idanp, emilgardis | |
// @match https://github.com/* | |
// @grant none | |
// ==/UserScript== |
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
1 | |
00:00:00,000 --> 00:00:03,416 | |
KODJO: At 9, since this last segment got a bit of the rails, we have of course a guest | |
2 | |
00:00:03,416 --> 00:00:08,875 | |
and that is Anniefuchsia who is super big on twitch and we are going to learn all about it | |
3 | |
00:00:11,291 --> 00:00:15,125 |
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
Unhandled exception: c0000005 | |
Date/Time: 2018-01-22, 10:45:23 | |
Fault address: 7FF88103F497 (d:\program files (x86)\obs-studio\obs-plugins\64bit\advanced-scene-switcher.dll) | |
libobs version: 20.1.3 | |
Windows version: 10.0 build 15063 (revision: 850; 64-bit) | |
CPU: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz | |
Thread 1854 (Crashed) | |
Stack EIP Arg0 Arg1 Arg2 Arg3 Address |
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
extern crate cortex_m; | |
extern crate cortex_m_rt; | |
#[macro_use] | |
extern crate cortex_m_rtfm; | |
extern crate pac; // Our peripheral access crate | |
use rtfm::{C1, P0, P1, Resource, T0, T1, TMax}; | |
peripherals! { | |
GPIOA: Peripheral { |
NewerOlder