Skip to content

Instantly share code, notes, and snippets.

View DylanLukes's full-sized avatar

Dylan Lukes DylanLukes

  • University of California San Diego
  • San Diego, CA
View GitHub Profile
@DylanLukes
DylanLukes / cosmo.plugin.zsh
Last active November 5, 2023 19:54
Cosmo ZSH Plugin
cosmo() {
declare cosmo_path=${COSMO_PATH:-/opt/cosmos/bin:/opt/cosmo/bin}
declare ape_bin
# If no arguments were provided, abort.
if [[ $# -eq 0 ]]; then
echo "usage: cosmo <command> [<args>]"
return 1
fi
@petrilli
petrilli / main.py
Last active January 5, 2024 19:50
Example combination of FastAPI and Pydantic with aiosql and aiosqlite
# -*- coding: utf-8 -*-
"""Example combination of FastAPI and Pydantic with aiosql and aiosqlite.
This module demonstrates the minimum viable integration approach for putting
together a few components:
- FastAPI. This provides a very high-performance and type-driving approach to
building APIs in Python
- Pydantic. A powerful data validation library.
- aiosql. Inspired by annosql and originally Clojure's yeSql, a way to programatically,
@nevkontakte
nevkontakte / CLion_Ninja.md
Last active May 28, 2023 11:21
Ninja support for CLion IDE

Ninja support for CLion IDE

This script enables Ninja-powered builds in CLion IDE by wrapping around CMake, which it uses. See my blog post for details.

Disclaimer

This script is provided AS IS with no guarantees given or responsibilities taken by the author. This script relies on undocumented features of CLion IDE and may lead to instability of build and/or IDE. Use it on your own risk under WTFPL terms.