BIBLIOGRAPHY
JunghanKim. (2023) 2024. “Junghan0611/Orgmode-Examples.” https://github.com/junghan0611/orgmode-examples.
업그레이드 하려면
관련노트
히스토리
- 2022-11-22 바벨 샘플 모음
- 2024-06-05 kimim-emacs 예제 문서 링크 추가
- 2024-11-15 add clojure with babashka
:babel:examples:literate:notes:orgmode:samples:
참고예제 kimim
- (JunghanKim [2023] 2024) 슬라이드 예시, 내보내기 예시 등
AWK #AWK: 스크립트
Item1 100
Item2 200
Item3 50
Sum field nr 2.
BEGIN {OFS="|"}; { sum+= $2}; END { print "Sum", sum}
Sum | 350 |
Shell
echo "Hello Spacemacs"
Hello Spacemacs
Ditaa
+--------------+
| |
| Hello World! |
| |
+--------------+
Clojure with BB - babashka
-
- CIDER Jack-in 하면 REPL 에 연동되서 결과가 출력 된다.
- 파일 마다 별도로 레플을 생성해야 되니까 별로 좋지 않다. BB 가 있어야겠다.
- BB 설정해서 넣었다. 잘된다.
-
2024-11-15 babashka 들어가 있더라.
(println "Hello World!")
(+ 1 4)
Hello World!
(println "Hello World!")
(+ 1 4)
Hello World!
5
(+ 1 4)
[ 1 2 3 4]
1 | 2 | 3 | 4 |
(def small-map {:a 2 :b 4 :c 8})
(:b small-map)
(def small-map {:a 2 :b 4 :c 8})
(:b small-map)
4
(def small-map {:a 2 :b 4 :c 8})
(:b small-map)
4
(def small-map {:a 2 :b 4 :c 8})
(:b small-map)
4
Racket
(define (factorial n)
(if (= n 1)
1
(* n (factorial (sub1 n)))))
(factorial input)
3628800
JavaScript
results output 과 output code 의 차이는 다음과 같다.
console.log("Hello, World!");
Hello, World!
console.log("Hello, World!");
Hello, World!
Python
print("Hello World!")
Hello World!
,#+RESULTS:
Hello World!
히스토리
- 2024-06-05 생성. 미니콘다와 기본 기능 검증
관련 파일
Python 버전 확인
Check Python version in shell:
python --version
Python 3.12.2
-> conda 사용 버전 : 2024-06-05
Evaluate Python code:
print("Python is " + str(year - 1991) + " years old")
Python is 33 years old
Python is 32 years old
, #+RESULTS:
Python 환경 체크
print("Hello World!")
Hello World!
,#+RESULTS:
Hello World!
Python pyplot
code
import matplotlib.pyplot as plt
import pandas as pd
data = pd.DataFrame(tbl)
fig=plt.figure(figsize=(4,2))
fig.tight_layout()
plt.bar(data[0], data[1])
fgname = 'images/python-pyplot.svg'
plt.savefig(fgname)
output
>