- Видео 67
- Просмотров 14 225
Literate Programming with Emacs and Org-mode
Добавлен 23 окт 2021
"Literate programming is a methodology that combines a programming language with a documentation language, thereby making programs more robust, more portable, more easily maintained, and arguably more fun to write than programs that are written only in a high-level language. The main idea is to treat a program as a piece of literature, addressed to human beings rather than to a computer. The program is also viewed as a hypertext document, rather like the World Wide Web." (Knuth) This approach also underlies Jupyter notebooks, which allow data scientists to explore data while keeping a notebook of their ideas and intermediate results open as a basis for publication and sharing. The name "Jupyter" comes from three popular interpreted languages, Julia, Python, and R. Many kernels are now available for compiled languages, too, to add REPL functionality. In Emacs + Org-mode you can run any number of kernels in the same Org-mode file.
Concatenate two C arrays using VLA parameters (Data Structures in C)
Silent hacking!
Sample solution for assignment: github.com/birkenkrahe/alg1/blob/main/org/assignments/concatenateArrays.org
Emacs config file: tinyurl.com/lyon-emacs
Thumbnail: Four monks by Rinaldi.
Sample solution for assignment: github.com/birkenkrahe/alg1/blob/main/org/assignments/concatenateArrays.org
Emacs config file: tinyurl.com/lyon-emacs
Thumbnail: Four monks by Rinaldi.
Просмотров: 12
Видео
Vector plotting practice (Introduction to data science in R)
Просмотров 3016 часов назад
Silent hacking! The editor aspect is chosen so that you can split the screen & view the video on one half while working in Emacs on the other half of your screen. - Assignment: tinyurl.com/vectors-plotting-org - Solution as PDF: tinyurl.com/vectorrs-plotting-pdf - Emacs config file: tinyurl.com/lyon-emacs
Graphics practice in R (Data Visualization assignment)
Просмотров 2719 часов назад
Silent hacking! - Assignment: tinyurl.com/graphics-practice-org - Solution as PDF: tinyurl.com/graphics-practice-pdf - Minimal Emacs config file: tinyurl.com/lyon-emacs
Vectors and Factors in R (exercises - Intro to data science with R)
Просмотров 2614 дней назад
Silent hacking! Solution video to a class exercise with vectors and factors in R. - Download the practice file from tinyurl.com/vectors-lab - Thumbnail picture: La maja vestida, Francisco de Goya (1800-1807)
Sample solutions 12 Easy Pieces Popquiz! (Data structures in C)
Просмотров 5014 дней назад
I'm talking you through the solutions for the popquiz "12 easy pieces". If you want to try it yourself first, open the empty file: tinyurl.com/function-popquiz To do this in Emacs, get my config file from tinyurl.com/lyon-emacs The GitHub repo for this class is at github.com/birkenkrahe/alg1
Some practice exercises for vectors & matrices in R
Просмотров 2614 дней назад
The problems (without solution) are here: tinyurl.com/vector-popquiz Created for: DSC 105 (Intro to data science), Lyon College Fall 2024
Extract C functions from a simple program (Data Structures)
Просмотров 2521 день назад
Silent coding! Solution to the assignment from scratch. Problem: extract two C functions from a program that reverses an array and counts how many times a number occurs in the array. [Solution is missing the documentation for the 2nd function. Final version: github.com/birkenkrahe/alg1/blob/main/org/assignments/simpleFunctions_video.org) Assignment: github.com/birkenkrahe/alg1/blob/main/org/ass...
Array Temperature Analysis in C (Data Structures)
Просмотров 51Месяц назад
Week 2 programming assignment for CSC 240 Data Structures - For this to work, you need my `.emacs` file - wget it from here: tinyurl.com/lyon-emacs Problem: Analyze weekly temperatures stored in an array: compute maximum, minimum, averages, and modified temperatures. The array size is fixed at 7 for daily temperatures of one week. Sample solution Org-mode file on GitHub: github.com/birkenkrahe/...
Simple Array Operations in C (data structures)
Просмотров 141Месяц назад
Week 2 programming assignment for CSC 240 Data Structures - For this to work, you need my `.emacs` file - wget it from here: tinyurl.com/lyon-emacs Sample solution Org-mode file on GitHub: github.com/birkenkrahe/org/blob/927f0cbb32738ec47276fa72f24839d807cdabe5/fall24/alg1/simple_array_operations.org Content: - Input: Read 5 integer numbers from the user. - Display: Print out all the numbers. -...
First literate R program with Emacs + Org-mode
Просмотров 155Месяц назад
A demo video for creating an interactive Org-mode file with R in Emacs. To make full use of this, you may need my configuration file for Emacs. Get it from tinyurl.com/lyon-emacs - The video also assumes that you have Emacs, R and ESS installed. For R, go to r-project.org. For Emacs ESS on Linux, run `sudo apt install emacs` and add `ess` with `M-x list-packages`. On Windows or MacOS (I pity yo...
Creating BPMN models from pseudocode (4/4): inverting conditions
Просмотров 926 месяцев назад
Hacking with Haendel! Solving practice problems with Emacs Org-mode. - Emacs : Orgmode Practice Playlist: tinyurl.com/emacs-orgmode - Emacs Org-mode practice file is at: tinyurl.com/bpmn-org - Solutions as PDF: tinyurl.com/bpmn-solutions-org - This practice is based on the lecture at: tinyurl.com/bpmn-lecture-org In this 4-part series we cover: 1) Creating a simple model based on pseudocode, an...
Creating BPMN models from pseudocode (3/4): nested conditions
Просмотров 736 месяцев назад
Hacking with Haendel! Solving practice problems with Emacs Org-mode. - Emacs : Orgmode Practice Playlist: tinyurl.com/emacs-orgmode - Emacs Org-mode practice file is at: tinyurl.com/bpmn-org - Solutions as PDF: tinyurl.com/bpmn-solutions-org - This practice is based on the lecture at: tinyurl.com/bpmn-lecture-org In this 4-part series we cover: 1) Creating a simple model based on pseudocode, an...
Creating BPMN models from pseudocode (2/4): simple model
Просмотров 576 месяцев назад
Hacking with Haendel! Solving practice problems with Emacs Org-mode. - Emacs : Orgmode Practice Playlist: tinyurl.com/emacs-orgmode - Emacs Org-mode practice file is at: tinyurl.com/bpmn-org - Solutions as PDF: tinyurl.com/bpmn-solutions-org - This practice is based on the lecture at: tinyurl.com/bpmn-lecture-org In this 4-part series we cover: 1) Creating a simple model based on pseudocode, an...
Creating BPMN models from pseudocode (1/4): first model
Просмотров 1846 месяцев назад
Hacking with Haendel! Solving practice problems with Emacs Org-mode. - Emacs : Orgmode Practice Playlist: tinyurl.com/emacs-orgmode - Emacs Org-mode practice file is at: tinyurl.com/bpmn-org - Solutions as PDF: tinyurl.com/bpmn-solutions-org - This practice is based on the lecture at: tinyurl.com/bpmn-lecture-org In this 4-part series we cover: 1) Creating a simple model based on pseudocode, an...
C fundamentals with Emacs + Org-mode practice: C operators (4/4)
Просмотров 517 месяцев назад
Silent hacking! Solving practice problems with Emacs Org-mode. - Emacs : Orgmode Practice Playlist: tinyurl.com/emacs-orgmode - Emacs Org-mode practice file is at: tinyurl.com/c-operators-org - The solutions are also available via PDF: tinyurl.com/c-operators-solutions - This practice is based on the lecture at: tinyurl.com/cpp-operators In this 4-part series we cover: 1) Using Boolean operator...
C fundamentals with Emacs + Org-mode practice: C operators (3/4)
Просмотров 347 месяцев назад
C fundamentals with Emacs Org-mode practice: C operators (3/4)
C fundamentals with Emacs + Org-mode practice: C operators (2/4)
Просмотров 1437 месяцев назад
C fundamentals with Emacs Org-mode practice: C operators (2/4)
C fundamentals with Emacs + Org-mode practice: C operators (1/4)
Просмотров 1517 месяцев назад
C fundamentals with Emacs Org-mode practice: C operators (1/4)
A short practical review of scanf (with Emacs + Org-mode)
Просмотров 607 месяцев назад
A short practical review of scanf (with Emacs Org-mode)
C fundamentals with Emacs + Org mode practice session: scanf (3/3)
Просмотров 2887 месяцев назад
C fundamentals with Emacs Org mode practice session: scanf (3/3)
C fundamentals with Emacs + Org mode practice session: scanf (2/3)
Просмотров 1087 месяцев назад
C fundamentals with Emacs Org mode practice session: scanf (2/3)
C fundamentals with Emacs + Org mode practice session: scanf (1/3)
Просмотров 1317 месяцев назад
C fundamentals with Emacs Org mode practice session: scanf (1/3)
C fundamentals with Emacs + Org mode practice session: printf()
Просмотров 1648 месяцев назад
C fundamentals with Emacs Org mode practice session: printf()
C fundamentals practice session - Constants (3/3): naming and layout
Просмотров 308 месяцев назад
C fundamentals practice session - Constants (3/3): naming and layout
C fundamentals practice session - Constants (2/3): math.h and scanf
Просмотров 368 месяцев назад
C fundamentals practice session - Constants (2/3): math.h and scanf
C fundamentals practice session - Constants (1/3): #define and const
Просмотров 428 месяцев назад
C fundamentals practice session - Constants (1/3): #define and const
C fundamentals practice session - Variables
Просмотров 678 месяцев назад
C fundamentals practice session - Variables
Install SQLite & test it in Emacs with and without Org-mode
Просмотров 2769 месяцев назад
Install SQLite & test it in Emacs with and without Org-mode
Your first literate C program with Emacs and Org-mode
Просмотров 7849 месяцев назад
Your first literate C program with Emacs and Org-mode
Install and configure Emacs (modified) for Windows or MacOS in less than 5 minutes
Просмотров 3659 месяцев назад
Install and configure Emacs (modified) for Windows or MacOS in less than 5 minutes
would be nice if you zoomed in a bit.. good tip to work w/sqlite in org mode
Thank you for watching. I'm probably going to do another one like this for Linux users since I am no longer supporting students who insist on using Windows...
@@LiterateProgramming I would appreciate seeing to how setup and install the mode correctly.. I couldn''t get ob-sqlite to work
Your generated C file prints "Hello, Emacs!" but when you ran the "hello" command, it printed "Hello, World!" Suspicious! Just kidding. I think you must have another "hello" executable or something on your path. I think you just needed to run it as "./hello" instead.
Well spotted! Thank you (hoping nobody else will notice - or accept it as a learning if they code along as they should).
Why on earth have a video with sound if all I can hear is your typing? I don't want to hear that, remove sound, or better yet, add some nice, non distracting, background music. Apart from that, it looks like a nice intro to C.
I just forgot to switch off the sound recording, I think - or perhaps I was inspired by other tutorials...I find the click-clack of the keyboard calming😕 I suggest switch off the sound to go stealthy, and add your own music - you're unlikely to enjoy mine 🙂 Thanks for listening/watching!
I've taken your suggestion seriously and added the music that I listen to while coding - it's now "Hacking with Haendel" instead of "silent hacking" :-)
I just stumbled across your videos and find them to be a refreshing alternative. Very nice. I'm now subscribed so I'll be following along. Thank you for the content!
Why, thank you! These are made for my students and I am happy if others find them useful. I don't speak in most videos to spare you my accent and my mumbling - rather put on some nice music that emboldens you! Cheers
Thankyou so much for this video. I am just getting into emacs for the first time, and trying to convert my workflow from obsidian, there are a handful of use-cases that involve images and I just could not figure out how to get them to show. Turns out I was not giving the relative path.
You're welcome - I had not heard about Obsidian until you mentioned it. I stay away from commercial apps. Org-mode is supported by apps, too, btw like metanote and Orgzly but I haven't used them (much) - I'd rather use Termux + Emacs + Org-mode on my phone if I have to. For all Org-mode issues, the online doc is excellent - orgmode.org/org.html
Hi Marcus, are there any advantages to using this plink command as opposed to Tramp mode?
Tramp is the built-in Emacs package that allows you to run plink, which I only use because I used a Windows box. I don't really understand Windows at all but Tramp is the mother of all remote connections. Putty also has some potential serious security issues I think. I use WinSCP now on Windows if I absolutely have to go from Windows to the Linux box, otherwise ssh or rcp from Linux does the trick.
Ah I see thank you for clarifying, it's just plink instead of ssh but still using TRAMP. I agree about the usefulness of TRAMP. I actually started using Emacs recently as the editor I was previously using was rather inconsistent when it came to accessing remote files. Three weeks into using Emacs with TRAMP mode, and no issues so far. Thanks for the helpful videos, they are helping me become more proficient in Emacs.
You're welcome, thanks for viewing asking and responding! I might make more videos. You cannot beat Emacs for development or for daily use if you're serious about computer or data science, IMHO. I've used Emacs in class, too (see here tinyurl.com/3y35fnsf) and I will again. Some other good channels on Emacs: @DistroTube and @SystemCrafters.
Certainly Marcus, and that would be great if you continue to make videos! I am glad that you think so, I'm looking forward to become more efficient with it
Is there some trick for making the attr_html work? Is it an addon from a previous video perhaps? I am trying on a .png and it does nothing 🤔
For anyone else wondering, put this in your init.el, after which it works (setq org-image-actual-width nil)
Indeed - all tutorial videos assume my minimal .emacs configuration in github.com/birkenkrahe/org/blob/master/emacs/.emacs
Thanks for sharing, very helpful for beginner learn R in emacs. Looking forward to learn more from the channel.
thanku for the tutorial, and it being updated!
That's great, Marcus. 🤜🤛 Emacs gradually enlarges my horizons.