godoc -http ":8888" -analysis type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; incf | |
| (defmacro inc! (p) | |
| `(setf ,p (+ ,p 1))) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [client] | |
| loose-local-infile=1 | |
| [mysqld] | |
| local_infile=1 |
sudo pacman-key --populate archlinux
sudo pacman -Syu
sudo pacman -S \
fish gauche sbcl rlwrap vim emacs ruby wget git curl hub \
gcc llvm clang make cmake fakeroot
git clone https://aur.archlinux.org/yay.git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defmacro field (slot-symbol) | |
| (let ((slot-name (symbol-name slot-symbol))) | |
| `(,slot-symbol | |
| :accessor ,(intern slot-name) | |
| :initform '() | |
| :initarg ,(intern slot-name :keyword)))) | |
| ;; not working | |
| (defclass player () | |
| ((field hp) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (setq inhibit-startup-message t) | |
| (setq initial-scratch-message nil) | |
| (setq-default indent-tabs-mode t) | |
| (setq default-tab-width 2) | |
| (define-key global-map "\C-h" 'delete-backward-char) | |
| (define-key key-translation-map (kbd "C-h") (kbd "<DEL>")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (progn | |
| (define _eval | |
| (lambda (form env) | |
| (+ 1 1))) | |
| (define *env* (quote (nil nil))) | |
| (define _assoc | |
| (lambda (item lis) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #define new(a) malloc(sizeof(a)) | |
| typedef struct { | |
| int i; | |
| } Atom; | |
| Atom *make_atom(int i) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* test.lisp | |
| (define a 1) | |
| (define b 10) | |
| (print a) | |
| (print b) | |
| */ | |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<stdbool.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const ( | |
| lineUnknown = "unkown" | |
| lineLF = "LF" // 0x0A | |
| lineCR = "CR" // 0x0D | |
| lineCRLF = lineLF + lineCR | |
| ) | |
| const ( | |
| byteLF = 0x0A | |
| byteCR = 0x0D |