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
#[derive(FromVariant)] | |
struct EnumVariantData { | |
ident: syn::Ident, | |
} | |
#[derive(FromDeriveInput)] | |
#[darling(supports(enum_unit), forward_attrs(allow, doc, cfg))] | |
struct EnumData { | |
ident: syn::Ident, | |
data: ast::Data<EnumVariantData, ()>, |
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
pub mod chrono_datetime_option_as_bson_datetime_option { | |
use bson::{Bson, DateTime}; | |
use chrono::Utc; | |
use serde::{Deserialize, Deserializer, Serialize, Serializer}; | |
use std::result::Result; | |
use serde::de::Error; | |
pub fn deserialize<'de, D>(deserializer: D) -> Result<Option<chrono::DateTime<Utc>>, D::Error> | |
where | |
D: Deserializer<'de>, |
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
// | |
// DraggableStepper.swift | |
// | |
// Created by Jack Hogan on 1/9/22. | |
// Copyright © 2022 Jack Hogan. Licensed Under MIT License. | |
// | |
/* | |
MIT License |
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
const express = require('express') | |
const app = express() | |
const fs = require('fs') | |
const path = require('path') | |
const port = 80 | |
const secret = 'testing' | |
const safeDir = 'E:/Programming/Lua' | |
app.use('/luasync', (req, res) => { | |
if (req.headers.authorization == null) { |
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
// MIT License | |
// Copyright (c) 2021 Jack Hogan | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
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
// MIT License | |
// Copyright (c) 2021 Jack Hogan | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |