sudo apt-get install xserver-xorg-legacy
Edit /etc/X11/Xwrapper.config
allowed_users=anybody
needs_root_rights=yes
# import C functions and sanitize the scope | |
vvv bind glad | |
do | |
let glad = | |
include | |
options | |
.. "-I" module-dir "/glad/include" | |
"glad/src/glad.c" | |
do | |
using glad.extern |
(require 'org) | |
(defun org-pinboard-store-link () | |
"Store a link taken from a pinboard buffer." | |
(when (eq major-mode 'pinboard-mode) | |
(pinboard-with-current-pin pin | |
(org-store-link-props | |
:type "pinboard" | |
:link (alist-get 'href pin) | |
:description (alist-get 'description pin))))) |
#!/bin/bash | |
# | |
# ----------------------- | |
# | |
# This is a script that installs docker-ce (Docker Community Edition) on Debian 9 | |
# Inspired by https://gist.github.com/frgomes/a6f889583860f5b330c06c8b46fa0f42 | |
# | |
# ----------------------- | |
# Pre-requesite |
━━━━━━━━━━━━━━━━━━━━━━━━━ | |
I LOVE A SLIME'Y SWANK! | |
Drew Crampsie | |
━━━━━━━━━━━━━━━━━━━━━━━━━ | |
Table of Contents | |
───────────────── |
sudo apt-get install xserver-xorg-legacy
Edit /etc/X11/Xwrapper.config
allowed_users=anybody
needs_root_rights=yes
;; Based on the 01_InitRaytracing.cpp example from VkRayTutorials | |
;; Copyright (c) 2018 Adrian Medina | |
(ns vk.ray.tutorials.init-raytracing | |
(:gen-class) | |
(:require | |
[vk.ray.tutorials.util :as util]) | |
(:import | |
(java.nio ByteBuffer FloatBuffer IntBuffer LongBuffer) | |
(org.lwjgl PointerBuffer) |
if True: | |
pass | |
if True: | |
if True: | |
if True: | |
if True: | |
if True: | |
if True: | |
if True: | |
print("yup, syntactically valid Python") |
Long ago, the first time I read "The Pragmatic Programmer", I read some advice that really stuck with me.
"Don't Use Manual Procedures".
This in the chapter on Ubiquitous Automation. To summarize, they want you to automate all the things.
The trouble was that I hadn't much of an idea how to actually go
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
# Supporting Python 3 | |
import sys, os, re | |
try: bibtexdb = open(sys.argv[1]).read() | |
except: print("Error: specify the file to be processed!") | |
if not os.path.isfile('journalList.txt'): |
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.