git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
cd ~/.emacs.d
bin/doom install
Optional
{ | |
"input": { | |
"blocklist": [], | |
"compressor": { | |
"attack": 20.0, | |
"boost-amount": 6.0, | |
"boost-threshold": -72.0, | |
"hpf-frequency": 10.0, | |
"hpf-mode": "off", | |
"input-gain": 0.0, |
// Logiops (Linux driver) configuration for Logitech MX Master 3. | |
// Includes gestures, smartshift, DPI. | |
// Tested on logid v0.2.2-35-g1c209ed. | |
// File location: /etc/logid.cfg | |
devices: ({ | |
name: "Wireless Mouse MX Master 3"; | |
smartshift: { |
use std::collections::HashMap; | |
#[derive(Debug)] | |
enum Type { | |
Num, | |
Bool, | |
List(Box<Type>), | |
Func(Box<Type>, Box<Type>), | |
} |
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "postgresql-inside-nixshell"; | |
buildInputs = [ | |
glibcLocales | |
(pkgs.postgresql.withPackages (p: [ p.postgis ])) | |
sqitchPg | |
pgcli |
struct Assignment {} | |
enum CodeNode { | |
Assignment(Assignment), | |
} | |
enum CodeNodeRef<'a> { | |
Assignment(&'a Assignment), | |
} | |
impl<'a> From<&'a Assignment> for CodeNodeRef<'a> { | |
fn from(x: &'a Assignment) -> Self { | |
CodeNodeRef::Assignment(x) |
#!/usr/bin/sh | |
# which window to be warped to | |
dir=$1 | |
fwid=$(bspc query -N -n $dir) | |
if [ -n "$fwid" ] ; then | |
wattr wh $fwid | { | |
read width height | |
#include <mutex> | |
#include <vlc/vlc.h> | |
#include <stb_image.h> | |
#include <nanogui/nanogui.h> | |
class VideoView: public nanogui::GLCanvas { | |
public: | |
nanogui::GLShader shader; | |
GLuint textureId; |
/* | |
* This script will create base62_encode() and base62_decode() in the current schema of a postgresql database. | |
* Give it a star if you find it useful. | |
*/ | |
CREATE OR REPLACE FUNCTION base62_encode( long_number bigint ) | |
RETURNS text | |
AS $BODY$ | |
/* | |
* base62_encode() |