Items: A - 158mm B - 128mm C - 143mm D - 60mm E - 93mm
How many of each fit into 1500mm with only 5-10mm of wastage
a158 + b128 + c143 + d60 + e*60
// This handler does a 301 redirect to `/test` in a loop until browser throws ERR_TOO_MANY_REDIRECTS (using wrangler@beta) | |
export const onRequest: PagesFunction<unknown> = async ({ request, env }) => { | |
// The goal of this handler is to return a static file called `test.html`. | |
// Parsing `/test.html` directly returns a URL parsing error as per issue https://github.com/cloudflare/wrangler2/issues/165 | |
const assetReq = new Request("http://fakehost/test.html", { | |
cf: request.cf, | |
}); | |
const response = await env.ASSETS.fetch(assetReq); | |
return new Response(response.body, response); |
[package] | |
name = "async-graphql-example" | |
version = "0.1.0" | |
authors = ["Oscar Beaumont <oscar@otbeaumont.me>"] | |
edition = "2018" | |
[dependencies] | |
async-graphql = "3.0.17" | |
actix-web = "4.0.0-beta.14" | |
async-graphql-actix-web = "3.0.17" |
# This code does not work. | |
# The DeriveEntityModel panics with error `message: `"AccountId<String>"` is not a valid identifier` | |
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, SimpleObject)] | |
#[sea_orm(table_name = "tenant")] | |
#[graphql(name = "Tenant")] | |
pub struct Model { | |
#[sea_orm(primary_key, auto_increment = false)] | |
pub id: AccountId<String>, | |
pub name: String, |
[package] | |
name = "async-graphql-relay-example" | |
version = "0.1.0" | |
authors = ["Oscar Beaumont <oscar@otbeaumont.me>"] | |
edition = "2018" | |
[dependencies] | |
async-graphql = "3.0.17" | |
actix-web = "4.0.0-beta.14" | |
async-graphql-actix-web = "3.0.17" |
[package] | |
name = "sea-orm-test" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
sea-orm = { version = "0.4.2", features = [ "sqlx-sqlite", "runtime-tokio-native-tls", "macros" ], default-features = false } | |
tokio = { version = "1", features = ["full"] } |
Items: A - 158mm B - 128mm C - 143mm D - 60mm E - 93mm
How many of each fit into 1500mm with only 5-10mm of wastage
a158 + b128 + c143 + d60 + e*60
hello: {{ (datasource "config").test }} |
[package] | |
name = "rust-actix-scope-middleware-bug" | |
version = "0.1.0" | |
authors = ["Oscar Beaumont <oscar@otbeaumont.me>"] | |
edition = "2018" | |
[dependencies] | |
actix-web = "3.3.2" |
[package] | |
name = "async-graphql-issue" | |
version = "0.1.0" | |
authors = ["Oscar Beaumont <oscar@otbeaumont.me>"] | |
edition = "2018" | |
[dependencies] | |
async-graphql = "2.8.5" | |
tokio = { version = "0.2.22", features = ["full"] } |
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit } | |
echo "Configure Computer Name" | |
$computerName = Read-Host 'Enter New Computer Name' | |
Write-Host "Renaming this computer to: " $computerName -ForegroundColor Yellow | |
Rename-Computer -NewName $computerName | |
echo "Fixing time" | |
Set-TimeZone "W. Australia Standard Time" | |
net start w32time |