Skip to content

Instantly share code, notes, and snippets.

View levkk's full-sized avatar
🐕
PgDog!

Lev Kokotov levkk

🐕
PgDog!
View GitHub Profile
PgDog Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by PgDog Inc or its affiliates (“PgDog”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to PgDog in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@PgDog.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
Copyright License. You hereby grant, and agree to grant, to PgDog a non-exclusive, perpetual, irrevocable, wor
@levkk
levkk / components.rs
Created August 25, 2023 19:45
Components (Rust)
use sailfish::TemplateOnce;
#[derive(TemplateOnce)]
#[template(path = "ui_components/parent.html"]
pub struct Parent {
pub items: Vec<Child>,
pub hidden: bool,
}
#[derive(TemplateOnce)]
@levkk
levkk / component.html
Last active August 25, 2023 19:45
Components (HTML)
<!-- parent.html -->
<div class="component-class">
<% for item in list { %>
<li><%= item %></li>
<% } %>
</div>
<!-- parent.html -->
<div class="components-class">
<% for item in list { %>