Skip to content

Instantly share code, notes, and snippets.

Rohit Patnaik quanticle

Block or report user

Report or block quanticle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View kill_buffer_and_frame.el
(defun kill-buffer-and-frame ()
(interactive)
(progn
(kill-buffer)
(delete-frame)))
(global-set-key (kbd "C-x 5 k") 'kill-buffer-and-frame)
View emacs_windows_ssl.el
(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/")))))
View cmake_rant.txt
> 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
How do I wait for a promise to resolve?
View test.js
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){
View fighter_plane_generations.md

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
@quanticle
quanticle / meeting_notes.md
Created Feb 14, 2019
2019-02-13 Clojure MN Meetup
View meeting_notes.md

AWS API Library from Cognitect: cognitect-labs/aws-api

  • Authentication
  • S3 User
  • IAM user
  • Operations
  • Documentation
  • AWS SDKs often include extra functionality that's not in the library itself
View reading_list.md

Reading List

  • Holiday - Trust Me I'm Lying: Confessions of a Media Manipulator
  • Vaughan - Challenger Launch Decision: Risky Technology, Culture and Deviance at NASA (reread)
  • Zuboff - The Age of Surveillance Capitalism
  • Ousterhout - A Philosophy of Software Design
  • Mao, Lawson - The Qing Empire and the Opium War: The Collapse of the Heavenly Dynasty (Cambridge China Library)
  • Kuran - Private Truths, Public Lies: The Social Consequences of Preference Falsification
  • Tuchman - The Guns of August
  • Furet - The Passing of an Illusion: The Idea of Communism in the Twentieth Century
@quanticle
quanticle / virgin_yhwh_vs_chad_shiva.md
Last active Oct 19, 2018
Virgin Yahweh vs. Chad Shiva
View virgin_yhwh_vs_chad_shiva.md

Virgin Yahweh vs. Chad Shiva

Yahweh

  • Scatters followers for constructing a building
  • Insecure, demands exclusive attention
  • Never married
  • Can't even kill his son, has to have Romans do it
  • Waits three days to ressurect son, then sends him away to await the "second coming"
  • Blows up evil cities
View punch_to_sanction.md

Referring to now here's why I'm punching you

A premise of this post is that sanctioning people is sometimes better than the alternatives.

I mean that literally, but mostly metaphorically. Things I take as metaphorical sanctioning include name calling, writing angry tweets to or about someone, ejecting them from a group, callout posts, and arguing that we should sanction them.

Given that sanctioning people is sometimes better than the alternatives, I think we need to be able to have conversations about when “sometimes” is. And indeed we can and do have those conversations. Many words have been spilled on the subject.

But I think it’s probably a good idea to try to avoid having those conversations while actually sanctioning people.

View 2018-2019_Premier_League_Season.md

2018-2019 Premier League Season

August

Friday 2018-08-10

  • Manchester United 2 - 1 Leicester City

Saturday 2018-08-11

  • Newcastle United 1 - 2 Tottenham Hotspur
  • AFC Bournemouth 2 - 0 Cardiff City
You can’t perform that action at this time.