Rework demo
This commit is contained in:
parent
b5c91bc390
commit
393b8fdc8f
2 changed files with 57 additions and 56 deletions
BIN
demo.gif
BIN
demo.gif
Binary file not shown.
Before Width: | Height: | Size: 12 MiB After Width: | Height: | Size: 26 MiB |
113
examples.org
113
examples.org
|
@ -1,62 +1,63 @@
|
||||||
* English :deck:
|
* English :deck:
|
||||||
|
|
||||||
** Vocabulary
|
** Vocabulary
|
||||||
*** Item :note:
|
|
||||||
:PROPERTIES:
|
*** Item :note:
|
||||||
:ANKI_NOTE_TYPE: Basic (and reversed card)
|
:PROPERTIES:
|
||||||
:ANKI_TAGS: vocab idioms
|
:ANKI_NOTE_TYPE: Basic (and reversed card)
|
||||||
:END:
|
:ANKI_TAGS: vocab idioms
|
||||||
|
:END:
|
||||||
|
|
||||||
**** Front
|
**** Front
|
||||||
(it's) raining cats and dogs
|
|
||||||
|
(it's) raining cats and dogs
|
||||||
|
|
||||||
**** Back
|
**** Back
|
||||||
it's raining very hard
|
|
||||||
** Grammar
|
it's raining very hard
|
||||||
*** Item :note:
|
|
||||||
:PROPERTIES:
|
* Computing :deck:
|
||||||
:ANKI_NOTE_TYPE: Basic
|
|
||||||
:ANKI_TAGS: grammar
|
** Item :note:
|
||||||
:END:
|
:PROPERTIES:
|
||||||
**** Front
|
:ANKI_NOTE_TYPE: Basic
|
||||||
列举最基本的句型
|
:ANKI_TAGS: lisp emacs programming
|
||||||
**** Back
|
:END:
|
||||||
#+BEGIN_EXPORT html
|
|
||||||
<div align="left">
|
|
||||||
#+END_EXPORT
|
|
||||||
- S + V
|
|
||||||
- S + V + O
|
|
||||||
- S + V + C
|
|
||||||
- S + V + O + O
|
|
||||||
- S + V + O + C
|
|
||||||
#+BEGIN_EXPORT html
|
|
||||||
</div>
|
|
||||||
#+END_EXPORT
|
|
||||||
* Math :deck:
|
|
||||||
** Fact :note:
|
|
||||||
:PROPERTIES:
|
|
||||||
:ANKI_NOTE_TYPE: Cloze
|
|
||||||
:END:
|
|
||||||
*** Text
|
|
||||||
The square function is {{c1::$f(x) = x^2$}}
|
|
||||||
* Computer Science :deck:
|
|
||||||
** Item :note:
|
|
||||||
:PROPERTIES:
|
|
||||||
:ANKI_NOTE_TYPE: Basic
|
|
||||||
:ANKI_TAGS: lisp emacs programming
|
|
||||||
:END:
|
|
||||||
*** Front
|
*** Front
|
||||||
How to trap errors in elisp ?
|
|
||||||
|
How to trap errors in elisp ?
|
||||||
|
|
||||||
*** Back
|
*** Back
|
||||||
#+BEGIN_EXPORT html
|
|
||||||
<div align="left">
|
#+BEGIN_EXPORT html
|
||||||
#+END_EXPORT
|
<div align="left">
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+END_EXPORT
|
||||||
(condition-case the-error
|
|
||||||
;; protected form
|
#+BEGIN_SRC emacs-lisp
|
||||||
(progn
|
(condition-case the-error
|
||||||
(do-something-dangerous))
|
;; the protected form
|
||||||
;; error handlers
|
(progn
|
||||||
(error-symbol-1 (handler1 err))
|
(do-something-dangerous)
|
||||||
((error-symbol-2 error-symbol-3) (handler2 err)))
|
(do-something-more-dangerous))
|
||||||
#+END_SRC
|
;; handlers
|
||||||
#+BEGIN_EXPORT html
|
(error-symbol1 (handler1 the-error))
|
||||||
</div>
|
((error-symbol2 error-symbol3 (handler the-error))))
|
||||||
#+END_EXPORT
|
#+END_SRC
|
||||||
|
|
||||||
|
#+BEGIN_EXPORT html
|
||||||
|
</div>
|
||||||
|
#+END_EXPORT
|
||||||
|
|
||||||
|
* Mathematics :deck:
|
||||||
|
|
||||||
|
** Item :note:
|
||||||
|
:PROPERTIES:
|
||||||
|
:ANKI_NOTE_TYPE: Cloze
|
||||||
|
:END:
|
||||||
|
|
||||||
|
*** Text
|
||||||
|
|
||||||
|
The dot product of two vectors is {{c1::$|\alpha| \cdot |\beta| \cos{\varphi}$}}
|
||||||
|
|
||||||
|
*** Extra
|
||||||
|
|
Loading…
Reference in a new issue