Skip to content

Instantly share code, notes, and snippets.

View krystophny's full-sized avatar

Christopher Albert krystophny

View GitHub Profile
@huijunchen9260
huijunchen9260 / tikz_module.f90
Created June 8, 2024 04:37
Using tikz to plot 2D figure in Fortran
module tikz_module
! -------------------------------------------------- !
! ! If using intel fortran, must include this module !
! ! If using gnu fortran, must comment this line out !
! use ifport !
! -------------------------------------------------- !
use, intrinsic :: iso_Fortran_env, only : wp => real64, int32, int64, real32, real64, OUTPUT_UNIT, INPUT_UNIT, ERROR_UNIT
use omp_lib
@jpluimers
jpluimers / GetShortStringString.pas
Created August 31, 2013 11:55
NEXTGEN compatible GetShortStringString.
function GetShortStringString(const ShortStringPointer: PByte): string;
var
ShortStringLength: Byte;
FirstShortStringCharacter: MarshaledAString;
ConvertedLength: Cardinal;
UnicodeCharacters: array[Byte] of Char; // cannot be more than 255 characters, reserve 1 character for terminating null
begin
if not Assigned(ShortStringPointer) then
Result := ''
else