use git diff to generate file list
git diff --name-only master
add ext filter
| (use-package! liberime-config) | |
| (use-package! pyim | |
| ;; :quelpa (pyim :fetcher github :repo "merrickluo/pyim") | |
| :init | |
| (setq pyim-title "R") | |
| :config | |
| ;; (use-package pyim-basedict | |
| ;; :config | |
| ;; (pyim-basedict-enable)) | |
| (global-set-key (kbd "M-j") 'pyim-convert-string-at-point) |
use git diff to generate file list
git diff --name-only master
add ext filter
| #!/usr/bin/env python | |
| """ | |
| # Version | |
| 2021-08-31 | |
| # Tested on | |
| Python 3.9 |
Douglas Crockford, author of JavaScript: The Good parts, recently gave a talk called The Better Parts, where he demonstrates how he creates objects in JavaScript nowadays. He doesn't call his approach anything, but I will refer to it as Crockford Classless.
Crockford Classless is completely free of class, new, this, prototype and even Crockfords own invention Object.create.
I think it's really, really sleek, and this is what it looks like:
function dog(spec) {