Quagga: combine code files into an LLM prompt
A command-line utility made for programmers that combines multiple text files into a single prompt suitable for Large Language Models (LLMs). https://github.com/evgenyneu/quagga
Home of Evgenii
A command-line utility made for programmers that combines multiple text files into a single prompt suitable for Large Language Models (LLMs). https://github.com/evgenyneu/quagga
Start What’s this about? In this post I want to show how to make a simulation of two interacting galaxies that runs in a Web browser, written in HTML, CSS and JavaScript languages. I won’t explain everything, because I would need to write a post ten times longer than it is (and who wants to read that?). Instead, here I just want to briefly show the main ideas that will hopefully make this…
In this article I want to discuss the logistic function that can be used to describe the spread of an infectious disease. How infection spreads? Infectious disease is the one that can spread from human to human. Each sick person can infect healthy people around her. And each of those newly infected people will, in turn, give the virus to even more people. In math language this means that the rate…
Tarpan is a collection of Python functions for making plots and summaries from the output of cmdstanpy library, which is a statistical inference tool: https://github.com/evgenyneu/tarpan
The following image shows four stages of evolution of the early Universe, from 1 second to 350 thousand years since the Big Bang. During that period the Universe cooled as it expanded in size. This article is based on excellent textbook An Introduction to Modern Cosmology by Andrew Liddle. Figure 1: Four stages of the Early Universe. Universe at one second after the Big Bang At one second after…
Please use a newer browser to see the simulation. 0.10 Figure eight Sun, Earth and Jupiter Lagrange point L5 Kepler-16 Chaotic In this tutorial we will program motion of three bodies in HTML and JavaScript. This work is built upon the two-body simulation code . I want to say huge thanks to Dr Rosemary Mardling, who taught me astrophysics in Monash University. This work is based on Rosmary’s ideas…
Please use a newer browser to see the simulation. Mass ratio: 0.10 Eccentricity: 0.10 In this tutorial we will program a simulation of motion of two celestial bodies in HTML/JavaScript. This work is mostly based on what I learned from Dr Rosemary Mardling, who is an astrophysicist at Monash University. In addition, this code uses techniques we developed in harmonic oscillator tutorial , which…
In his book Enlightenment Now Steven Pinker makes a point that I found interesting and brilliantly obvious. When we see a poor person we tend to blame something or someone for his misfortune. We blame this person, government, God, Jews, Muslims, corporations, immigrants, socialists, gays, guns, video games, drugs. Insert your favorite root of all evil here. It is probably a natural tendency of our…
The following is a list of things each of us can do to reduce our energy consumption. It’s based mostly on excellent lectures The Science of Energy: Resources and Power Explained by Professor Michael E. Wysession and The Great Courses. In general Recycle. It takes less energy to reuse materials than to make them from scratch. Avoid disposable items and low quality products that don’t last long.…
Today I installed Xcode 9 and converted my projects to Swift 4.0. Surprisingly, very few changes were necessary to make my code compatible with the new Swift. However, one warning showed up after the build: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging…