- Install Deno
- Install proxy:
deno install --name embed-proxy --allow-net https://gist.githubusercontent.com/zicklag/63e1d3e7d0bc7e99f5cf8e16d185d878/raw/c423f09215ab5a2c4de84e548dcc6dc575d54076/mod.ts
- Run Proxy
➜ embed-proxy --help
use std::sync::Arc; | |
use bevy::{ | |
asset::{Asset, AssetPath, LoadState}, | |
reflect::FromReflect, | |
}; | |
use bevy_has_load_progress::{HasLoadProgress, LoadProgress, LoadingResources}; | |
use crate::prelude::*; |
use bevy::{ | |
ecs::system::SystemParam, | |
prelude::*, | |
utils::{FloatOrd, HashMap}, | |
}; | |
use bevy_prototype_lyon::{entity::ShapeBundle, prelude::*, shapes::Line}; | |
use bevy_rapier2d::{ | |
prelude::*, | |
rapier::{ | |
math::Point, |
import { readerFromStreamReader, readAll } from "https://deno.land/[email protected]/streams/conversion.ts"; | |
import { serve } from "https://deno.land/[email protected]/http/server.ts"; | |
import { decode as decodeImage, Image } from "https://deno.land/x/[email protected]/mod.ts"; | |
import { encode as encodeBlurhash } from "https://esm.sh/[email protected]"; | |
function clientError(message: string): Response { | |
return new Response(message, { | |
status: 400, headers: { | |
'x-error': message, | |
} |
deno install --name embed-proxy --allow-net https://gist.githubusercontent.com/zicklag/63e1d3e7d0bc7e99f5cf8e16d185d878/raw/c423f09215ab5a2c4de84e548dcc6dc575d54076/mod.ts
➜ embed-proxy --help
import { copy } from "https://deno.land/[email protected]/streams/conversion.ts"; | |
const DATA_FILE = Deno.args[0]; | |
const LISTEN_PORT = Deno.args[1]; | |
const TARGET_ADDR = Deno.args[2]; | |
const DOMAIN = Deno.args[3]; | |
interface AcmeJsonFile { | |
letsencrypt: { | |
Certificates: { |
use bevy::prelude::*; | |
use custom_commands::*; | |
struct MyPlugin; | |
// Create a marker type that represents our custom command queue | |
struct MyCmds; | |
impl Plugin for MyPlugin { | |
fn build(app: &mut App) { |
use std::collections::VecDeque; | |
use std::marker::PhantomData; | |
use bevy::{ | |
ecs::{ | |
entity::Entities, | |
system::{CommandQueue, SystemParam}, | |
}, | |
prelude::*, | |
reflect::FromType, |
use std::sync::Arc; | |
use eframe::{ | |
egui_wgpu::{self, wgpu}, | |
wgpu::util::DeviceExt, | |
}; | |
pub struct Custom3d { | |
angle: f32, | |
} |
import bs58 from "https://cdn.skypack.dev/bs58"; | |
const bytes = bs58.decode(Deno.args[0]); | |
console.log(JSON.stringify(Array.from(bytes))); |
<html> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> | |
</head> | |
<script | |
src="./webgl-lint.gitignore.js" | |
data-gman-debug-helper=' | |
{ | |
"throwOnError": false | |
} |