- 2 28oz cans whole peeled tomato
- 1 medium red onion, chopped
- 30-40g or 8 cloves sliced garlic
- 50-60g or 4Tbsp (a very long squeeze) olive oil
- 15g or 2 1/2tsp salt
- 15g or 3 2/3tsp sugar
- 750g/mL or 3c chicken stock (+ additional 75g or so to thin soup if needed)
- 40g or 3Tbsp tomato paste
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
#![cfg(target_os = "macos")] | |
use rustix::event::kqueue; | |
use std::io::{Read, Write}; | |
use std::net::{TcpListener, TcpStream}; | |
use std::os::fd::AsRawFd; | |
use std::time::Duration; | |
fn main() { | |
// kickoff a simple echo server we can hit for demo purposes |
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
#| | |
Written by Chuck in 2024 | |
https://bogorad.github.io/ | |
Based on the brilliant Miryoku_kmonad => Kinesis layout | |
https://github.com/manna-harbour/miryoku_kmonad | |
With enormous help from the author of Kanata | |
https://github.com/jtroo |
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
{ | |
"description": "Change caps_lock to left_control if pressed with other keys, change caps_lock to escape if pressed alone.", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] |
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
//! This module handles the conversion from `Pollable` -> `Future`. We do this | |
//! by creating an equivalent implementation to the `polling` crate. Once | |
//! https://github.com/smol-rs/polling/issues/102 has been resolved, this module | |
//! will likely no longer be needed. | |
use slab::Slab; | |
use std::mem; | |
use wasi::io::poll::{poll, Pollable}; | |
/// Waits for I/O events. |
Concurrency is a system-structuring mechanism, parallelism is a resource. (ref)
There's an important distinction between "parallelism" as a resource, and "parallel execution". The two are often confused, but they are in fact distinct. The key separator is "concurrency":
no parallelism | has parallelism | |
---|---|---|
no concurrency | sequential execution | sequential execution † |
has concurrency | concurrent execution ‡ | parallel execution |
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
const INPUT: &str = r#" o Relation Name: alternate | |
o Description: Designates a substitute for the link's context. | |
o Reference: [W3C.REC-html401-19991224] | |
o Relation Name: appendix | |
o Description: Refers to an appendix. | |
o Reference: [W3C.REC-html401-19991224] | |
o Relation Name: bookmark | |
o Description: Refers to a bookmark or entry point. |
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
use crate::headers::{HeaderName, HeaderValue, Headers, ToHeaderValues}; | |
struct CustomHeader {} | |
impl CustomHeader { | |
/// Create a new instance of `CustomHeader`. | |
fn new() -> Self { | |
todo!(); | |
} |
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
PS C:\Users\yoshu\Code\rust> py ./x.py build | |
Updating only changed submodules | |
Submodules updated in 0.26 seconds | |
Blocking waiting for file lock on package cache | |
Blocking waiting for file lock on package cache | |
Finished dev [unoptimized + debuginfo] target(s) in 2.21s | |
Building stage0 std artifacts (x86_64-pc-windows-msvc -> x86_64-pc-windows-msvc) | |
Finished release [optimized] target(s) in 0.62s | |
Copying stage0 std from stage0 (x86_64-pc-windows-msvc -> x86_64-pc-windows-msvc / x86_64-pc-windows-msvc) | |
Building LLVM for x86_64-pc-windows-msvc |
NewerOlder