Skip to content

Instantly share code, notes, and snippets.

@quanticle
quanticle / large_markdown.md
Last active June 17, 2020 21:13
Large Markdown File
@quanticle
quanticle / the_generals.md
Created May 18, 2020 17:13
The Generals Outline

The Generals

Prologue: Capt. William Depuy and the 90th Division in Normandy, summer 1944

  • The 90th Division in June 1944 was a killing machine... of its own men
  • Completely stalled out, even in the face of light German opposition
    • Requested replacements totalling > 100% in six weeks of combat operations
    • Average term of service of a lieutenant leading a platoon: two weeks
  • Because of this, Lt. Gen. J. Lawton Collins relieved Brig. Gen. MacKelvie and replaced him with Maj. Gen. Eugene Landrum
  • Also ordered the relief of two of MacKelvie's subordinates:
@quanticle
quanticle / evangelion_notes.md
Created October 8, 2019 04:29
Evangelion Notes

Episode 1: Angel Attack

  • OP is really good; I’d forgotten how good A Cruel Angel’s Thesis was
  • 2015
  • Flooded city (Tokyo?)
  • Row of tanks lined up (against what?)
  • Evacuation order
  • Boy standing at a phone booth – Shinji Ikari
  • Sees a blue-haired girl standing out of the corner of his eye; looks agains and she’s gone
  • Immediately after that – large explosion and we see the giant monster, under attack by a bunch of hover-jets
@quanticle
quanticle / stoned_temple_of_doom.md
Created August 26, 2019 05:55
Stoned Temple of Doom Albums

Stoned Temple of Doom

  • Coat - Doomsdays (Full Album)
  • Nazca Space Fox - Nazca Space Fox (Full Album)
  • Oblivion Reptilian - Fried On Rock (2019) (New Full Album)
  • El Jefazo - Simbiosis (2019) (New Full Album)
  • Minus Green - Equals Zero (2019) (New Full Album)
  • Comacozer - Mydriasis (2019) (New Full Album)
  • Jesus the Snake - Black Acid, Pink Rain (2019) (New Full Album)
  • Mantra Machine - Heliosphere (2019) (New Full Album)
@quanticle
quanticle / kill_buffer_and_frame.el
Created June 24, 2019 15:56
Kill buffer and frame
(defun kill-buffer-and-frame ()
(interactive)
(progn
(kill-buffer)
(delete-frame)))
(global-set-key (kbd "C-x 5 k") 'kill-buffer-and-frame)
(require 'package)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(proto (if no-ssl "http" "https")))
;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives (cons "gnu" (concat proto "://elpa.gnu.org/packages/")))))
> im going to get blackout drunk this weekend and drop in a generic makefile for this project
> when you invoke cmake it spends like a full minute resolving dependencies
> because it literally scans the source
> cmake encourages you to do things like 'include "myheader.h"' instead of giving the full path to myheader.h
> which is dumb for 2 reasons
> 1: when i look at that line i have no idea where that file is unless i go looking for it
> 2: you literally cant have to files by the same name even if theyre 20 directories apart
> cmake is ~~smart~~ and will find the file for u
> to save you a few keystrokes the literal one time you ever write that include line
> and all the syntax is overly complex and over engineered
@quanticle
quanticle / test.js
Last active May 9, 2019 03:33
How do I wait for a promise to resolve?
browser.webNavigation.onBeforeNavigate.addListener(e => {
let originalUrl = e.url;
console.log("Original URL: " + originalUrl);
let replaceRe = /(.*)coolSite/(.*)/;
let newUrl = originalUrl.replace(replaceRe, "$1coolerSite$2");
async function checkUrl(){
try {
let response = await fetch(newUrl, {method: "HEAD"});
if(!response.ok){
@quanticle
quanticle / fighter_plane_generations.md
Created February 18, 2019 05:37
Fighter Plane Generations

First generation

  • Characteristics
    • High-subsonic speeds
    • Straight wings
    • Little difference from the final generation of propeller-driven aircraft
    • Mechanical control systems
    • Optical gunsights
  • Examples:
  • F-80 Shooting Star