https://github.com/kneth/funstuff
A place for all the fun stuff I do
https://github.com/kneth/funstuff
Last synced: 4 months ago
JSON representation
A place for all the fun stuff I do
- Host: GitHub
- URL: https://github.com/kneth/funstuff
- Owner: kneth
- Created: 2012-10-11T07:03:55.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2025-10-19T06:16:42.000Z (8 months ago)
- Last Synced: 2025-11-12T01:53:33.756Z (8 months ago)
- Language: C++
- Size: 120 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* FunStuff
A place for all the fun stuff I do.
** GNU-Parallel
GNU Parallel is a program for running command-line tools in parallel.
map.pl and reduce.pl implement a Map/Reduce analysis of the flight
data set. You run the analysis
using the command:
#+BEGIN_EXAMPLE
cat On_Time_Performance_1H2012.csv | parallel --pipe --blocksize 64M ./map.pl | ./reduce.pl
#+END_EXAMPLE
** LEGO
Various experiments with LEGO Mindstorm. Most of these experiments
have been published in Alt om DATA.
** Comal
Retrocomputing in COMAL-80 (using OpenComal).
- fib.lst :: Fibonacci numbers
- sieve.lst :: finding prime numbers
- brussel.lst :: simulation of Brusselator using simple Euler integrator
** JavaScript
Just a couple of JavaScripts experiments.
- graph.js :: a "library" for handling directed acyclic graphs.
** Extensions
A model extension for Node.js and Python. C++ classes are wrapped as Node.js and Python classes.
- person.cpp and book.cpp :: C++ classes
- person_wrap.cpp and book_wrap.cpp :: Wrapper classes (Node.js).
- py_person.cpp and py_book.cpp :: Wrapper classes (Python).
Notice that both Python 2 and 3 are supported.
Building C++ classes:
#+BEGIN_EXAMPLE
make
#+END_EXAMPLE
Building Node.js extension:
#+BEGIN_EXAMPLE
node-waf configure
node-waf build
sudo node-waf install
#+END_EXAMPLE
** Pi
Implementation of calculation of pi using Monte Carlo in various
languages.
Currently supported languages:
- pi.sh :: bash
- pi.py :: Python
** C++
Experiements in C++
- try_catch.cpp :: How to use lambdas to wrap exception handling.
** Misc
Just a collection of small programs.
- hailstone.c :: generating hailstone series (see http://en.wikipedia.org/wiki/Collatz_conjecture)
- fraction.py :: implementation of rational number arithmetic in Python.
- opg1A.py and opg3A.py :: simulations of Svante's home work in probability.
- greeting.cob :: tribute to Grace Hopper.