Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
# Copyright Nils Deppe, 2017 | |
# Distributed under the Boost Software License - Version 1.0 | |
# Boost Software License - Version 1.0 - August 17th, 2003 | |
# Permission is hereby granted, free of charge, to any person or organization | |
# obtaining a copy of the software and accompanying documentation covered by | |
# this license (the "Software") to use, reproduce, display, distribute, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; company-insert-selected.el | |
;; | |
;; Similar to the way neocomplete package from Vim deals with autocompletion | |
;; | |
(defvar-local company-insert-selected--overlay nil) | |
(defun company--company-command-p (keys) | |
"Checks if the keys are part of company's overriding keymap" | |
(or (equal [company-dummy-event] keys) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func testCleanup() { | |
// Extend your class inline in order to add closure property `deinitCalled`, | |
// which indicates when/if your class's deinit() gets called | |
class ClassUnderTest: CLASS_YOU_WANT_TO_TEST { | |
var deinitCalled: (() -> Void)? | |
deinit { deinitCalled?() } | |
} | |
// Set up async expectation, which causes the test to wait for `deinitCalled` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Named tuple for C++ | |
// Example code from http://vitiy.info/ | |
// Written by Victor Laskin ([email protected]) | |
// Parts of code were taken from: https://gist.github.com/Manu343726/081512c43814d098fe4b | |
namespace foonathan { | |
namespace string_id { | |
namespace detail | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install reattach-to-user-namespace |
Mind expanding programming languages
- C
- Common Lisp (via LISP)
- Dedalus (via Datalog)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; See: https://www.reddit.com/r/emacs/comments/3icpo7/take_a_break_every_3_hours/ | |
(defvar breaktime-timer nil | |
"Holds the running break timer (if any).") | |
(defvar breaktime-interval (* 3 60 60) | |
"How often to take a break, in seconds.") | |
(defun breaktime--take-a-break () | |
(interactive) | |
(switch-to-buffer (get-buffer-create "*breaktime*")) | |
(let ((inhibit-read-only t)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Zenburn colours scheme for Xfce Terminal updated for Xfce4-terminal 0.6.3. Copy and paste the following in ${HOME}/.config/xfce4/Terminal/terminalrc: | |
ColorBackground=#404040 | |
ColorForeground=#F6F3E8 | |
ColorCursor=#8f8fafaf9f9f | |
ColorPalette=#3f3f3f3f3f3f;#e8e893939393;#9e9ecece9e9e;#f0f0dfdfafaf;#8c8cd0d0d3d3;#c0c0bebed1d1;#dfdfafaf8f8f;#efefefefefef;#3f3f3f3f3f3f;#e8e893939393;#9e9ecece9e9e;#f0f0dfdfafaf;#8c8cd0d0d3d3;#c0c0bebed1d1;#dfdfafaf8f8f;#efefefefefef |
NewerOlder