Skip to content

Instantly share code, notes, and snippets.

View ldalessa's full-sized avatar

Luke D'Alessandro ldalessa

View GitHub Profile
@ldalessa
ldalessa / emacs-pkg-install.sh
Last active February 24, 2023 20:24 — forked from padawanphysicist/emacs-pkg-install.sh
Install emacs packages from the command-line
#!/bin/bash
#
# I wrapped the code constructed in
#
# http://hacks-galore.org/aleix/blog/archives/2013/01/08/install-emacs-packages-from-command-line
#
# in a single bash script, so I would a single code snippet.
#
# Packages to be installed
@ldalessa
ldalessa / tag_invoke.hpp
Created May 6, 2021 23:45 — forked from ericniebler/tag_invoke.hpp
Simple implementation of the tag_invoke customization point
#include <utility>
#include <type_traits>
namespace _tag_invoke {
void tag_invoke();
struct _fn {
template <typename CPO, typename... Args>
constexpr auto operator()(CPO cpo, Args&&... args) const
noexcept(noexcept(tag_invoke((CPO &&) cpo, (Args &&) args...)))