Skip to content

Instantly share code, notes, and snippets.

View DarrenBaldwin07's full-sized avatar
🔬
:)

Darren Baldwin DarrenBaldwin07

🔬
:)
View GitHub Profile
#[derive(Clone, Copy, PartialEq, Eq)]
#[non_exhaustive]
enum Container {
Vector,
Any,
}
trait MyAny: Any {
fn get_container(&self) -> Container;
}
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Debug, Deserialize, Serialize)]
struct VexillaBaseStructThingy {
field1: String,
field2: i32,
#[serde(flatten)]
extra_fields: HashMap<String, serde_json::Value>,
}
name: Deploy
on:
push:
branches:
- branch
jobs:
deploy:
name: 🚀 Deploy
@DarrenBaldwin07
DarrenBaldwin07 / gist:a5a710db3273551cb0fe2ea745a9686e
Created August 13, 2023 14:02
Vanilla CSS fade-in animation
@keyframes enter {
0% {
opacity: 0;
transform: translateY(10px)
}
to {
opacity: 1;
transform: none
}
max_width = 150
hard_tabs = true
tab_spaces = 4
newline_style = "Unix"
use_small_heuristics = "Default"
reorder_imports = true
reorder_modules = true
remove_nested_parens = true
edition = "2021"
merge_derives = true
@DarrenBaldwin07
DarrenBaldwin07 / .prettierrc.json
Last active March 7, 2024 14:19
Prettier config
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"jsxBracketSameLine": true,
"printWidth": 80,
"proseWrap": "preserve",
"jsxSingleQuote": true,
"requirePragma": false,