commit
stringlengths
40
40
subject
stringlengths
4
1.73k
repos
stringlengths
5
127k
old_file
stringlengths
2
751
new_file
stringlengths
2
751
new_contents
stringlengths
1
8.98k
old_contents
stringlengths
0
6.59k
license
stringclasses
13 values
lang
stringclasses
23 values
499e173b35a457768ea3ef5732d0de6a6f9723df
Use the provided const value for c lib definition.
tristan2468/hgdc-x
resolver.pas
resolver.pas
{ * Copyright (c) 2011, Tristan Linnell <tris@canthack.org> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS...
{ * Copyright (c) 2011, Tristan Linnell <tris@canthack.org> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS...
isc
Pascal
35a0c78d3564f774c25d912502988773ce1d8a13
Fix exercise 1-6 a)
bewuethr/software-tools
detab_a.pas
detab_a.pas
{ complete detab, without tabstops and settabs } program detabprog (input, output); const ENDFILE = -1; NEWLINE = 10; { ASCII value } BLANK = 32; BACKSPACE = 8; TAB = 9; type character = -1..127; { ASCII, plus ENDFILE } { getc -- get one character from standard input } function getc (var c...
{ complete detab } program detabprog (input, output); const ENDFILE = -1; NEWLINE = 10; { ASCII value } BLANK = 32; BACKSPACE = 8; TAB = 9; type character = -1..127; { ASCII, plus ENDFILE } { getc -- get one character from standard input } function getc (var c : character) : character; var...
mit
Pascal
141e0c766fc3ee042d65597ff8a3b2c95718592c
clean up
mdbs99/james
src/JamesRTLAdapters.pas
src/JamesRTLAdapters.pas
{ MIT License Copyright (c) 2017-2019 Marcos Douglas B. Santos Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
{ MIT License Copyright (c) 2017-2019 Marcos Douglas B. Santos Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
mit
Pascal
e53e07a4b105d561013e5c002df67892b828d004
define for reporting memory leaks in example
Sphere10/PascalFramework,Sphere10/PascalFramework
examples/visualgrid/VisualGridExample.lpr
examples/visualgrid/VisualGridExample.lpr
program VisualGridExample; {$mode objfpc}{$H+} {.$DEFINE REPORT_MEMORY_LEAKS} uses {$IFDEF REPORT_MEMORY_LEAKS} heaptrc, {$ENDIF} {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, // this includes the LCL widgetset Forms, runtimetypeinfocontrols, fMain { you can add units afte...
program VisualGridExample; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, // this includes the LCL widgetset Forms, runtimetypeinfocontrols, fMain { you can add units after this }; {$R *.res} begin RequireDerivedFormResource:=True; Application.Initi...
mit
Pascal
23cfcbb4ac70d029ce70c4e92b187adf755ce26f
update isogram to 1.4.0
exercism/xdelphi,rpottsoh/xpascal,rpottsoh/xdelphi,exercism/xpascal,rpottsoh/exercism-delphi
exercises/isogram/uIsogramTests.pas
exercises/isogram/uIsogramTests.pas
unit uIsogramTests; interface uses DUnitX.TestFramework; const CanonicalVersion = '1.4.0'; type [TestFixture] IsogramTests = class(TObject) public [Test] // [Ignore('Comment the "[Ignore]" statement to run the test')] procedure empty_string; [Test] [Ignore] procedure isogram_with_o...
unit uIsogramTests; interface uses DUnitX.TestFramework; const CanonicalVersion = '1.3.0'; type [TestFixture] IsogramTests = class(TObject) public [Test] // [Ignore('Comment the "[Ignore]" statement to run the test')] procedure empty_string; [Test] [Ignore] procedure isogram_with_o...
mit
Pascal
0475114462d8f5418ec5eaf718e35e6b0039fffa
Fix for hotkeys were not loaded from XML on the game start
reyandme/kam_remake,reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,reyandme/kam_remake,reyandme/kam_remake,thibmo/kam_remake,thibmo/kam_remake,thibmo/kam_remake,thibmo/kam_remake
src/settings/KM_KeysSettings.pas
src/settings/KM_KeysSettings.pas
unit KM_KeysSettings; {$I KaM_Remake.inc} interface uses KM_GameAppSettings; type // Hotkey Settings TKMKeysSettings = class(TKMGameAppSettingsPart) public constructor Create; destructor Destroy; override; procedure LoadFromXML; override; procedure SaveToXML; override; end; ...
unit KM_KeysSettings; {$I KaM_Remake.inc} interface uses KM_GameAppSettings; type // Hotkey Settings TKMKeysSettings = class(TKMGameAppSettingsPart) public constructor Create; destructor Destroy; override; procedure LoadFromXML; override; procedure SaveToXML; override; end; ...
agpl-3.0
Pascal
eaaf3f0a861129df5d0c75667404659eb8e6b145
Add namespace in sample code
thecocce/Compute
tests/Compute.Test.pas
tests/Compute.Test.pas
unit Compute.Test; interface procedure RunTests; implementation uses System.SysUtils, System.DateUtils, Compute, Compute.Functions; function ReferenceTransform(const Input: TArray<double>): TArray<double>; var i: integer; x: double; begin SetLength(result, Length(input)); for i := 0 to High(input)...
unit Compute.Test; interface procedure RunTests; implementation uses System.SysUtils, System.DateUtils, Compute, Compute.Functions; function ReferenceTransform(const Input: TArray<double>): TArray<double>; var i: integer; x: double; begin SetLength(result, Length(input)); for i := 0 to High(input)...
apache-2.0
Pascal
6829b8ff9ff74c1227af0e87f95ca06ac27668d9
clean up
mdbs99/xavier
src/XavierBase.pas
src/XavierBase.pas
{ MIT License Copyright (c) 2017-2019 Marcos Douglas B. Santos Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
{ MIT License Copyright (c) 2017-2019 Marcos Douglas B. Santos Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
mit
Pascal
a33da508f7b93e787d5f3d2f637d73ece0f9df53
Set Delphi mode for FPC compiler
Wosi/DelphiAST
Source/StringPool.pas
Source/StringPool.pas
unit StringPool; {$IFDEF FPC}{$MODE Delphi}{$ENDIF} interface type TStringBucket = record Hash: Cardinal; Value: string; end; PStringBucket = ^TStringBucket; TStringBuckets = array of TStringBucket; TStringPool = class private FBuckets: TStringBuckets; FCount: Integer; FGrowth: Integ...
unit StringPool; interface type TStringBucket = record Hash: Cardinal; Value: string; end; PStringBucket = ^TStringBucket; TStringBuckets = array of TStringBucket; TStringPool = class private FBuckets: TStringBuckets; FCount: Integer; FGrowth: Integer; FCapacity: Integer; proc...
mpl-2.0
Pascal
956a093294a2c79b2da2a46b8d8c022cdb422558
read tokens from keyboard and put in an array
minneron/minneron,minneron/minneron
tok.pas
tok.pas
{ this is a token-centric editor. } {$i xpc.inc}{$mode delphi} program tok; uses uapp, mned, ukm, utok, ui, kvm, dndk, undk, udb, udc, uminneron, mnbuf, classes; type TTokEd = class (uapp.TCustomApp) protected ndk : dndk.IBase; cmd : ui.ZInput; here : string; hist : array of string; page : m...
{$mode delphi} program tok; uses uapp, mned, ukm, utok, ui, kvm; type TTokEd = class (uapp.TCustomApp) cmd : ui.ZInput; procedure init; override; procedure step; override; procedure keys(km : ukm.TKeyMap); override; procedure DelegateKey( ext : boolean; ch : char ); procedure OnCmdAccept( s : string ); en...
mit
Pascal
504d6f1b2f898313773ab22cef3ff8cd6297b414
remove unneeded code
Xor-el/HashLib4Pascal,Xor-el/HashLib4Pascal
HashLib/src/NullDigest/HlpNullDigest.pas
HashLib/src/NullDigest/HlpNullDigest.pas
unit HlpNullDigest; {$I ..\Include\HashLib.inc} interface uses Classes, SysUtils, HlpHashLibTypes, HlpHash, HlpIHash, HlpIHashInfo, HlpHashResult, HlpIHashResult; resourcestring SHashSizeNotImplemented = 'HashSize Not Implemented For "%s"'; SBlockSizeNotImplemented = 'BlockSize Not Implemented F...
unit HlpNullDigest; {$I ..\Include\HashLib.inc} interface uses Classes, SysUtils, HlpHashLibTypes, HlpHash, HlpIHash, HlpIHashInfo, HlpHashResult, HlpIHashResult; resourcestring SHashSizeNotImplemented = 'HashSize Not Implemented For "%s"'; SBlockSizeNotImplemented = 'BlockSize Not Implemented F...
mit
Pascal
a7744b6a32e97df65257051884adbeddb16f1600
simplify balance summary
PascalCoin/PascalCoin,PascalCoin/PascalCoin,PascalCoin/PascalCoin,PascalCoin/PascalCoin
src/core.utils/UCoreObjects.pas
src/core.utils/UCoreObjects.pas
unit UCoreObjects; { Copyright (c) 2018 by PascalCoin Project Contains common types for Core module. Distributed under the MIT software license, see the accompanying file LICENSE or visit http://www.opensource.org/licenses/mit-license.php. Acknowledgements: Herman Schoenfeld <herman@sphere10.com>: unit ...
unit UCoreObjects; { Copyright (c) 2018 by PascalCoin Project Contains common types for Core module. Distributed under the MIT software license, see the accompanying file LICENSE or visit http://www.opensource.org/licenses/mit-license.php. Acknowledgements: Herman Schoenfeld <herman@sphere10.com>: unit ...
mit
Pascal
2d19de2624bdb455752b97979d375386954cd4f1
fix compile on win32
Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText
app/cudatext.lpr
app/cudatext.lpr
program cudatext; {$mode objfpc}{$H+} uses {$IFDEF UNIX} cthreads, {$ENDIF} Interfaces, // this includes the LCL widgetset SysUtils, Forms, lazcontrols, FormMain, FormConsole, form_menu_commands, formgoto, form_menu_list, formsavetabs, formconfirmrep, formlexerprop, formlexerlib, formcolorsetup, for...
program cudatext; {$mode objfpc}{$H+} uses {$IFDEF UNIX} cthreads, {$ENDIF} Interfaces, // this includes the LCL widgetset SysUtils, Forms, lazcontrols, FormMain, FormConsole, FormFrame, form_menu_commands, formgoto, form_menu_list, formsavetabs, formconfirmrep, formlexerprop, formlexerlib, formcolo...
mpl-2.0
Pascal
e90aeed3555fdeb14abe66f5a0e21af17a747375
upgrade to zinput.keys()
minneron/minneron,minneron/minneron
impforth.pas
impforth.pas
{$mode delphiunicode}{$i xpc.inc} program impforth; uses xpc, uapp, ukm, uimpforth, ui, cw, kvm,cli; type TForthApp = class (uapp.TCustomApp) public cmd : ui.ZInput; imp : TImpForth; procedure init; override; procedure keys(km : ukm.TKeyMap); override; procedure step; override; ...
{$mode delphi}{$i xpc.inc} program impforth; uses xpc, uapp, ukm, uimpforth, ui, cw, kvm,cli; type TForthApp = class (uapp.TCustomApp) public cmd : ui.ZInput; imp : TImpForth; procedure init; override; procedure keys(km : ukm.TKeyMap); override; procedure step; override; proce...
mit
Pascal
f359f019aaff84ee9e6c84af3b8832b8c842b2ac
Support of parallel Runner
reyandme/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake,thibmo/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake,Alexandr57/kam_remake,thibmo/kam_remake,Alexandr57/kam_remake,reyandme/kam_remake,thibmo/kam_remake,thibmo/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake,Alexandr57/kam_remake,thibmo/kam_remak...
Utils/Runner/Runner.dpr
Utils/Runner/Runner.dpr
program Runner; {$I KaM_Remake.inc} uses Forms, {$IFDEF FPC} Interfaces, {$ENDIF} Unit1 in 'Unit1.pas' {Form2}, Unit_Runner in 'Unit_Runner.pas', Runner_Game in 'Runner_Game.pas', KM_Defaults in '..\..\src\common\KM_Defaults.pas', ComInterface in 'ComInterface.pas', ManagerInterface in 'Manag...
program Runner; {$I KaM_Remake.inc} uses Forms, {$IFDEF FPC} Interfaces, {$ENDIF} Unit1 in 'Unit1.pas' {Form2}, Unit_Runner in 'Unit_Runner.pas', Runner_Game in 'Runner_Game.pas', KM_Defaults in '..\..\src\common\KM_Defaults.pas'; {$R *.res} begin Application.Initialize; Application.Crea...
agpl-3.0
Pascal
8c228510265322a4c07c3db901b9b08781956463
Update demo
Wosi/DelphiASTTemp,uschuster/DelphiAST,AmesianX/DelphiAST,RomanYankovsky/DelphiAST,monkeyxu/DelphiAST,LaKraven/DelphiAST,Wosi/DelphiAST,vintagedave/DelphiAST,NickRing/DelphiAST
Demo/uMainForm.dfm
Demo/uMainForm.dfm
object Form1: TForm1 Left = 0 Top = 0 Caption = 'Form1' ClientHeight = 389 ClientWidth = 666 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style = [] Menu = MainMenu1 OldCreateOrder = False PixelsPerInch = 96 TextHeig...
object Form1: TForm1 Left = 0 Top = 0 Caption = 'Form1' ClientHeight = 389 ClientWidth = 666 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style = [] Menu = MainMenu1 OldCreateOrder = False PixelsPerInch = 96 TextHeig...
mpl-2.0
Pascal
4ab9a7edf539a9e58616bda177ea093ff9770855
Add TSet<T>.GetSetToString function
Alexandr57/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,thibmo/kam_remake,Alexandr57/kam_remake,Alexandr57/kam_remake,reyandme/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake,thibmo/kam_remake,thibmo/kam_remak...
src/common/KM_CommonClassesExt.pas
src/common/KM_CommonClassesExt.pas
unit KM_CommonClassesExt; {$I KaM_Remake.inc} interface uses SysUtils, TypInfo; type ERuntimeTypeError = class(Exception); TSet<T> = class strict private class function TypeInfo: PTypeInfo; inline; static; class function GetSetToString(const PSet: PByteArray; const SizeOfSet(*in bytes*): I...
unit KM_CommonClassesExt; {$I KaM_Remake.inc} interface uses SysUtils, TypInfo; type ERuntimeTypeError = class(Exception); TSet<T> = class strict private class function TypeInfo: PTypeInfo; inline; static; public class function IsSet: Boolean; static; class function Cardinality(con...
agpl-3.0
Pascal
4b52c8986fe8b4a1dbb12969b70c12e1424cd33c
Implement check for header row in FPC
samuell/gccontent-benchmark,samuell/gccontent-benchmark,samuell/gccontent-benchmark,samuell/gccontent-benchmark
fpc.000/gc.pas
fpc.000/gc.pas
program gc; uses Sysutils; var FastaFile: TextFile; CurrentLine: String; GCCount: LongInt; ATCount: LongInt; TotalBaseCount: LongInt; c: Char; GCFraction: Single; PC,PCEnd: PChar; begin ATCount := 0; GCCount := 0; TotalBaseCount := 0; Assign(FastaFile, 'Homo_s...
program gc; uses Sysutils; var FastaFile: TextFile; CurrentLine: String; GCCount: LongInt; ATCount: LongInt; TotalBaseCount: LongInt; c: Char; GCFraction: Single; PC,PCEnd: PChar; begin ATCount := 0; GCCount := 0; TotalBaseCount := 0; Assign(FastaFile, 'Homo_s...
mit
Pascal
0648b9d912ca50ef547d9a92e5f099eb04dd3255
fix GoTo caption font
Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText
app/formgoto.pas
app/formgoto.pas
(* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. Copyright (c) Alexey Torgashin *) unit formgoto; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms...
(* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. Copyright (c) Alexey Torgashin *) unit formgoto; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms...
mpl-2.0
Pascal
9588ef1aadcd2a06952ef0c955fc622103f1d016
fix #773
vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText
app/form_addon_report.pas
app/form_addon_report.pas
unit form_addon_report; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ButtonPanel, ExtCtrls, StdCtrls, IniFiles, ATStringProc, proc_globdata, proc_msg; type { TfmAddonReport } TfmAddonReport = class(TForm) ButtonPanel1: TButtonPanel; ListB...
unit form_addon_report; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ButtonPanel, ExtCtrls, StdCtrls, IniFiles, ATStringProc, proc_globdata, proc_msg; type { TfmAddonReport } TfmAddonReport = class(TForm) ButtonPanel1: TButtonPanel; ListB...
mpl-2.0
Pascal
60f0179dbaf3d8bff52b74088a94b694c7bc0482
Update comments.
UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-R...
pascal_pi_dir/pi32.pas
pascal_pi_dir/pi32.pas
Program pi32(output); Uses sysutils; { Use am Cardinal for numsteps because we want to use big numbers of steps. } Var step, x, sum, mypi, time, start, stop : Double; i, numsteps : Cardinal; Begin numsteps := 100000000; { Get numsteps from command line args. } if ParamCount > 0 then numsteps := StrTo...
Program pi32(output); Uses sysutils; { Use am Int64 for numsteps because we want to use big numbers of steps. } Var step, x, sum, mypi, time, start, stop : Double; i, numsteps : Cardinal; Begin numsteps := 100000000; { Get numsteps from command line args. } if ParamCount > 0 then numsteps := StrToInt...
cc0-1.0
Pascal
9a8d1f9188b2d92b84ca3f2d25f7d852895598d3
Correct resource include in demo project's main form
Wosi/DelphiASTTemp,monkeyxu/DelphiAST,vintagedave/DelphiAST,LaKraven/DelphiAST,Wosi/DelphiAST,uschuster/DelphiAST,NickRing/DelphiAST,RomanYankovsky/DelphiAST,AmesianX/DelphiAST
Demo/uMainForm.pas
Demo/uMainForm.pas
unit uMainForm; {$IFDEF FPC}{$MODE Delphi}{$ENDIF} interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus, StdCtrls; type TForm1 = class(TForm) Memo1: TMemo; MainMenu1: TMainMenu; OpenDelphiUnit1: TMenuItem; OpenDialog1: TOpenDialog; proced...
unit uMainForm; {$IFDEF FPC}{$MODE Delphi}{$ENDIF} interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus, StdCtrls; type TForm1 = class(TForm) Memo1: TMemo; MainMenu1: TMainMenu; OpenDelphiUnit1: TMenuItem; OpenDialog1: TOpenDialog; proced...
mpl-2.0
Pascal
4596a7b31a955a16ad4b7d2c12ebf4d2129ecae7
Create unit output directory if it doesn't yet exist.
wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI
src/builderthread.pas
src/builderthread.pas
unit BuilderThread; {$mode objfpc}{$H+} interface uses Classes, SysUtils; type TBuilderThread = class(TThread) private FBuildMode: integer; protected procedure Execute; override; public procedure AfterConstruction; override; property BuildMode: integer read FBuildMode write FBuildMode; ...
unit BuilderThread; {$mode objfpc}{$H+} interface uses Classes, SysUtils; type TBuilderThread = class(TThread) private FBuildMode: integer; protected procedure Execute; override; public procedure AfterConstruction; override; property BuildMode: integer read FBuildMode write FBuildMode; ...
lgpl-2.1
Pascal
2aa4b9eb3e0f528ad1ceee876e7573b561a21034
Add ReportMemoryLeaksOnShutdown to the test app
NickRing/DelphiAST,Wosi/DelphiASTTemp,monkeyxu/DelphiAST,vintagedave/DelphiAST,AmesianX/DelphiAST,Wosi/DelphiAST,RomanYankovsky/DelphiAST,uschuster/DelphiAST,LaKraven/DelphiAST
Test/DelphiASTTest.dpr
Test/DelphiASTTest.dpr
program DelphiASTTest; uses Vcl.Forms, uMainForm in 'uMainForm.pas' {Form2}; {$R *.res} begin System.ReportMemoryLeaksOnShutdown := True; Application.Initialize; Application.MainFormOnTaskbar := True; Application.CreateForm(TForm2, Form2); Application.Run; end.
program DelphiASTTest; uses Vcl.Forms, uMainForm in 'uMainForm.pas' {Form2}; {$R *.res} begin Application.Initialize; Application.MainFormOnTaskbar := True; Application.CreateForm(TForm2, Form2); Application.Run; end.
mpl-2.0
Pascal
21e0f8fb856c0be3ee297657ccae7fbfc7abf8fc
Correct resource include in demo project's main form
Wosi/DelphiASTTemp,AmesianX/DelphiAST,Wosi/DelphiAST,RomanYankovsky/DelphiAST,vintagedave/DelphiAST,LaKraven/DelphiAST,NickRing/DelphiAST,uschuster/DelphiAST,monkeyxu/DelphiAST
Demo/uMainForm.pas
Demo/uMainForm.pas
unit uMainForm; {$IFDEF FPC}{$MODE Delphi}{$ENDIF} interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus, StdCtrls; type TForm1 = class(TForm) Memo1: TMemo; MainMenu1: TMainMenu; OpenDelphiUnit1: TMenuItem; OpenDialog1: TOpenDialog; proced...
unit uMainForm; {$IFDEF FPC}{$MODE Delphi}{$ENDIF} interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus, StdCtrls; type TForm1 = class(TForm) Memo1: TMemo; MainMenu1: TMainMenu; OpenDelphiUnit1: TMenuItem; OpenDialog1: TOpenDialog; proced...
mpl-2.0
Pascal
c0605e3428cc6468e0d504e69e0292efa01d8c63
fix freeing of treehelper data
Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText
app/treehelpers_base.pas
app/treehelpers_base.pas
(* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. Copyright (c) Alexey Torgashin *) unit TreeHelpers_Base; {$mode ObjFPC}{$H+} {$ModeSwitch advancedrecords} interface use...
(* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. Copyright (c) Alexey Torgashin *) unit TreeHelpers_Base; {$mode ObjFPC}{$H+} {$ModeSwitch advancedrecords} interface use...
mpl-2.0
Pascal
228dacbd670b8854d872880e40e85e627e6d5cb4
Remove failure case
tavultesoft/keymanweb,tavultesoft/keymanweb
windows/src/unit-tests/keyboard-js-info/Keyman.Test.System.KeyboardJSInfoTest.pas
windows/src/unit-tests/keyboard-js-info/Keyman.Test.System.KeyboardJSInfoTest.pas
unit Keyman.Test.System.KeyboardJSInfoTest; interface uses DUnitX.TestFramework; type [TestFixture] TKeyboardJSInfoTest = class(TObject) public [Setup] procedure Setup; [TearDown] procedure TearDown; [Test] procedure TestJSWithoutDebugCode; [Test] procedure TestJSWithDebugC...
unit Keyman.Test.System.KeyboardJSInfoTest; interface uses DUnitX.TestFramework; type [TestFixture] TKeyboardJSInfoTest = class(TObject) public [Setup] procedure Setup; [TearDown] procedure TearDown; [Test] procedure TestJSWithoutDebugCode; [Test] procedure TestJSWithDebugC...
apache-2.0
Pascal
a71e84bc847a96d2813ffeb5abd223b78295ece5
work on scrollbars
Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,vhanla/CudaText
app/proc_scrollbars.pas
app/proc_scrollbars.pas
unit proc_scrollbars; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Controls, Graphics, StdCtrls, ComCtrls, Forms, ATScrollBar, ATListbox; type { TTreeViewMy } TTreeViewMy = class(TTreeView) private FScroll: TATScroll; procedure ScrollChange(Sender: TObject); procedure UpdScroll; pr...
unit proc_scrollbars; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Controls, Graphics, StdCtrls, ComCtrls, Forms, ATScrollBar, ATListbox; type { TTreeViewMy } TTreeViewMy = class(TTreeView) private FScroll: TATScroll; procedure ScrollChange(Sender: TObject); procedure UpdScroll; pr...
mpl-2.0
Pascal
8210f3019b59a4e3b6681b1edcc2a71a6b2e93ae
Remove extra .
UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-R...
pascal_pi_dir/pi.pas
pascal_pi_dir/pi.pas
Program pi(output); Uses sysutils; { Use am Int64 for numsteps because we want to use big numbers of steps. } Var step, x, sum, mypi, time, start, stop : Double; i, numsteps : Int64; Begin numsteps := 1000000000; { Get numsteps from command line args. } if ParamCount > 0 then numsteps := StrToInt64(P...
Program pi(output); Uses sysutils; { Use am Int64 for numsteps because we want to use big numbers of steps. } Var step, x, sum, mypi, time, start, stop : Double; i, numsteps : Int64; Begin numsteps := 1000000000; { Get numsteps from command line args. } if ParamCount > 0 then numsteps := StrToInt64(P...
cc0-1.0
Pascal
3dbc92a776423737e675f97fc96610d3518638b1
Update hello world (#49)
exercism/xdelphi,rpottsoh/xdelphi,exercism/xpascal,rpottsoh/exercism-delphi,rpottsoh/xpascal
exercises/hello-world/uTestHelloWorld.pas
exercises/hello-world/uTestHelloWorld.pas
unit uTestHelloWorld; interface uses DUnitX.TestFramework; type [TestFixture] HelloWorldTest = class(TObject) public [Test] procedure test_no_name; [Test] [Ignore('Comment this line to run this test')] procedure test_sample_name; [Test] [Ignore('Comment this line to run this test')...
unit uTestHelloWorld; interface uses DUnitX.TestFramework; type [TestFixture] HelloWorldTest = class(TObject) public [Test] // [Ignore] procedure test_no_name; [Test] // [Ignore] procedure test_sample_name; [Test] // [Ignore] procedure test_other_sample_name; end; implement...
mit
Pascal
4efcfe6069690a558ea415cc99c3d12848cf8f9b
Implement console functionality into the main app
wimulkeman/kam_remake,thibmo/kam_remake,wimulkeman/kam_remake,thibmo/kam_remake,wimulkeman/kam_remake,Alexandr57/kam_remake,Alexandr57/kam_remake,Kromster80/kam_remake,Kromster80/kam_remake,reyandme/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake,reyandme/kam_remake,wimulk...
Utils/ScriptValidator/ScriptValidator.dpr
Utils/ScriptValidator/ScriptValidator.dpr
program ScriptValidator; {$APPTYPE CONSOLE} uses Windows, SysUtils, Forms, KM_Defaults, Unit1 in 'Unit1.pas' {Form1}, ValidatorTypes in 'ValidatorTypes.pas', ConsoleMain in 'ConsoleMain.pas'; {$R *.res} var fConsoleMain: TConsoleMain; fParamRecord: TCLIParamRecord; fArgs: st...
program ScriptValidator; uses Forms, Unit1 in 'Unit1.pas' {Form1}; {$R *.res} begin Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end.
agpl-3.0
Pascal
7b68602b68b59ca869140ba3c72dac1ee80b7cc3
test unit clipboard
d-mozulyov/CrystalPathFinding
development/TestUnit.pas
development/TestUnit.pas
unit TestUnit; {$i crystal_options.inc} interface uses {$ifdef MSWINDOWS} {$if Defined(FPC) or (CompilerVersion < 23)} Windows, ClipBrd, {$else} Winapi.Windows, Vcl.ClipBrd, {$ifend} {$endif} SysUtils, CrystalPathFinding; procedure RUN; procedure ShowMessage(const S: string); over...
unit TestUnit; {$i crystal_options.inc} interface uses {$ifdef MSWINDOWS} {$if Defined(FPC) or (CompilerVersion < 23)}Windows{$else}Winapi.Windows{$ifend}, {$endif} SysUtils, CrystalPathFinding; procedure RUN; procedure ShowMessage(const S: string); overload; procedure ShowMessage(const StrFmt: strin...
mit
Pascal
6917366e56bcee360f093d827e34c294658fd5b6
fix dwarf line reading
graemeg/fpdebug
tests/dwarfreader/dwarfreader.pas
tests/dwarfreader/dwarfreader.pas
program dwarfreader; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} SysUtils, Classes, dbgInfoTypes, dbgInfoDwarf, PESource, machoDbgSource; procedure ReadDwarfData(source : TDbgDataSource); var dwarf : TDbgDwarf3Info; begin if not TDbgDwarf3Info.isPresent(source)...
program dwarfreader; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} SysUtils, Classes, dbgInfoTypes, dbgInfoDwarf, PESource, machoDbgSource; procedure ReadDwarfData(source : TDbgDataSource); var dwarf : TDbgDwarf3Info; begin if not TDbgDwarf3Info.isPresent(source)...
bsd-2-clause
Pascal
ecf924938f2efafbbe6d050bcfd2a04b3f20b049
Remove unnecessary uses
thomaserlang/delphi-rest-client-api,simar0at/delphi-rest-client-api,VSoftTechnologies/delphi-rest-client-api,VSoftTechnologies/delphi-rest-client-api,thomaserlang/delphi-rest-client-api,fabriciocolombo/delphi-rest-client-api,fabriciocolombo/delphi-rest-client-api,thomaserlang/delphi-rest-client-api,monde-sistemas/delph...
unittest/BaseTestRest.pas
unittest/BaseTestRest.pas
unit BaseTestRest; interface uses RestClient, TestFramework, HttpConnection, TestExtensions, TypInfo; {$I DelphiRest.inc} type IBaseTestRest = interface(ITest) ['{519FE812-AC27-484D-9C4B-C7195E0068C4}'] procedure SetHttpConnectionType(AHttpConnectionType: THttpConnectionType); end; TBaseTestSuite = cla...
unit BaseTestRest; interface uses RestClient, TestFramework, HttpConnection, TestExtensions, TypInfo, System.SysUtils; {$I DelphiRest.inc} type IBaseTestRest = interface(ITest) ['{519FE812-AC27-484D-9C4B-C7195E0068C4}'] procedure SetHttpConnectionType(AHttpConnectionType: THttpConnectionType); end; TBa...
apache-2.0
Pascal
d51d511a60059169bfb28b2b0d5886727a72450a
Update Project4.dpr
dcprojects/CoolProp,DANA-Laboratory/CoolProp,CoolProp/CoolProp,henningjp/CoolProp,henningjp/CoolProp,dcprojects/CoolProp,DANA-Laboratory/CoolProp,DANA-Laboratory/CoolProp,henningjp/CoolProp,dcprojects/CoolProp,CoolProp/CoolProp,JonWel/CoolProp,DANA-Laboratory/CoolProp,DANA-Laboratory/CoolProp,henningjp/CoolProp,CoolPro...
wrappers/Delphi/Project4.dpr
wrappers/Delphi/Project4.dpr
{ Project 4: CoolProp Graphic Demo Bruce Wernick, 13 December 2015 } program Project4; uses Forms, main in 'main.pas' {MainForm}, uMolChart in 'uMolChart.pas', cpIntf in 'cpIntf.pas'; {$R *.res} begin Application.Initialize; Application.MainFormOnTaskbar := True; Application.CreateForm(TMainForm, ...
program Project4; uses Forms, main in 'main.pas' {MainForm}, uMolChart in 'uMolChart.pas', cpIntf in 'cpIntf.pas'; {$R *.res} begin Application.Initialize; Application.MainFormOnTaskbar := True; Application.CreateForm(TMainForm, MainForm); Application.Run; end.
mit
Pascal
bd55d1235a8828a579b4d9f5e81c12e818cb7e98
update adds projects
nikitazu/sharpanal,nikitazu/sharpanal
commands/updatecommand.pas
commands/updatecommand.pas
unit UpdateCommand; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, AbstractCommand, SolutionModel, ProjectModel, DbfIndexedStorage; type TUpdateCommand = class(TAbstractCommand) public class function CommandName: ShortString; protected procedure OnR...
unit UpdateCommand; {$mode objfpc}{$H+} interface uses Classes, SysUtils, AbstractCommand, SolutionModel, DbfIndexedStorage; type TUpdateCommand = class(TAbstractCommand) public class function CommandName: ShortString; protected procedure OnRun; override; functi...
mit
Pascal
fe57352d8bb631830943da640cdcbac223886eee
Update tests
uschuster/DelphiAST,RomanYankovsky/DelphiAST,Wosi/DelphiAST,LaKraven/DelphiAST,vintagedave/DelphiAST
Test/Snippets/pointerchars.pas
Test/Snippets/pointerchars.pas
unit pointerchars; interface implementation procedure FormKeyPress(Sender: TObject; var Key: Char); var P: PInteger; Arr: array of Integer; begin if Arr[P^] > 0 then begin // some code end; if Key = ^\ then begin //some code end; if Key = ^M then begin //some code ...
unit pointerchars; interface implementation procedure FormKeyPress(Sender: TObject; var Key: Char); var P: PInteger; Arr: array of Integer; begin if Arr[P^] > 0 then begin // some code end; if Key = ^\ then begin //some code end; if Key = ^M then begin //some code ...
mpl-2.0
Pascal
a691a30ea8b419d7d5727438387dc39fed5299c7
address review comments
tavultesoft/keymanweb,tavultesoft/keymanweb
windows/src/unit-tests/standards-data/Keyman.Test.System.Standards.LangTagsRegistryTest.pas
windows/src/unit-tests/standards-data/Keyman.Test.System.Standards.LangTagsRegistryTest.pas
unit Keyman.Test.System.Standards.LangTagsRegistryTest; interface uses DUnitX.TestFramework; type [TestFixture] TLangTagsTest = class(TObject) public [Test] procedure TestSomeTags; end; implementation uses Keyman.System.Standards.LangTagsRegistry; { TLangTagsTest } procedure TLangTagsTest.Tes...
unit Keyman.Test.System.Standards.LangTagsRegistryTest; interface uses DUnitX.TestFramework; type [TestFixture] TLangTagsTest = class(TObject) public [Test] procedure TestSomeTags; end; implementation uses Keyman.System.Standards.LangTagsRegistry; { TLangTagsTest } procedure TLangTagsTest.Tes...
apache-2.0
Pascal
f9579527cd10224708181f721a35403f5989e559
insert comments to carry on theme
exercism/xdelphi,rpottsoh/exercism-delphi,rpottsoh/xdelphi,rpottsoh/xpascal,exercism/xpascal
exercises/hello-world/uTestHelloWorld.pas
exercises/hello-world/uTestHelloWorld.pas
(****************************************************************************** You got an error, which is exactly as it should be. This is the first step in the Test-Driven Development (TDD) process. The most important part of the error is "cannot compile" It's looking for a file named uHelloWorld.pas that ...
(****************************************************************************** You got an error, which is exactly as it should be. This is the first step in the Test-Driven Development (TDD) process. The most important part of the error is "cannot compile" It's looking for a file named uHelloWorld.pas that ...
mit
Pascal
c0ce56db5bf367f1dbf87fdd0a4f6bf0f7e029f0
fix for tester
grahamegrieve/delphi-markdown
fpc/MarkdownTestProgram.lpr
fpc/MarkdownTestProgram.lpr
program MarkdownTestProgram; {$IFDEF FPC}{$MODE DELPHI}{$ENDIF} uses {$IFDEF MSWINDOWS} Windows, {$ENDIF} Interfaces, SysUtils, Forms, idetester_console, CommonTestBase, MarkdownDaringFireballTests, MarkdownCommonMarkTests, idetester_runtime, idetester_form; {$R *.res} procedure RegisterTests; beg...
program MarkdownTestProgram; {$IFDEF FPC}{$MODE DELPHI}{$ENDIF} uses {$IFDEF MSWINDOWS} Windows, {$ENDIF} Interfaces, SysUtils, Forms, idetester_console, CommonTestBase, MarkdownDaringFireballTests, MarkdownCommonMarkTests, idetester_runtime, idetester_form; {$R *.res} procedure RegisterTests; beg...
apache-2.0
Pascal
b739b72873db9b60e3013c92474f784dd754c598
fix #1029
vhanla/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,vhanla/CudaText,Alexey-T/CudaText,vhanla/CudaText,Alexey-T/CudaText,Alexey-T/CudaText
app/proc_scrollbars.pas
app/proc_scrollbars.pas
unit proc_scrollbars; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Controls, Graphics, StdCtrls, ComCtrls, Forms, LMessages, LCLType, ATSynEdit_ScrollBar, ATListbox; type { TTreeViewMy } TTreeViewMy = class(TTreeView) private FScroll: TATScroll; FThemed: boolean; procedure Scroll...
unit proc_scrollbars; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Controls, Graphics, StdCtrls, ComCtrls, Forms, LMessages, LCLType, ATSynEdit_ScrollBar, ATListbox; type { TTreeViewMy } TTreeViewMy = class(TTreeView) private FScroll: TATScroll; FThemed: boolean; procedure Scroll...
mpl-2.0
Pascal
bae66c91b2f8c5e9def707bbe20a29997b781757
Update Algoritmo_01.pas
carlosvilela/Algoritmos,carlosvilela/Algoritmos,carlosvilela/Algoritmos
Algoritmos-em-Pascal/Algoritmo_01.pas
Algoritmos-em-Pascal/Algoritmo_01.pas
{01 - Faça um algoritmo que leia números inteiros positivos e imprima no final qual o maior e menor número lido. O algoritmo deve parar a leitura quando for lido um número igual a zero. program Maior_Menor_inteiro; uses crt; {usar o delay, clrscr, } var N : integer; var Max,Min : integer; var i : integer; begin wr...
program Maior_Menor_inteiro; uses crt; {usar o delay, clrscr, } var N : integer; var Max,Min : integer; var i : integer; begin write ('Insira um numero inteiro: '); read (N); Max := N; Min := N; clrscr; i:=1; while (i=1) do begin write ('Insira um numero inteiro: '); read (N); if (N = 0) then begin i:=0; end; ...
mit
Pascal
e2798ef74bb23981ba05b84d8d490a311c7da0d6
Add {$IFDEF TESTINSIGHT} (#69)
andrea-magni/MARS,andrea-magni/MARS
tests/MARSTestsProject.dpr
tests/MARSTestsProject.dpr
program MARSTestsProject; {.$DEFINE TESTINSIGHT} {$IFNDEF TESTINSIGHT} {$APPTYPE CONSOLE} {$ENDIF}{$STRONGLINKTYPES ON} {$R *.res} uses SysUtils, {$IFDEF TESTINSIGHT} TestInsight.DUnitX, {$ENDIF} DUnitX.TestFramework, DUnitX.Loggers.Console, Tests.Core in 'Tests.Core.pas', Tests.MessageBodyWriters in 'T...
program MARSTestsProject; {.$DEFINE TESTINSIGHT} {$IFNDEF TESTINSIGHT} {$APPTYPE CONSOLE} {$ENDIF}{$STRONGLINKTYPES ON} {$R *.res} uses SysUtils, TestInsight.DUnitX, DUnitX.TestFramework, DUnitX.Loggers.Console, Tests.Core in 'Tests.Core.pas', Tests.MessageBodyWriters in 'Tests.MessageBodyWriters.pas', ...
mpl-2.0
Pascal
e5b6050b969e4a8100af777af0e10fe5f8e5e0f6
Adjust the PNG decoder order.
ying32/govcl
UILibSources/libvcl/uImages.pas
UILibSources/libvcl/uImages.pas
// Ϊ˼LazarusDelphiԴͼƬȡĴ // DelphiTPngImageûSizeʶģLazarusһ // ֻܽ޸ģͳһͼƬSizeʶDelphiȡʱжϺص unit uImages; interface uses System.Classes, System.SysUtils, Vcl.Graphics, Vcl.Imaging.pngimage, Vcl.Imaging.GIFImg, Vcl.Imaging.GIFConsts; type TPngImage = class(Vcl.Imaging.pngimage.TPngImage) protected pro...
// Ϊ˼LazarusDelphiԴͼƬȡĴ // DelphiTPngImageûSizeʶģLazarusһ // ֻܽ޸ģͳһͼƬSizeʶDelphiȡʱжϺص unit uImages; interface uses System.Classes, System.SysUtils, Vcl.Graphics, Vcl.Imaging.pngimage, Vcl.Imaging.GIFImg, Vcl.Imaging.GIFConsts; type TPngImage = class(Vcl.Imaging.pngimage.TPngImage) protected pro...
apache-2.0
Pascal
ad8d4d7706da7320ae83992b779cd73a3b9f84b5
Use keepalive to improve web server performance
tavultesoft/keymanweb,tavultesoft/keymanweb
windows/src/developer/TIKE/web/UmodWebHttpServer.dfm
windows/src/developer/TIKE/web/UmodWebHttpServer.dfm
object modWebHttpServer: TmodWebHttpServer OldCreateOrder = False OnCreate = DataModuleCreate OnDestroy = DataModuleDestroy Height = 150 Width = 215 object http: TIdHTTPServer Bindings = <> DefaultPort = 8008 KeepAlive = True OnCommandGet = httpCommandGet Left = 88 Top = 56 end end...
object modWebHttpServer: TmodWebHttpServer OldCreateOrder = False OnCreate = DataModuleCreate OnDestroy = DataModuleDestroy Height = 150 Width = 215 object http: TIdHTTPServer Bindings = <> DefaultPort = 8008 OnCommandGet = httpCommandGet Left = 88 Top = 56 end end
apache-2.0
Pascal
950370367e455872973fdafb9741841b2b891833
Solve Salary with Bonus in pascal
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
solutions/uri/1009/1009.pas
solutions/uri/1009/1009.pas
Uses sysutils; Var a : String; b : Double; c : Double; begin read(a); read(b); read(c); WriteLn(Format('TOTAL = R$ %.2f', [b + round((c * 0.15) * 100) / 100])); end.
mit
Pascal
52765a57edea8f2eaf68c46fe391a8014a8cb587
Add charcount
bewuethr/software-tools
charcount.pas
charcount.pas
{ complete charcount } program charcountprog (input, output); const ENDFILE = -1; NEWLINE = 10; { ASCII value } type character = -1..127; { ASCII, plus ENDFILE } { getc -- get one character from standard input } function getc (var c : character) : character; var ch : char; begin if (eof) then ...
mit
Pascal
893d1add36ebad93eefd506799d9b0a1b853e08b
Create HelloWorld.pas
vansjyo/Hacktoberfest-2k17,WebClub-NITK/Hacktoberfest-2k17,WebClub-NITK/Hacktoberfest-2k17,vansjyo/Hacktoberfest-2k17,vansjyo/Hacktoberfest-2k17,vansjyo/Hacktoberfest-2k17,WebClub-NITK/Hacktoberfest-2k17,vansjyo/Hacktoberfest-2k17,vansjyo/Hacktoberfest-2k17,WebClub-NITK/Hacktoberfest-2k17,WebClub-NITK/Hacktoberfest-2k1...
HelloWorld.pas
HelloWorld.pas
Program HelloWorld; Begin Writeln('Hello World!'); ReadKey; End.
mit
Pascal
7770990ec1fb628effeeb31a35001be171ce528d
Create 1.3.17.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.3.17.pas
1.3.17.pas
var a,b,c,r:extended; begin readln(a,b,c); if (a+b>c)and(b+c>a)and(a+c>b) then begin r:=(a+b+c)/2; writeln(sqrt(r*(r-a)*(r-b)*(r-c)):0:4) end else writeln('Data Error'); end.
mit
Pascal
3830241d93db5a42dc1d981c47b5188984eaed49
Create 1000.pas
ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes
vijos/1000.pas
vijos/1000.pas
var a, b:longint; begin readln(a,b); writeln(a+b); end.
agpl-3.0
Pascal
aab59b4573756bb017596d9b4c3594f7f167e74b
Add expand
bewuethr/software-tools
chapter2/expand.pas
chapter2/expand.pas
{ complete expand } program expand (input, output); const ENDFILE = -1; NEWLINE = 10; { ASCII value } TILDE = 126; type character = -1..127; { ASCII, plus ENDFILE } { getc -- get one character from standard input } function getc (var c : character) : character; var ch : char; begin if (eof...
mit
Pascal
b53c10290e76c630c23d15e0d6335f933561e9c3
Create 2.1.02.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
2.1.02.pas
2.1.02.pas
var n,a,b,c,d:longint; begin readln(n); for d:=1 to n do for a:=2 to d-2 do for b:=a to d-1 do for c:=b to d do if (d*d*d=a*a*a+b*b*b+c*c*c) then writeln('Cube = ',d,', Triple = (',a,',',b,',',c,')'); end.
mit
Pascal
301e657785d0e7e0a0cbb63b3a1a7a2eded122b6
Create 2.6.02.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
2.6.02.pas
2.6.02.pas
var n:longint; function sort(n:longint):longint; begin if n=1 then sort:=1 else if n=2 then sort:=2 else sort:=sort(n-1)+sort(n-2); end; begin readln(n); writeln(sort(n)); end.
mit
Pascal
ad4ba8f5568f8839daba9c69f30908780ffcc6fb
Create 2.6.07.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
2.6.07.pas
2.6.07.pas
var h,i,j,ans:longint; a,f:array[0..108,0..108]of longint; begin readln(h); for i:=0 to h-1 do for j:=0 to i do read(a[i,j]); f[0,0]:=a[0,0]; for i:=1 to h-1 do for j:=0 to i do if f[i-1,j-1]>f[i-1,j] then f[i,j]:=a[i,j]+f[i-1,j-1] else f[i,j]:=a[i,j]+f[i-1,j]; ans:=0; for i:=0 to h-1 do if ans<f[h-1,i] th...
mit
Pascal
908e4fe0336e8beb0c54e2c99561bf64e064d976
Create new file
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
2.1.06.pas
2.1.06.pas
begin writeln('BCA'); end.
mit
Pascal
f7713ed53e41b1f4b4434b81be5213cb21b9d538
update to v1.7.0
rpottsoh/exercism-delphi,rpottsoh/xdelphi,rpottsoh/xpascal,exercism/xpascal,exercism/xdelphi
exercises/acronym/uAcronymTests.pas
exercises/acronym/uAcronymTests.pas
unit uAcronymTests; interface uses DUnitX.TestFramework; const CanonicalVersion = '1.7.0'; type [TestFixture('Abbreviate a phrase')] AcronymTests = class(TObject) public [Test] // [Ignore('Comment the "[Ignore]" statement to run the test')] procedure basic; [Test] [Ignore] procedur...
unit uAcronymTests; interface uses DUnitX.TestFramework; const CanonicalVersion = '1.6.0'; type [TestFixture('Abbreviate a phrase')] AcronymTests = class(TObject) public [Test] // [Ignore('Comment the "[Ignore]" statement to run the test')] procedure basic; [Test] [Ignore] procedur...
mit
Pascal
814236946af3edb32b32b707c2e67c20813643a6
Create 1.5.03.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.5.03.pas
1.5.03.pas
var n,tmp,i:longint; sum:int64; avg:extended; begin read(n); sum:=0; for i:=1 to n do begin read(tmp); sum:=sum+tmp; end; avg:=sum/n; writeln(sum,' ',avg:0:5); end.
mit
Pascal
213dbece6ccc65920b725ed30203cdf1e4949f7a
Create 2.3.01.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
2.3.01.pas
2.3.01.pas
//Qsort Solution const max=200000; type tlist=array[1..max]of longint; var a:array[1..max]of longint; n,i,k:longint; procedure qsort(var a:tlist); procedure sort(l,r:longint); var i,j,x,y:longint; begin i:=l; j:=r; x:=a[(l+r) div 2]; repeat while a[i]<x do ...
mit
Pascal
ae99d566685c6247b2f961510906386554391597
Create 5.1.08.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
5.1.08.pas
5.1.08.pas
var a1,a2,n:longint; begin readln(a1,a2,n); writeln(a1+(n-1)*(a2-a1)); end.
mit
Pascal
eefabf40deac7cde0ca00f510cad97bac3422815
Create 1.5.32.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.5.32.pas
1.5.32.pas
var n,i,j:longint; ans:extended; s:qword; begin readln(n); ans:=1; for i:=1 to n do begin s:=1; for j:=1 to i do s:=s*j; ans:=ans+1/s; end; writeln(ans:0:10); end.
mit
Pascal
eeacdf8b0b421e5f224c804ff27983d15a85daff
Create cpIntf.pas
JonWel/CoolProp,CoolProp/CoolProp,dcprojects/CoolProp,JonWel/CoolProp,DANA-Laboratory/CoolProp,CoolProp/CoolProp,dcprojects/CoolProp,DANA-Laboratory/CoolProp,DANA-Laboratory/CoolProp,DANA-Laboratory/CoolProp,JonWel/CoolProp,dcprojects/CoolProp,dcprojects/CoolProp,henningjp/CoolProp,dcprojects/CoolProp,DANA-Laboratory/C...
wrappers/Delphi/cpIntf.pas
wrappers/Delphi/cpIntf.pas
{ Delphi Interface for CoolProp Bruce Wernick, 9 December 2015 } unit cpIntf; interface const cpdll = 'CoolProp.dll'; type CoolChar = AnsiChar; PCoolChar = PAnsiChar; CoolStr = AnsiString; CoolVec = array[0..1023] of CoolChar; function get_global_param_string( param: PCoolChar; var res: CoolVec):...
mit
Pascal
9c8ae6217b1993a72111d49cfe20013cc9459857
Create 02.pas
ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes
POJ/ch0101/02.pas
POJ/ch0101/02.pas
var a, b, c:longint; begin readln(a, b, c); writeln(b); end.
agpl-3.0
Pascal
88073879159231c6e2dc779fb34bce5a612c9c48
Create 1.5.10.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.5.10.pas
1.5.10.pas
var n,m,sum,i,tmp:longint; begin readln(n,m); sum:=0; for i:=1 to n do begin read(tmp); if tmp=m then inc(sum); end; writeln(sum); end.
mit
Pascal
4b7bf2950d964429c29bf6408153d9120a856bb0
Create 1.5.13.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.5.13.pas
1.5.13.pas
var count,k:longint; a,b,c:qword; begin readln(k); a:=1; b:=1; count:=2; if k=1 then begin writeln(1); exit; end; if k=2 then begin writeln(1); exit; end; repeat c:=a; a:=b; b:=c+b; inc(count); until k=count; writeln(b); end.
mit
Pascal
c8f349baebd860dc6a42f526bc3ab74b5713e783
Create 2.1.1.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
2.1.1.pas
2.1.1.pas
var n,i,a,min,max,ra,ch:longint; begin readln(n); for i:=1 to n do begin readln(a); if a mod 2=1 then writeln(0,' ',0); if a mod 2=0 then begin ra:=a div 4; repeat ch:=(a-ra*4) div 2; dec(ra); until (a-(ra+1)*4) mod 2=0; inc(ra); min:=ra+ch; write(min); ch:=a div 2; rep...
mit
Pascal
e1539e8cf3537ffa6f6ef997d61f72b32f056c2b
Create 1.12.01.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.12.01.pas
1.12.01.pas
var str:string; f:boolean; tmp,a,b,i,ope:longint; begin readln(str); f:=true; a:=0; b:=0; for i:=1 to length(str) do if f and ('0'<=str[i])and(str[i]<='9') then begin tmp:=ord(str[i])-48; a:=a*10+tmp; end else if not f and ('0'<=str[i])and(str[i]<='9') then begin tmp:=ord(str[i])-48...
mit
Pascal
6d61b38343bf00fff6d3aab10ffa446a313962c6
add sample pascal code
AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,Avalonia...
src/AvaloniaEdit.Demo/Resources/SampleFiles/source.pas
src/AvaloniaEdit.Demo/Resources/SampleFiles/source.pas
program reverse_number; var x,y : longint; begin write('Enter a number to reverse: '); read(x); while (x<>0) do begin y:= x mod 10; write(y); x := x div 10; end; end.
mit
Pascal
f5b2f39cd74c5aed956a6543f34ea23c57089d8f
Add calculator words example app.
Leporacanthicus/lacsap,Leporacanthicus/lacsap,Leporacanthicus/lacsap
calcwords.pas
calcwords.pas
program calcwords; var longest : string; word : string; procedure readword(var w :string ); begin w := ''; while not eoln do begin w := w + input^; get(input); end; get(input); end; { readword } procedure toupper(var w : string); var i : integer; begin for i := 1 to length(...
isc
Pascal
5666a2d3632e649eb4bba6ecd1b8e09acc24219c
Add record to hold CLI arguments
Alexandr57/kam_remake,Kromster80/kam_remake,Alexandr57/kam_remake,thibmo/kam_remake,reyandme/kam_remake,Kromster80/kam_remake,reyandme/kam_remake,reyandme/kam_remake,thibmo/kam_remake,wimulkeman/kam_remake,wimulkeman/kam_remake,reyandme/kam_remake,thibmo/kam_remake,wimulkeman/kam_remake,Alexandr57/kam_remake,thibmo/kam...
Utils/ScriptValidator/ValidatorTypes.pas
Utils/ScriptValidator/ValidatorTypes.pas
unit ValidatorTypes; interface type TCLIParamRecord = record ScriptFile: string; GraphicMode, Help, AllMaps, Campaign, Version, Verbose: Boolean; end; implementation end.
agpl-3.0
Pascal
76edcb7296ef95eed62284c09f2acc1a14b24fd1
Create main.dfm
CoolProp/CoolProp,dcprojects/CoolProp,JonWel/CoolProp,DANA-Laboratory/CoolProp,henningjp/CoolProp,henningjp/CoolProp,dcprojects/CoolProp,CoolProp/CoolProp,CoolProp/CoolProp,JonWel/CoolProp,dcprojects/CoolProp,dcprojects/CoolProp,DANA-Laboratory/CoolProp,henningjp/CoolProp,JonWel/CoolProp,CoolProp/CoolProp,henningjp/Coo...
wrappers/Delphi/main.dfm
wrappers/Delphi/main.dfm
object MainForm: TMainForm Left = 0 Top = 0 Caption = 'CoolProp Demo' ClientHeight = 372 ClientWidth = 595 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style = [] OldCreateOrder = False OnActivate = FormActivate OnCrea...
mit
Pascal
841dfa1f20a3d0de60e317e5fdc6aaa67d4bcaa0
Add file to compile with fpc.
GillesArcas/Drago,GillesArcas/Drago
src/UBackGround_FPC.pas
src/UBackGround_FPC.pas
unit UBackGround_FPC; interface uses IniFiles, DefineUi; type TBackGround = class Image : string; constructor Create(aDefault : TBackground); procedure LoadIni(iniFile : TMemIniFile; const section, prefixe : string; defaultStyle : TBackStyle = bsD...
mit
Pascal
0f1d4a18458cf7fd14e6ecc27ad05c9115393e69
Create 2.6.09.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
2.6.09.pas
2.6.09.pas
var dp:array[1..100,1..100] of longint; arr:array[1..100,1..100]of longint; r,c:longint; res,i,j:longint; function getHeight(i,j:longint):longint; var max,h:longint; begin if (dp[i,j]>1) then begin getHeight:=dp[i,j]; exit; end; max:=1; if (arr[i,j]>arr[i,j-1])and(j-1>=0) then begin h:=getHeight...
mit
Pascal
c7c0f4f6438bace7b0f88ba1fbad23f63ecd9806
Add mywc
bewuethr/software-tools
mywc.pas
mywc.pas
{ complete mywc } program mywcprog (input, output); const ENDFILE = -1; NEWLINE = 10; { ASCII value } BLANK = 32; TAB = 9; type character = -1..127; { ASCII, plus ENDFILE } { getc -- get one character from standard input } function getc (var c : character) : character; var ch : char; begin...
mit
Pascal
f80853aa15f406355595263b5b6815b90c78f645
Create Project4.dpr
JonWel/CoolProp,henningjp/CoolProp,CoolProp/CoolProp,JonWel/CoolProp,CoolProp/CoolProp,dcprojects/CoolProp,dcprojects/CoolProp,DANA-Laboratory/CoolProp,DANA-Laboratory/CoolProp,henningjp/CoolProp,henningjp/CoolProp,dcprojects/CoolProp,DANA-Laboratory/CoolProp,CoolProp/CoolProp,JonWel/CoolProp,JonWel/CoolProp,DANA-Labor...
wrappers/Delphi/Project4.dpr
wrappers/Delphi/Project4.dpr
mit
Pascal
1373c653fbc04d49ae75dc1ffaecd6358f3ec917
Create 1.8.01.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.8.01.pas
1.8.01.pas
var i,j,m,n:longint; a:array[1..5,1..5]of longint; begin for i:=1 to 5 do for j:=1 to 5 do read(a[i,j]); readln(m,n); for i:=1 to 5 do begin if (i=m) then for j:=1 to 5 do write(a[n,j],' ') else if (i=n) then for j:=1 to 5 do write(a[m,j],' ') else for j:=1 to 5 do write(a[i,j],' '); writeln...
mit
Pascal
14d4ab40e4e8c9cb44e5ea9ed7842a8a960e77a3
Create Exercicio_04.pas
carlosvilela/Algoritmos,carlosvilela/Algoritmos,carlosvilela/Algoritmos
Algoritmos_II/Lista_04/Exercicio_04.pas
Algoritmos_II/Lista_04/Exercicio_04.pas
program Untitled1; var S1: string; var S2: string; var Troca: array [1..11] of char; var x: integer; var i: integer; begin S1 := 'INFORMATICA'; S2 := 'TECNOLOGIAS'; x := length(S1); for i:=1 to x do begin if (i mod 2 = 0) then begin Troca[i] := S2[i]; end else begin Troca[i] := S1[i]; end; end; writeln('S1 = '...
mit
Pascal
038936b834ebbb87dcc0a2fc7e572f9278f07970
Create 1.3.16.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.3.16.pas
1.3.16.pas
var xa,xb,ya,yb:extended; begin readln(xa,ya); readln(xb,yb); writeln(sqrt(sqr(xa-xb)+sqr(ya-yb)):0:3); end.
mit
Pascal
adad8fcb767a19860f361a894322b93c966c2737
Add ECDH utility unit
rburgstaler/StandAloneDelphiWebServer,rburgstaler/StandAloneDelphiWebServer
IdSSLOpenSSL_ECDH_Util.pas
IdSSLOpenSSL_ECDH_Util.pas
unit IdSSLOpenSSL_ECDH_Util; interface uses IdCTypes, IdSSLOpenSSLHeaders, IdSSLOpenSSL; /// <summary> /// Enable automatic curve selection for ECDH key exchange. /// </summary> /// <remarks> /// aContext must be Active before calling. /// </remarks> function IdSSLSetECDHAuto(aContext: TIdSSLContext): Bool...
mit
Pascal
b085365095d978d3a181e353c3ffe3323da1cb48
Update Example
rpottsoh/xdelphi,rpottsoh/exercism-delphi,exercism/xpascal,rpottsoh/xpascal,exercism/xdelphi
exercises/armstrong-numbers/uArmstrongNumbersExample.pas
exercises/armstrong-numbers/uArmstrongNumbersExample.pas
unit uArmstrongNumbers; interface uses System.SysUtils, System.Math; function isArmstrongNumber(aNumber: integer): Boolean; implementation function isArmstrongNumber(aNumber: integer): Boolean; var wrkNumber: integer; Calculation: integer; valLength: integer; begin wrkNumber := aNumber; Calculation := 0; ...
unit uArmstrongNumbers; interface uses System.SysUtils, System.Math; function isArmstrongNumber(aNumber: integer): Boolean; implementation function isArmstrongNumber(aNumber: integer): Boolean; var wrkString: string; Exponent: integer; wrkInteger: integer; i: integer; begin wrkString := aNumber.ToStri...
mit
Pascal
a7de49ea3985a1e820f59e19f4b43511bbb2303b
Create 1.4.11.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.4.11.pas
1.4.11.pas
var n:integer; begin readln(n); if (n=1)or(n=3)or(n=5) then writeln('NO') else writeln('YES'); end.
mit
Pascal
c7020ad6cf056942d22cdf3597da1b6dce8fdbc5
Create UPCDataTypes.pas
PascalCoin/PascalCoin,PascalCoin/PascalCoin,PascalCoin/PascalCoin,PascalCoin/PascalCoin
src/core/UPCDataTypes.pas
src/core/UPCDataTypes.pas
unit UPCDataTypes; { Copyright (c) 2016-2019 by Albert Molina Distributed under the MIT software license, see the accompanying file LICENSE or visit http://www.opensource.org/licenses/mit-license.php. This unit is a part of the PascalCoin Project, an infinitely scalable cryptocurrency. Find us here: Web: h...
mit
Pascal
6e12389b771a2d60ce04cb03450a691d4847ff47
Add overstrike
bewuethr/software-tools
chapter2/overstrike.pas
chapter2/overstrike.pas
{ complete overstrike } program overstrike (input, output); const ENDFILE = -1; NEWLINE = 10; { ASCII value } BLANK = 32; BACKSPACE = 8; PLUS = 43; type character = -1..127; { ASCII, plus ENDFILE } { getc -- get one character from standard input } function getc (var c : character) : charac...
mit
Pascal
8134bd458bfe836d6b5f22359cc997ddccefd44a
Create tetris_lib.pas
TetrisAI/tetris_pascal,TetrisAI/tetris_pascal
tetris_lib.pas
tetris_lib.pas
library tetris_lib; uses display; {$I tetris_def.inc} {$I tetris_pce.inc} {$I tetris_ai.inc} var i,j,k:longint; const guess=0; //AI主DLL入口 function AI(boardW,boardH:longint; board:pchar; curPiece:char; curX,curY,curR:longint; nextPiece:char; bestX,bestRot...
mit
Pascal
76c38096f5d2ea76c5ef7f8ffabb70076d1c0c87
Add echo
bewuethr/software-tools
chapter2/echo.pas
chapter2/echo.pas
{ complete echo } program echo (input, output); const ENDSTR = 0; MAXSTR = 1024; ENDFILE = -1; NEWLINE = 10; { ASCII value } BLANK = 32; type character = -1..127; { ASCII, plus ENDFILE } string = array [1..MAXSTR] of character; { putc -- put one character on standard output } procedure...
mit
Pascal
98a0ef89e9bf97a1818211bad95a30669136556f
Fix Crash after debug
parmaja/miniedit,parmaja/miniedit,parmaja/miniedit
source/lib/DebugClasses.pas
source/lib/DebugClasses.pas
unit DebugClasses; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Contnrs; type TCallStackItem = class(TObject) private FLine: Integer; FFileName: string; public published property FileName: string read FFileName write FFileName; property Line: integer read FLine wr...
mit
Pascal
8b34142cfbd98941318837dac4c495cecc2ca946
Create 1.5.16.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.5.16.pas
1.5.16.pas
type loc=record x,y:extended; person:longint; end; var roof:loc; time:extended; i,n:longint; begin readln(n); time:=0; for i:=1 to n do begin readln(roof.x,roof.y,roof.person); time:=time+sqrt(sqr(abs(roof.x-0))+sqr(abs(roof.y-0)))*2/50+roof.person*1.5 end; if trunc(time)=time then writeln(...
mit
Pascal
b94f4395923ad394c419ec057b6b7303ea16fae5
Create 1.5.19.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.5.19.pas
1.5.19.pas
var money,mother,budget,i:longint; begin money:=0; mother:=0; for i:=1 to 12 do begin readln(budget); inc(money,300); if money-budget>=0 then begin inc(mother,(money-budget)div 100); money:=(money-budget)mod 100; end else begin writeln('-',i); halt; end; end; writeln(money+...
mit
Pascal
95f7e0e5f87ba522f28a47250e7fd34250852de9
Create 1.5.08.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.5.08.pas
1.5.08.pas
var m,n,sum,i:longint; begin readln(m,n); sum:=0; for i:=m to n do if (i mod 17=0) then sum:=sum+i; writeln(sum); end.
mit
Pascal
7bcf92e531c727bf3dab642f076906bef7a97970
Test for floating point literals
kirbyfan64/sodium
test/source/arithm/impl/lits.pas
test/source/arithm/impl/lits.pas
var a: Integer; b: Real; begin a := 30 + -5 + +7; WriteLn(a); b := 30 + -5 - +7; b := b - (30.3 - -5.1 + +7.8); b := (-b) * 30.3e6 * -9.8e-3; WriteLn(b); end.
bsd-3-clause
Pascal
3b3eeebf55e28740c579be6a10360c6be7e336b2
Create 1.5.12.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.5.12.pas
1.5.12.pas
var n,i:longint; x:extended; begin readln(x,n); for i:=1 to n do x:=x*1.001; writeln(x:0:4); end.
mit
Pascal
e01c17af82b1fd625bfa21c25be91eabc059477d
Add detab
bewuethr/software-tools
detab.pas
detab.pas
{ complete detab } program detabprog (input, output); const ENDFILE = -1; NEWLINE = 10; { ASCII value } BLANK = 32; TAB = 9; type character = -1..127; { ASCII, plus ENDFILE } { getc -- get one character from standard input } function getc (var c : character) : character; var ch : char; beg...
mit
Pascal
21cc0d24b1fa35597389283532f04e9f14e8f4b9
select sort
LukeMcNemee/pascal
17/select.pas
17/select.pas
{################################################} {# Program select #} {# | | _ |V| _|\| _ __ _ _ #} {# |__|_||<(/_ | |(_| |(/_|||(/_(/_ #} {# 2015 #} {################################################} {# Program seř...
mit
Pascal
6d7c4e8b44447aaee077d3514d5a615fb17c8bd6
Create Algoritmo_Pascal.pas
carlosvilela/Algoritmos,carlosvilela/Algoritmos,carlosvilela/Algoritmos
Algoritmo_Pascal.pas
Algoritmo_Pascal.pas
program Fluxo_Estoque; uses crt; const produtos = 2; const max = produtos-1; var codigo, quantidade : array[0..max] of integer; var descricao : array[0..max] of string; var valor : array[0..max] of real; var buffer : string; var i,x,z,quant,cod : integer; var opt : char; procedure exibir_produtos( n:integer ); be...
mit
Pascal
ef17c9ff3ff6624fe87817304d9169f618667861
Add benchmarks
chovanecm/pascal-truffle,chovanecm/pascal-truffle
benchmarks/collatz.pas
benchmarks/collatz.pas
program collatzt; var n : integer; var counter, start_n : integer; var i,j : integer; begin start_n := 3711; for i := 30000 downto 0 do begin for j:= 100 downto 0 do begin n:= start_n; counter := 0; while n <> 1 do begin if n div 2 * 2 = n then n := n div 2 else n := n * 3 + 1; counter :...
mit
Pascal
c5e74687c57ac34baff3df895e8dbf240b8aea6b
Create 1.11.01.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.11.01.pas
1.11.01.pas
type info=record stunum:qword; score:extended; end; var data:array[1..100] of info; tmp:extended; n,k,i,j:longint; tmpnum:qword; begin readln(n,k); for i:=1 to n do readln(data[i].stunum,data[i].score); for i:=1 to n-1 do for j:=i to n do if (data[i].score<data[j].score) then begin tmp:=data[i]....
mit
Pascal
c57cc694510afff3e9c4e861956075a271965e9b
Create 10.pas
ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes,ice1000/OI-codes
POJ/ch0101/10.pas
POJ/ch0101/10.pas
begin writeln(' ********'); writeln(' ************'); writeln(' ####....#.'); writeln(' #..###.....##....'); writeln(' ###.......###### ### ### ### ###'); writeln(' ........... ...
agpl-3.0
Pascal
a565d57a6961b1b40d9ac200215652e366f9bf68
Add IG publisher support
grahamegrieve/fhirserver,grahamegrieve/fhirserver,grahamegrieve/fhirserver,grahamegrieve/fhirserver
library/tools/FHIR.Tools.IGPublisher.pas
library/tools/FHIR.Tools.IGPublisher.pas
unit FHIR.Tools.IGPublisher; interface uses Windows, SysUtils, Classes, IniFiles, Forms, Vcl.Dialogs, JclSysUtils, FHIR.Support.Base, FHIR.Support.Threads; type TProgressProc = procedure (pct : integer); TLogProcedure = procedure (msg : String); TFHIRIGPublisher = class; TPublish...
bsd-3-clause
Pascal
9fb72c8a7849078f16d3eb876bcd6b40bebcb39e
Create IndicesOfRowsWithEqualElements.pas
dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey,dvt32/cpp-journey
Pascal/Unsorted/IndicesOfRowsWithEqualElements.pas
Pascal/Unsorted/IndicesOfRowsWithEqualElements.pas
{ We have a 2D integer array with 'm' rows and 'n' columns. Print indices of rows where all elements are equal. } program IndicesOfRowsWithEqualElements; var m, n: integer; arrayOfNumbers: array[1..100, 1..100] of integer; i, j: integer; allElementsOfRowAreEqual: boolean; begin read(m); ...
mit
Pascal
e504105bc20cbdd917101e7dbcf84479f580b8d0
Create 1.5.04.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.5.04.pas
1.5.04.pas
var n,max,i,tmp:longint; begin read(n); max:=0; for i:=1 to n do begin read(tmp); if tmp>max then max:=tmp; end; writeln(max); end.
mit
Pascal
faf30677b59e536fe0f971ea66918994fdbd5064
Create 1.5.11.pas
magetron/NOIP-openjudge,magetron/NOIP-openjudge,magetron/NOIP-openjudge
1.5.11.pas
1.5.11.pas
var a,n,s,i:longint; begin readln(a,n); s:=1; for i:=1 to n do s:=s*a; writeln(s); end.
mit
Pascal