Skip to content

Instantly share code, notes, and snippets.

View benzap's full-sized avatar
🏠
Working from home

Benjamin Zaporzan benzap

🏠
Working from home
View GitHub Profile
@benzap
benzap / .emacs.el
Last active September 14, 2023 14:39
Emacs Configuration
;; add our main ~/.emacs.d/ to the load-path (if it hasn't already been done)
;;(add-to-list 'load-path "~/.emacs.d/")
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize)
;; Package Require function. It resolves any require dependencies
;; through the package manager.
(setq package-refresh-first-time nil)
@dscharrer
dscharrer / infix_operator.cpp
Created June 7, 2012 07:38
The proper way to call std::swap
#include <type_traits>
namespace detail {
// No need to give up constexpr for std::forward
template <class T>
constexpr T && forward(typename std::remove_reference<T>::type & t) noexcept {
return static_cast<T &&>(t);
}