Skip to content

Instantly share code, notes, and snippets.

@tomalexander
tomalexander / Dockerfile
Created August 7, 2019 14:52
Emacs lsp-mode save hook call process region issue
FROM alpine:3.10.1
RUN apk --no-cache add bash emacs python3 py3-setuptools
RUN pip3 install python-language-server black
RUN mkdir -p /root/demo_python_project/.git
COPY dot_emacs /root/.emacs
COPY demo.py /root/demo_python_project/demo.py
CMD /usr/bin/emacs /root/demo_python_project/demo.py

Keybase proof

I hereby claim:

  • I am tomalexander on github.
  • I am tomalexander (https://keybase.io/tomalexander) on keybase.
  • I have a public key whose fingerprint is 5AB5 1C7B B8EB 98DE D427 2022 4D03 6410 C015 A40F

To claim this, I am signing this object:

@tomalexander
tomalexander / main.rs
Created March 15, 2017 06:31
take_until_parser_matches
#[macro_use]
extern crate nom;
use nom::{IResult, line_ending, Needed, Slice, InputLength};
use std::str;
macro_rules! take_until_parser_matches(
($i:expr, $submac:ident!( $($args:tt)* )) => (
{
@tomalexander
tomalexander / main.cpp
Created March 20, 2015 23:37
Minimum for segfault on linux
#include <QtWidgets/QApplication>
#include "main_window.h"
#include <string>
#include <iostream>
int main(int argc, char **argv)
{
QApplication app (argc, argv);
main_window window;
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2
owF9kntQFVUcx3lVQJlRM1byuqxAAyLu+3FJBy+BDj1gKAYLivbsnnNZHvded+8F
Ee6AkaBAEwJjCKSMERNiZNiQwxT8gZSoo+SIOEyNSg6Cg6LxygGjvWST9Ud7/tnz
O5/zPd/v+Z2aVZ5u3u7p02RRH2GIdD87CdzeKq87WoQBq1yIGYswKVeBFrvrzyLm
QcyI5cBCIGowWrEaLFYZRmdrhodMFJYPVU2xWnQKj+aiKcwZ5cJdm5FiMUPVpiou
LUwmAM8KjMCzPCciBHGeABIDBAZARJEcAIgiSJwUdcksq2b/16nYimamIutVxhSf
oPMmU8IKv0Vfc6wscALCGUCxHEnKFE7K+gAiBDwp8jxkcNwFalB9GElSRWTPUXJz
oeqynAfVnFyYqVqtK7klu+KiCJrgCZzhcEE3JWpZ+j6CoAhA4YjXjQNBlCCiOYER