Invoke with:
python main.py calendar.ics 2 0 0
`python
{ | |
"1": [ | |
"\u4e00", | |
"\u4e03", | |
"\u4e09", | |
"\u4e0a", | |
"\u4e0b", | |
"\u4e5d", | |
"\u4e8c", | |
"\u4eba", |
// Load Wi-Fi library | |
#include <ESP8266WiFi.h> | |
#include <Adafruit_Sensor.h> | |
#include "DHT.h" | |
#include <stdio.h> | |
// Replace with your network credentials | |
const char* ssid = "SSID"; | |
const char* password = "PASSWORD"; |
Invoke with:
python main.py calendar.ics 2 0 0
`python
export const checkInput = (input: any, requiredKeys: string[], validator: {[key: string]: (arg0: any) => boolean | string | Response}): Response | true => { | |
for (const key of requiredKeys) { | |
if (!(key in input) || input[key] == null ) { | |
return new Response(JSON.stringify({error: `${key}-not-specified`}), {status: 400}); | |
} | |
if (key in validator) { | |
const res = validator[key](input[key]); | |
if (typeof res === "string") { | |
return new Response(JSON.stringify({error: `${key}-${res}`}), {status: 400}); | |
} else if (typeof res === "boolean" && !res) { |
use crate::pipeline::PipelineBuilder; | |
use crate::resources::{AllocUsage, AllocatedBuffer, Allocator, Texture, TextureId, TextureManager}; | |
use crate::util::{load_shader_module, DeletionQueue}; | |
use crate::{SubmitContext, FRAME_OVERLAP}; | |
use ash::{vk, Device}; | |
use bytemuck::{Pod, Zeroable}; | |
use egui::ahash::{HashMap, HashMapExt}; | |
use egui::epaint::{ImageDelta, Primitive}; | |
use egui::{Context, FullOutput, ImageData, TexturesDelta}; | |
use glam::{Vec3}; |