Skip to content

Instantly share code, notes, and snippets.

View tbrunz's full-sized avatar

Ted Brunzie tbrunz

  • LANL
  • Los Alamos NM
View GitHub Profile
@tbrunz
tbrunz / Lua-Case-Statement.lua
Last active March 9, 2020 16:18
Lua metatables demonstrated by implementing a Lua 'case statement' object
#! /usr/bin/env lua
--
-- Lua metatables demonstrated by implementing a Lua 'case statement' object.
--
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
--
-- Show test results of executing a case statement.
@tbrunz
tbrunz / LuaFileSystem.txt
Last active July 21, 2020 01:27
LuaFileSystem-ManPage-LuaRocks.txt
LuaFileSystem - LuaRocks
===============================================================================
iter, dir_obj, [nil] = lfs.dir( path )
'dir' is a Lua iterator over the entries of a given directory, where 'iter'
is the iterator closure, 'dir_obj' is the invariant state, and the control
variable initial value is nil. Error raised if 'path' is not a directory.
Each time the iterator is called, it returns a directory entry's name as a
How do I submit a bug report for Pharo?
Here's how to submit a Pharo bug report. Fortunately, GitHub makes it easy and
straightforward.
Start by surfing to https://github.com/pharo-project, then find the particular
Pharo project that's involved. In most cases, you'll probably want the "pharo"
repo: https://github.com/pharo-project/pharo. (Note that if you enter a bug
report in the wrong repo, the devs can easily move it to where it belongs. But
do try to get the correct one; it will speed things up for everyone.)
What I consider "The most useful Pharo booklets"
(with revision dates as of 07/21/2020):
Pharo-AI-Design-and-Implementation_2019-1125.pdf
Pharo-Call_Stack_Management_2018-0305.pdf
Pharo-Clap_CLI_Parser_Library_2020-0228.pdf
Pharo-Commander20_Design_Pattern_2020-0224.pdf
Pharo-Concurrent_Prog_in_Pharo_2020-0224.pdf
Pharo-Data_Analysis_with_DataFrame_2020-0401.pdf
@tbrunz
tbrunz / HOWTO-setup-SSH-in-Win7-10.txt
Last active August 18, 2020 02:15
HOW TO Set Up an SSH Server in Windows 7/10
SSH on Windows 7 ("The full awesome implementation")
===============================================================================
http://codeoptimism.net/2010/10/08/SSH-on-Windows-7-the-full-awesome-implementation
http://codeoptimism.net/2010/10/13/SSH-on-Windows-7-continued-charade-ssh-rsync-Unison
22 Dec 2019 Update: Corrected paths for PuTTY; Clarifications for some steps;
11 Dec 2017 Update: Added full paths for Task Manager 'Action' items;
15 Aug 2016 Update: Added .bashrc alias for 'ping';
@tbrunz
tbrunz / Why-is-Lua-So-Cool.txt
Last active September 1, 2022 22:37
What makes Lua a cool programming language?
What makes Lua a cool programming language?
* You can mix imperative, OOP, or functional programming styles.
* Can execute as a file, interactively in a REPL[1], or be embedded.
* Highly portable, extensible, and has an excellent C API[2].
* Compact and headless; you add packages to extend capabilities.
* Supports packages and modules[3]; package manager is 'LuaRocks'.
* Dynamic typing[4] & dynamic structures; easily polymorphic.
@tbrunz
tbrunz / Pharo-Getting-Started.txt
Last active December 18, 2022 23:10
Tips on getting started with Pharo Smalltalk
Tips on getting started with Pharo Smalltalk:
The Pharo Playground & Transcript
The Pharo IDE (specifically, a Playground plus the Transcript) is very useful
for creating and executing "code snippets" or even entire scripts in Pharo.
It's very easy to get a Pharo IDE installed and running by just downloading and
installing Pharo Launcher from https://pharo.org/, cloning a template image,
then launching the image.
@tbrunz
tbrunz / Pharo-ProfStef-Notes.txt
Last active December 19, 2022 01:08
Notes on running ProfStef, the "quick-start" tutorial for Pharo Smalltalk
Notes on running ProfStef, the "quick-start" tutorial for Pharo Smalltalk:
Where to find ProfStef
'ProfStef' is a 15-minute introduction to Pharo that's built into every Pharo
image template. ProfStef will guide you through a "hands-on" tutorial of the
entire Pharo syntax in 29 steps, using the Pharo IDE. To run it, you need to
open a Pharo image; start by downloading and installing the Pharo Launcher app
for your host platform from https://pharo.org, then clone any template to make
@tbrunz
tbrunz / Lua-Closures.lua
Last active March 8, 2023 16:58
A simple Lua app to demonstrate the principles of lexical closures
#! /usr/bin/env lua
--
-- A simple Lua app to demonstrate the principles of lexical closures.
--
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
--