graph TD
subgraph engine["Gosub Engine"]
Engine["Engine"] --> ZoneManager["ZoneManager"]
ProcessRenderer["Global Renderer"]
end
subgraph za["Zone A"]
ZoneManager --> ZoneA["Zone A"]
This document describes the structure of the Gosub API.
First, we have a GosubEngine
. We instantiate this only once in our application/useragent and is capable of dealing
with multiple pages that can be rendered and used. We can send a configuration to the GosubEngine
to set up the
engine and to define certain behaviors.
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
[package] | |
name = "wgpu-test" | |
version = "0.1.0" | |
edition = "2024" | |
[dependencies] | |
vello = "0.4.0" | |
winit = "0.30.8" | |
pollster = "0.4.0" | |
image = "0.25.5" |
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::collections::HashMap; | |
use std::path::PathBuf; | |
use std::sync::{Arc, Mutex}; | |
use anyhow::anyhow; | |
use fontconfig::{Fontconfig, Pattern}; | |
use freetype::{Library, Face}; | |
use log::info; | |
// We need to deal with the following: |
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 nom; | |
use nom::{ | |
branch::alt, | |
bytes::complete::tag, | |
character::complete::{char, multispace0}, | |
combinator::{map, recognize}, | |
multi::separated_list1, | |
sequence::delimited, | |
IResult, |
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 fork::{fork, Fork}; | |
use std::{process, thread}; | |
use std::thread::sleep; | |
use anyhow::{anyhow, Error}; | |
use ipc_channel::ipc::{IpcReceiver, IpcSelectionResult}; | |
use ipc_channel::ipc::{self, IpcReceiverSet, IpcSender}; | |
use serde::{Deserialize, Serialize}; | |
use rand::Rng; | |
const MAX_PRIORITY: i8 = 127; |
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 libpep::*; | |
use libpep::simple::*; | |
use rand_core::OsRng; | |
use std::{fmt::Write, num::ParseIntError}; | |
use std::cell::RefCell; | |
use std::collections::HashMap; | |
use std::ops::Mul; | |
use std::rc::Rc; | |
pub fn decode_hex(s: &str) -> Result<Vec<u8>, ParseIntError> { |
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
[Stylesheet (5)] | |
[AtRule] name: media | |
[MediaQueryList (2)] | |
[MediaQuery] modifier: only media_type: screen | |
[Condition (1)] | |
[Feature] kind: Media name: -webkit-min-device-pixel-ratio | |
[Number] 1.25 | |
[MediaQuery] modifier: only media_type: screen | |
[Condition (1)] | |
[Feature] kind: Media name: min-resolution |
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 | |
namespace App\Form; | |
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; | |
use Symfony\Component\Form\FormInterface; | |
use Symfony\Component\Form\FormView; | |
use Symfony\Component\OptionsResolver\OptionsResolver; | |
class ChoiceTypeWithAttr extends ChoiceType |
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
package middleware | |
func (*JWTToken) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) { | |
tmp := mux.Vars(r) | |
// tmp is nil | |
// Do stuff | |
next(w, r) | |
} |
NewerOlder