Skip to content

Instantly share code, notes, and snippets.

@failable
failable / shell-command-with-aliasses.el
Created September 27, 2023 16:17 — forked from amno1/shell-command-with-aliases.el
Use Bash aliases in interactive shell-comands
;;; shell-command-with-aliasses.el --- Use Bash aliases in interactive shell-comands -*- lexical-binding: t; -*-
;; Copyright (C) 2023 Arthur Miller
;; Author: Arthur Miller <arthur.miller@live.com>
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
@failable
failable / answers.txt
Last active September 15, 2022 09:12
Question answers
* Seleted "super" in ~kitty-configure--Command-key~
** Step 6
Got a message in echo area: ~s-x~ is undefined.
** Step 7
Got a message in echo area: ~s-x~ is undefined.
@failable
failable / output.org
Created August 31, 2022 08:25
Observed outputs

Without evaluating the mentions two lines of script

What does Emacs report when you do C-h k Command+x?

;9u is inserted into the buffer.

What does Emacs report when you do C-h k Option+x?

“` M-x runs the command execute-extended-command (found in global-map),

@failable
failable / kitty.conf
Created August 31, 2022 08:17
Kitty config
macos_option_as_alt yes
*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
*****************************************
(37131) -- Epoch 0 --
(37131) -- DistributedDataParallel --
(37130) -- Epoch 0 --
(37130) -- DistributedDataParallel --
(37131) device: cuda:1, forward size: torch.Size([4, 2])
(37130) device: cuda:0, forward size: torch.Size([4, 2])
tensor([[-0.0597, -0.4675],
(36872) -- Epoch 0 --
(36872) -- Plain --
(36872) device: cuda:0, forward size: torch.Size([4, 2])
tensor([[ 0.0539, 0.6684],
[-0.3144, -0.4963],
[-0.3424, -1.4020],
[ 1.4635, -0.7477]], device='cuda:0')
Parameter containing:
tensor([[-0.6661, -0.1387],
[-0.3396, -0.1886]], device='cuda:0', requires_grad=True)
This file has been truncated, but you can view the full file.
@inproceedings{turian-2010-word-repres,
title = "Word representations: a simple and general method for
semi-supervised learning",
author = "Turian, Joseph and Ratinov, Lev and Bengio, Yoshua",
booktitle = "Proceedings of the 48th annual meeting of the association for
computational linguistics",
abstract = "If we take an existing supervised NLP sys- tem, a simple and
general way to improve accuracy is to use unsupervised word
representations as extra word features. We evaluate Brown
clusters, Collobert and Weston (2008) embeddings, and HLBL
```
[Trace - 09:28:29 PM] Sending request 'initialize - (30)'.
Params: {
"processId": null,
"rootPath": "/Users/user/git/tp/projects/knowledge_graph",
"clientInfo": {
"name": "emacs",
"version": "GNU Emacs 27.0.91 (build 1, x86_64-apple-darwin19.5.0, Carbon Version 162 AppKit 1894.5)\n of 2020-06-14"
},
"rootUri": "file:///Users/user/git/tp/projects/knowledge_graph",
(use-package matlab
:ensure matlab-mode
:mode ("\\.m\\'" . matlab-mode)
:init
(setq matlab-shell-command-switches '("-nodesktop" "-nosplash")
matlab-auto-fill nil
matlab-comment-region-s "% "
matlab-case-level '(4 . 4)
matlab-indent-function-body t
(defun emacs-keytable (arg)
"Print all key bindings map in a org buffer.then use css and convert to html,print A4 page"
(interactive "sEnter a modifier string:")
(with-output-to-temp-buffer "*Keymaptable.org*"
(let* ((i 0)
(keys (list "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m"
"n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z"
"<return>" "<down>" "<up>" "<right>" "<left>"
"<home>" "<end>" "<f1>" "<f2>" "<f3>" "<f4>" "<f5>"
"<f6>" "<f7>" "<f8>" "<f9>" "<f10>" "<f11>" "<f12>"