Skip to content

Instantly share code, notes, and snippets.

//
// Author: Jonathan Blow
// Version: 1
// Date: 31 August, 2018
//
// This code is released under the MIT license, which you can find at
//
// https://opensource.org/licenses/MIT
//
//
@Laforeta
Laforeta / caddyfile
Created May 10, 2018 10:24
Simple caddyfile example with forward proxy
https://$domain:$port {
gzip
log /var/log/caddy.log
tls $email
forwardproxy {
basicauth $user $passwd
}
}
@akirak
akirak / ddskk-usage.org
Last active May 30, 2021 17:41
How to use DDSKK, Japanese input method for Emacs

How to Use DDSKK Japanese Input Method for Emacs

This tutorial describes the basic usage of DDSKK Japanese input method for Emacs.

Installation and configuration

Install ddskk package.

Turn on skk-mode minor mode to write Japanese. It is recommended that you should bind a key to this command:

@rygorous
rygorous / mdct_via_fft.m
Created October 3, 2017 09:14
MDCT via FFT
function y = mdct_via_fft(x)
% This was edited together from multiple fns in the original source
% for this gist, I might well have introduced errors along the way.
% Rows of x correspond to samples
nrows = size(x,1);
if mod(nrows,4) ~= 0 || nrows<8
error('Number of rows must be multiple of 4 and at least 8.');
end
nr4 = nrows/4;
#include <stdexcept>
#include <cmath>
#include <vector>
#include <Windows.h>
#include <Psapi.h>
#include <detours.h>
#include <d3d9.h>
#include <d3dx9.h>
#define PI 3.14159F