Code snippets: Difference between revisions
Line 65: | Line 65: | ||
==Sundry & collections== | ==Sundry & collections== | ||
* [http://dhost.info/zabrodskyvlada/aat/ Album of Algorithms and Techniques for Standard Rexx] - [[Vladimír Zábrodský]]'s collection of REXX code, mostly small snippets. | * [http://dhost.info/zabrodskyvlada/aat/ Album of Algorithms and Techniques for Standard Rexx] - [[Vladimír Zábrodský]]'s collection of REXX code, mostly small snippets. | ||
* [http://mzelden.com/mvsutil.html Mark's MVS Utilities] - While mostly XEDIT and MVS related there are a few worthwhile REXX programs in there as well. | |||
* [[OZPD]] - Sundry [[PD]] C routines and programs | * [[OZPD]] - Sundry [[PD]] C routines and programs | ||
* [http://rosettacode.org/mw/index.php?title=Special%3ASearch&search=Walter+Pachl&go=Go Walter Pachl's code on rosettacode.org] - Mostly Classic [[REXX]] but also [[Object REXX]], [[NetRexx]] and PL/I. | * [http://rosettacode.org/mw/index.php?title=Special%3ASearch&search=Walter+Pachl&go=Go Walter Pachl's code on rosettacode.org] - Mostly Classic [[REXX]] but also [[Object REXX]], [[NetRexx]] and PL/I. |
Revision as of 10:14, 8 July 2016
EDM/2's collection of code snippets, and links to such small programs on external sites. Most of the snippets are for common scripting languages such as REXX, Tcl, PHP and so on but there is also code for traditional programming languages such as C, Modula-2, LISP and Prolog, et cetera. The idea behind such small programs is primarily to be used as educational examples that a programmer can learn from but depending on licence, they can also be taken and used in your own programs.
Code snippets are usually linked to from the Wiki page for each programming language, but it makes sense to also collect them here all together and sort them by function since they can be used in multi-language projects, it may be easier for you to call a function in another language than to rewrite it in your preferred language, and understanding it in another language even if you have not fully mastered that language can be helpful even if you intend to rewrite the function in your preferred programming tool, and so on.
The snippets here are primarily either targeting OS/2 or generic in nature, but code targeting DOS, UNIX and even more alien systems may be included especially if they have some educational value.
OS/2 system
WPS
- BuildSOM - REXX - Creates program and folder objects via SOM.
- PostWhat WPS Class Example - C++ & REXX
- Small examples of Workplace Shell programming - C
Memory management
Aka Garbage collection, malloc etc.
Collections
- Dave Briccetti's Programming Samples - Sundry C++ code example
- OS/2 Primecuts - C and C++ OS/2 specific code examples
Internet
WWW & HTML
- txt2HTML - REXX - Converts text files to HTML files.
- Update Homepage - REXX & Object REXX
E-Mail & USENET
- Get Usenet News Articles Using REXX, Network News Transfer Protocol and Sockets
- Sending Mail with REXX
- Send Mail to an Email List with REXX, SMTP and Sockets
General
- Date and time operations
- Harold Zbiegien's date algorithms in REXX and in FORTRAN
- Rex Swain's B2MMDDYY.REX - Convert Base format date to MM/DD/YYYY (REXX)
Files & file operations
- PDCRC - CRC routines in C
Databases
DBF files
- dbfread - Python
- How to read DBF files with QBasic
- libdbf - tiny C library that reads .dbf files
Graphics
- SDRAW - Draws LISP language substructures
- 3D Geometry classes - Simple 3d gemometry classes in LISP/CLOS
Utilities & small applets
- CLOS utilites - Sundry small utilities written in LISP wCLOS.
Object oriented functions
- Artificial flavors - LISP
Language extensions
- LISP
- Artificial flavors - LISP
- Defstruct - CL like Defstruct for Scheme
- DTRACE - Trace/Untrace replacements
- M-Expressions - Alternative syntax for CL
Games
Collections
Sundry & collections
- Album of Algorithms and Techniques for Standard Rexx - Vladimír Zábrodský's collection of REXX code, mostly small snippets.
- Mark's MVS Utilities - While mostly XEDIT and MVS related there are a few worthwhile REXX programs in there as well.
- OZPD - Sundry PD C routines and programs
- Walter Pachl's code on rosettacode.org - Mostly Classic REXX but also Object REXX, NetRexx and PL/I.