Skip to content

Instantly share code, notes, and snippets.

Avatar

Cees de Groot cdegroot

View GitHub Profile
View gist:701bf648575e0b7a63a92f7463bd2888
(eval-after-load "term"
'(defun term-handle-ansi-terminal-messages (message)
;; Is there a command here?
(while (string-match "\eAnSiT.+\n" message)
;; Extract the command code and the argument.
(let* ((start (match-beginning 0))
(command-code (aref message (+ start 6)))
(argument
(save-match-data
(substring message
View direnv-install-links.sh
@cdegroot
cdegroot / gist:faea0f01e3df7267f5c26308db53459a
Created Mar 27, 2021
nonguix dotnet 5.0 -> dotnet core 3.1 patch
View gist:faea0f01e3df7267f5c26308db53459a
diff --git a/nongnu/packages/dotnet.scm b/nongnu/packages/dotnet.scm
index fa4c815..54e748f 100644
--- a/nongnu/packages/dotnet.scm
+++ b/nongnu/packages/dotnet.scm
@@ -81,11 +81,11 @@ Roslyn workspaces. It provides project dependencies and C# language services to
various IDEs and plugins.")
(license license:expat)))
-(define-public dotnet
- (let ((dotnet-sdk-version "5.0.4"))
View record_vs_struct.exs
defmodule User do
@defaults name: nil, age: 0
defstruct @defaults
import Record
defrecord(:user, @defaults)
end
defmodule Bench do
def run do
import User
loops = 1..10000000
View serial.txt
loader: version is 20151220+e48858d
memory: initial memory map:
0x0000000000001000-0x0000000000060000 (380 KiB) -> Internal
0x0000000000060000-0x000000000009f000 (252 KiB) -> Free
0x0000000000100000-0x00000000dfff0000 (3668928 KiB) -> Free
0x0000000000000001-0x0000000020000000 (524288 KiB) -> Free
bios: boot device ID is 0x80, partition offset is 0x1000
fs: mounted FAT on hd0,0 ('') (uuid: F766-8E3E)
fs: mounted ext2 on hd0,1 ('') (uuid: 95e269fa-6e6c-493b-87bc-78ddb0cf90dc)
device: detected devices:
View gist:9bc3b691463d21f4e3790566efe31ff4
Leaving directory ‘/home/cees/.emacs.d/elpa/ein-20190522.149’
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Compiling file /home/cees/.emacs.d/elpa/ein-20190522.149/ein-ac.el at Fri May 24 13:29:03 2019
View gist:18886fbb3b6a8afd6bacafde4de7dc26
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Compiling file /home/cees/.emacs.d/elpa/ein-20190522.149/ein-classes.el at Fri May 24 13:24:11 2019
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
View gist:d80cb52c0e770e9135a3674289c6bd4b
Compiling /home/cees/.emacs.d/elpa/ein-20190522.149/ein-ac.el...
Eager macro-expansion failure: (error "Don’t know how to make a localized variable an alias") [2 times]
Checking /home/cees/.emacs.d/elpa/ein-20190522.149... [2 times]
Compiling /home/cees/.emacs.d/elpa/ein-20190522.149/ein-cell-edit.el...
View repro.exs
method = :get
url = "http://foo.bar/lol"
headers = [host: "foo.bar"]
body = "This is some body stuff"
access_key_id = "1234"
secret_access_key = "abcdef"
region = "us-west-2"
aws_config = %{}
|> Map.put(:access_key_id, access_key_id)
View keybase.md

Keybase proof

I hereby claim:

  • I am cdegroot on github.
  • I am cdegroot (https://keybase.io/cdegroot) on keybase.
  • I have a public key ASBaqyYFuCevXtjGt1pXuQtrnihrtvnge_Ye9gR3EmPexwo

To claim this, I am signing this object: