Skip to content

Instantly share code, notes, and snippets.

View ivan-pi's full-sized avatar

Ivan Pribec ivan-pi

View GitHub Profile
@modernserf
modernserf / forth.md
Last active September 18, 2024 12:41
Forth

The Forth Freedoms

Abstract

While programmers love talking about the virtues of minimalism and simplicity, each of us depends on a mountain of abstraction and complexity: build systems, package managers, deployment infrastructure, etc. But much like the suburbanite dreaming of a tiny house in the woods, we find ourselves wishing we could give up all the tools and best practices and work "close to the metal." Could we live without garbage collection? Built-in data structures? Variable names?

These are the principles of Forth, a radically minimalist programming language. This talk explores my experiences in the Forth wilderness: how Forth embodies a computational "rugged individualism", and the peculiar freedom that comes from working with so little abstraction. We'll also discuss what drives people away from Forth, and how I have tried to integrate The Forth Way into my work when I returned to the creature comforts of high-level programming languages.

Details

@leverich
leverich / tide_fac.f
Created November 27, 2015 19:02
tide_fac.f modified to compute node factors and equilibrium arguments for all 37 NOS/NOAA tidal constituents
C PROGRAM TO COMPUTE NODAL FACTORS AND EQUILIBRIUM ARGUEMENTS
C
C
PARAMETER(NCNST=37)
CHARACTER CNAME(NCNST)*8
COMMON /CNSNAM/ CNAME
REAL NODFAC,MONTH
DIMENSION NCON(NCNST)
COMMON /CNST/ NODFAC(NCNST),GRTERM(NCNST),SPEED(NCNST),P(NCNST)
@jshahbazi
jshahbazi / fmincg.f90
Created May 31, 2014 22:17
fmincg minimization function ported to Fortran
real function fmincg(length, nn_params, input_layer_size, hidden_layer_size, num_labels, inputdata, y, lambda)
implicit none
! Copyright (C) 2001 and 2002 by Carl Edward Rasmussen. Date 2002-02-13
! (C) Copyright 1999, 2000 & 2001, Carl Edward Rasmussen
!
! Permission is granted for anyone to copy, use, or modify these
! programs and accompanying documents for purposes of research or
! education, provided this copyright notice is retained, and note is
! made of any changes that have been made.
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 7, 2025 03:43
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname