sudo apt-get install xserver-xorg-legacy
Edit /etc/X11/Xwrapper.config
allowed_users=anybody
needs_root_rights=yes
// top level is a throwaway heap object | |
// first heap object to be declared at the top level is the root object | |
// aligned concat (using alignment of token2) | |
<token1> , <token2> | |
// 1-byte packed concat (token2 alignment is treated as if 1) | |
<token1> <token2> | |
// zero-pad stream to largest aligned member since last statement or beginning of scope (struct alignment) |
# 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'): |