text stringlengths 14 6.51M |
|---|
unit MulticastEvents;
interface
type
{ A simple event handler that doesn't take any parameters other than a
sender. }
TEventHandler = procedure(const ASender: TObject) of object;
type
{ A multicast event that can fire events to multiple listeners.
The events do not take any parameters, other than a sen... |
{*******************************************************}
{ }
{ Copyright (c) 2001-2017 by Alex A. Lagodny }
{ }
{*******************************************************}
unit uOPCFrame;
interface
u... |
(*
@abstract(Contient des classes de bases conçues à des fins génériques pour gérer
l'affichage de primitives et de textes sur un "Canvas".)
Il vous faudras hériter ces classes afin de prendre en charge différents type de surface (Bitmap, OpenGL, Vulkan, DirectX etc...) @br
Pour la gestion des textes, vous dev... |
program INF_01_LW_02_MATRIX;
type
TMatrix = array[1..10, 1..10] of Integer;
procedure ShowMatrix(A: TMatrix; M, N: Integer);
var
I, J: Integer;
begin
for I := 1 to M do
begin
for J := 1 to N - 1 do
Write(A[I, J], ' ');
WriteLn(A[I, N]);
end;
end;
function FibonacciMatrix(N: Integer): TMatrix;... |
(*======================================================================*
| unitNewsStringsDisplayObject unit for NewsReader3 |
| |
| Work with TMessageDisplay to decode and display the text part of |
| nntp-style messag... |
{На каждый чекбокс или другой элемент опций вешается процедура,
которая записывает его состояние во временный конфиг
Запись имён опций ведется по хинту с валидным для ini именем опции}
unit uOptions;
interface
uses
Windows, SysUtils, Classes, FileCtrl, Controls, Forms, StdCtrls, Vcl.ComCtrls,
uSettings, uLog, System... |
// Copyright Cheat Engine. All Rights Reserved.
unit Parsers;
{General parsers}
{$mode delphi}
interface
uses
Classes, SysUtils, strutils, commonTypeDefs, math;
procedure ConvertStringToBytes(scanvalue:string; hex:boolean;var bytes: TBytes; canHandleNibbleWildcards: boolean=false);
function BinToI... |
//
// https://github.com/showcode
//
unit MainFrm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Spin, StdCtrls;
type
TBytes = array of Byte;
TMainForm = class(TForm)
edtKey: TEdit;
lblSecureKey: TLabel;
btnNext: TButton;
... |
{*******************************************************************************
作者: dmzn@163.com 2011-04-27
描述: 多道计数器界面控制组件
*******************************************************************************}
unit UMultiJSCtrl;
interface
uses
Windows, Classes, Controls, Forms, Graphics, SysUtils, ULibFun,... |
unit IWBSDialogs;
interface
uses System.Classes, System.SysUtils, Vcl.Controls,
IWControl, IWRenderContext, IWBaseRenderContext, IW.Common.RenderStream, IWHTMLTag, IWForm,
IWBSRegion, IWBSInput, IWBSButton, IWBSControls;
type
TIWBSDialog = class(TIWBSModal)
private
FContent: TIWBSRegion;
FTitle... |
unit uFactoryClass;
interface
uses
System.Classes, System.SysUtils, System.Rtti, Generics.collections;
type
/// <stereotype>factory</stereotype>
/// <summary> Interface para Singleton </summary>
iFactoryClass<T> = interface(TFunc<T>)
['{27D5D71E-4AFC-4E3E-BCB2-FEEF207B6419}']
function Defa... |
{*******************************************************************************
Title: T2Ti ERP
Description: Controller para geração do arquivo Sped Fiscal
The MIT License
Copyright: Copyright (C) 2014 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associa... |
namespace Sugar.Test;
interface
uses
Sugar,
Sugar.TestFramework;
type
HTTPTest = public class (Testcase)
public
method DownloadAsString;
method DownloadAsBinary;
method DownloadAsXml;
end;
implementation
method HTTPTest.DownloadAsString;
begin
var Token: IAsyncToken := ... |
unit Uscotlandyard;
{
Unit zur Erstellung und verwaltung des Programmfensters
}
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Menus, Vcl.ExtCtrls, Vcl.StdCtrls, startmen, TypeUnit, AI_Unit, DATA_Unit;
... |
unit Services.ComplexTypes;
interface
type
TTipoMensagem = (tipoMensagemInformacao, tipoMensagemAlerta, tipoMensagemErro, tipoMensagemSucesso, tipoMensagemPergunta);
TTipoOperacaoController = (operControllerBrowser, operControllerInsert, operControllerUpdate, operControllerDelete);
TTipoLancamento = (tip... |
{addition : (x1 y1) + (x2 y2) = (x1+x2 y1+y2)
soustraction : (x1 y1) - (x2 y2) = (x1-x2 y1-y2)
produit par un scalaire : (x1 y1)a = (ax1 ay1)
produit scalaire : (x1 y1) . (x2 y2) = x1*x2 + y1*y2}
(*
addition : (x1 y1) + (x2 y2) = (x1+x2 y1+y2)
soustraction : (x1 y1) - (x2 y2) = (x1-x2 y1-y2)
... |
unit UfrmPPTView;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.StdCtrls, ActiveX, PowerPoint_TLB, Office_TLB,
GR32_Image, GR32, pngImage, jpeg, USourceInfo, USourcePPT, Vcl.AppEvnts;
type
... |
unit PedidoVendaU;
interface
uses
Winapi.Windows, Winapi.Messages, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, FireDAC.DApt.Intf, FireDAC.Stan... |
unit AABBComparatorTest;
{$mode objfpc}{$H+}
{$CODEALIGN LOCALMIN=16}
interface
uses
Classes, SysUtils, fpcunit, testregistry, BaseTestCase,
native, BZVectorMath, BZVectorMathEx;
type
{ TAABBComparatorTest }
TAABBComparatorTest = class(TBBoxBaseTestCase)
published
procedure TestCompare;
pro... |
(*
* Test: Image input and output.
*
* This program is a test for the correctness of
* image input and output. An image (full colour)
* will be read in and then stored again. If the
* images are exactly equal then the test is a
* success, otherwise the test fails.
*)
program testImageInputOutput;
(*-----... |
unit MainFormU;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, REdis.Client, REdis.Commons, REdis.NetLib.Indy,
Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls, Vcl.Buttons, System.Actions,
Vcl.ActnList, Vcl.ToolWin... |
(************************************* Ext2D Engine *************************************)
(* Модуль : E2DEffects.pas *)
(* Автор : Есин Владимир *)
(* Создан : 23.10.06 ... |
unit uSmileyConsts;
interface
resourcestring
strHappy = 'Happy';
strSad = 'Sad';
strShades = 'Shades';
strTongue = 'Tongue';
strIndifferent = 'Indifferent';
strOoh = 'Ooh';
strFrazzled = 'Frazzled';
strOutCold = 'OutCold';
strWink = 'Wink';
strHappyDe... |
unit UWinampDefs;
interface
uses
windows;
const
WINAMP_SHIFT = 100;
WINAMP_CTRL = 110;
//--------------------------------------------------------------------
const
// Close Winamp 40001
WINAMP_OPTIONS_PREFS = 40012; // Toggle preferences screen
WINAMP_OPTIONS_AOT = 40019; //... |
unit HS4D.Interfaces;
interface
uses
System.Classes,
{$IFDEF HAS_FMX}
FMX.Objects;
{$ELSE}
Vcl.ExtCtrls;
{$ENDIF}
type
iHS4DSend = interface;
iHS4DGet = interface;
iHS4DCredential = interface;
iHS4D = interface
['{9AF66D6B-D72D-4918-88F7-C65043C46079}']
function SendFi... |
(******************************************************************************
* *
* Usermanager *
* Exceptions -- Exception classes *
... |
unit uFrmCCliente;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, uDM, Data.DB,
uFrmBuscaClientes,
Data.FMTBcd, Data.SqlExpr, Vcl.Mask, Vcl.DBCtrls, Maskutils, uValidaCPF,
Vcl.... |
//
// Name: ThreadedEventPanel.pas
// Desc: ThreadedEventPanel Component
// This component is used as a base class and could be used on its
// own. It has an imbeded thread which is used to call an event if it
// set by the user. One use is to fill in the caption of ... |
unit SQLProducer;
interface
uses
Windows, Classes, SysUtils, StrUtils,
DatabaseDefinition;
type
TSQLProducer = class (TObject)
protected
function GetFieldValue(Field: TField; Buffer: Pointer): String;
public
function Insert(Table: TTable; Buffer: Pointer; ZeroId: Boolean = False): Str... |
// Sistema : NetCartão
// Administração de cartão de crédito
// PROGRAMADOR : Roney Erdemann
// Date : 29/05/2007
// Ultima alteração : 11/06/2007
unit uFrmPrincipal;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, ComCtrls, ToolWin,typinfo, I... |
unit ExtUxLayout;
// Generated by ExtToPascal v.0.9.8, at 7/1/2010 09:28:02
// from "C:\Trabalho\ext-3.0.0\docs\output" detected as ExtJS v.3
interface
uses
StrUtils, ExtPascal, ExtPascalUtils, ExtLayout, Ext;
type
TExtUxLayoutRowLayout = class;
TExtUxLayoutCenterLayout = class;
TExtUxLayoutRowLayout = cla... |
//------------------------------------------------------------------------------
//
// Voxelizer
// Copyright (C) 2021 by Jim Valavanis
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation;... |
unit GameText;
{******************************************************************************}
{ }
{ Siege Of Avalon : Open Source Edition }
{ ------------------------------------- ... |
unit InfraVCLRenderer;
interface
uses
Types,
Windows,
Graphics,
InfraRenderer,
InfraMVPVCLIntf;
type
TVCLCustomListBoxItemRenderer = class(TRenderer,
IVCLCustomListBoxItemRenderer)
private
function DoDataFind(const FindString: string): Integer;
procedure DoGetData(Index: Int... |
unit VCLMainForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids, Vcl.StdCtrls,
AppController, Orders, Vcl.ComCtrls;
type
TVCLMainFrm = class(TForm, IView)
ButtonAdd: TButton;
... |
unit UCRUD;
interface
uses
System.Classes, System.StrUtils, System.SysUtils;
type
TCRUD = class
private
function formatearSaltoLinea(strLinea : String) : String;
function EnviarOperacion(AUUID, ATipoTransaccion : String) : Boolean;
public
FNombreBaseDatos : String;
FNombreTabla : Stri... |
{
ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi
Copyright (c) 2016, Isaque Pinheiro
All rights reserved.
GNU Lesser General Public License
Versão 3, 29 de junho de 2007
Copyright (C) 2007 Fr... |
unit Unit6;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Unit5, Vcl.StdCtrls, Vcl.ExtCtrls, System.StrUtils;
type
Tcarro = class(TVeiculo)
public
procedure Andar(); Ove... |
unit controller.status.dto;
{$mode delphi}
interface
uses
Classes,
SysUtils,
controller.auth.dto,
controller.status;
type
{ TStatusRequest }
(*
simple request with the image token, doesn't require authentication
*)
TStatusRequest = TLookupRequest;
{ TStatusResponse }
TStatusResponse = rec... |
{
Export and import weapons stats from *.csv files.
Right click and apply script to selected weapons, weapon group,
plugin or several selected plugins.
}
unit UserScript;
var
slWeap, slValues, slLookup: TStringList;
DoExport: boolean;
function Initialize: integer;
var
i: integer;
dlgOpen: TOpenDialog;... |
unit CidLib;
interface
uses
Windows, SysUtils, Registry, inifiles, Variants, comobj, ADODB, StdCtrls,
Forms, Classes, IdTCPClient, IdSocketHandle, IdTCPServer, xe_func;
{--------------------------------------------------------------------------------
CID DATA HEADER
----------------------------... |
unit TritonUnit;
// ------------------------------------
// Tecella Triton 16 channel patch clamp
// ------------------------------------
// (c) J. Dempster, University of Strathclyde, 2008-21
// 9.07.08
// 04.09.08 Revised to work with TecellaAmp.dll library
// 22.07.09 Updated to work with V0.111 library
// ... |
unit drawSpace;
{$IFDEF FPC}
{$mode delphi}
{$ENDIF}
{$DEFINE CP_USE_DOUBLES}
interface
uses
Chipmunk, math;
type
PdrawSpaceOptions = ^drawSpaceOptions;
drawSpaceOptions = record
drawHash: Boolean;
drawBBs: Boolean;
drawShapes: Boolean;
collisionPointSize: Single;
bodyPointSize: Single;
... |
unit ucFORMATAR;
interface
uses
Classes, SysUtils, StrUtils, TypInfo;
type
TpFormatar =
(tfCEP, tfCNPJ, tfCPF, tfDATA, tfFONE, tfINSC, tfNUMERO, tfPLACA);
TcFormatar = class
public
class function tip(pTip : String) : TpFormatar;
class function str(pTip : TpFormatar) : String;
class function ... |
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, Math;
type
TStudent = record
initials: string[50];
city: string[20];
rating: extended;
end;
RefListElem = ^ListElem;
ListEle... |
unit uFuncao;
interface
uses
Classes, Controls, Windows, Forms, SysUtils, StdCtrls, FireDAC.Comp.Client, uData, DB, IdDayTime,
DateUtils, FireDAC.Stan.Param, uPesquisaView;
type
TMensagens = class
public
procedure Aviso(Menssagem: string; Sair: Boolean = False; Focar: TWinControl = nil);
function Per... |
unit RestDWServerFormU;
Interface
Uses
Winapi.Windows,
Winapi.Messages,
System.SysUtils,
System.Variants,
System.Classes,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Winsock,
Winapi.Iphlpapi,
Winapi.IpTypes,
USock,
System.IniFiles,
Vcl.AppEvnts,
Vcl.StdCtrls,
Web.HTTPApp,
V... |
unit unLineScan;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Math,System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms,Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, unGlobUnit;
type TMesLineUsed = Record {stores Measure Line Parameters (Xbeg,Ybeg,Xend,Yend)}
... |
{$include kode.inc}
unit midi_fibonacci;
{
changes notes based on the fibonacci series
version history:
0: initial release (preview)
1: changed from note-creation to note-modification
}
//----------------------------------------------------------------------
interface
//--------------------------------------... |
unit xxmDictionary;
interface
type
TxxmDictionary=class(TObject)
private
FData:array of record
Name,Value:string;
end;
function GetItem(Name: string): string;
procedure SetItem(Name: string; const Value: string);
public
property Item[Name:string]:string read GetItem write ... |
unit PxGUI;
{$I PxDefines.inc}
interface
uses
// RTL units
Windows, Messages, Classes, SysUtils,
// PxLib units
PxBase, PxUtils, PxResources;
// ----------------------------------------------------------------------------
// Classes
// ----------------------------------------------------------... |
unit Model.Board;
interface
uses
System.SysUtils, System.Generics.Collections;
type
TMessageType = (mtSwap, mtDone);
TBoard = class;
TSortMessage = record
MessageType: TMessageType;
Board: TBoard;
SwapIndex1: integer;
SwapIndex2: integer;
constructor CreateMessageSwap (ABoard: TBoard; A... |
{ *******************************************************************************
Title: T2TiPDV
Description: Encerra um movimento aberto.
The MIT License
Copyright: Copyright (C) 2014 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
... |
unit TBGConnection.Model.Conexao.Parametros;
interface
uses
TBGConnection.Model.Interfaces;
Type
TModelConexaoParametros = class(TInterfacedObject, iConexaoParametros)
private
FConexao: iConexao;
FDatabase : String;
FUserName : String;
FPassword : String;
FDriverID : String;
FServer : S... |
unit AreaPane;
/////////////////////////////////////////////////////////////////////
//
// Hi-Files Version 2
// Copyright (c) 1997-2004 Dmitry Liman [2:461/79]
//
// http://hi-files.narod.ru
//
/////////////////////////////////////////////////////////////////////
interface
uses Objects, Dialogs, MyView... |
unit UXlsRowColEntries;
{$IFDEF LINUX}{$INCLUDE ../FLXCOMPILER.INC}{$ELSE}{$INCLUDE ..\FLXCOMPILER.INC}{$ENDIF}
{$IFDEF LINUX}{$INCLUDE ../FLXCONFIG.INC}{$ELSE}{$INCLUDE ..\FLXCONFIG.INC}{$ENDIF}
interface
uses Classes, SysUtils, UXlsBaseRecords, UXlsBaseRecordLists, UXlsOtherRecords,
XlsMessages, UXlsRange... |
{ :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: QuickReport 3.5 for Delphi and C++Builder ::
:: ::
:: QRLablWz - MAILING LABEL SETUP DIALOG ::
:: ::
... |
unit InfraGUIBuilderForm;
interface
uses
Classes, SysUtils, Math, Forms, Controls, Graphics, LayoutManager, StdCtrls,
ExtCtrls, Windows, Buttons, Messages, Dialogs, List_GUIControl, typinfo,
InfraGUIBuilderIntf, InfraValueTypeIntf, GUIAnnotationIntf,
GUIAnnotationLoaderIntf;
const
sr4to3Coeffici... |
(*
@abstract(Contient les classes pour l'application de filtres d'adoucissement )
-------------------------------------------------------------------------------------------------------------
@created(2017-08-22)
@author(J.Delauney (BeanzMaster))
Historique : @br
@unorderedList(
@item(22/08/2017 : Cre... |
unit BCEditor.Editor.CompletionProposal.Columns;
interface
uses
System.Classes, Vcl.Graphics, BCEditor.Editor.CompletionProposal.Columns.Items,
BCEditor.Editor.CompletionProposal.Columns.Title;
type
TBCEditorCompletionProposalColumn = class(TCollectionItem)
strict private
FAutoWidth: Boolean;
... |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ }
{ RdeEM Long }
{ 大数单... |
unit ActiveDirectory.Client.Winapi;
interface
uses
ActiveDirectory.Client.Intf,
ActiveDirectory.Types;
type
{ Class implements Active Directory Client by WinApi }
TActiveDirectoryClientWinapi = class(TInterfacedObject, IActiveDirectoryClient)
private
function GetActiveLDAPDomainName: string... |
unit pMapInfo;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, Geom1, PM_Messages;
type
TMapInfoForm = class(TForm)
Image1: TImage;
procedure FormResize(Sender: TObject);
procedure Image1MouseDown(Sender: TObject; Button: TMouseButton;
Shift:... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [LOGSS]
The MIT License ... |
unit UFrmConsultor;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UFrmCRUD, Menus, Buttons, StdCtrls, PwCtrls, ExtCtrls
, UUtilitarios
, UConsultor
, URegraCRUDConsultor, pngimage
;
type
TFrmConsultor = class(TFrmCRUD)
gbInformacoes: TGroupBox;
... |
// ====================================================================
// Mystic BBS Software Copyright 1997-2013 By James Coyle
// ====================================================================
//
// This file is part of Mystic BBS.
//
// Mystic BBS is free software: you can redistribute it and/or... |
unit REPDefs;
{$writeableconst on}
interface
{$i ..\..\..\..\DebugConsts.inc}
uses
REPDefs_Config, Console, ShareTools, TeraWMSTools,
HTTPApp, URLMon, Classes, SysUtils, DelphiDabblerSnippets;
function AppGUID : TGUID;
procedure RegisterCallOnChangeEvent(Request: TWebRequest; Response: TWebResponse; var Handled: Bo... |
unit UxlFunctions;
interface
uses Windows, CommCtrl, UxlStrUtils, ShellAPI, UxlWinControl, UxlList, UxlClasses, SysUtils;
function AllocMem(Size: Cardinal): Pointer;
function ExecNewProcess(const s_cmdline: WideString): boolean;
procedure ExecuteLink (const s_link: widestring; const s_dir: widestring = ''; c... |
unit ufrmDialogBeginningBalancePOS;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ufrmMasterDialog, ExtCtrls, StdCtrls, System.Actions, Vcl.ActnList,
ufraFooterDialog3Button, cxGraphics, cxControls, cxLookAndFeels, Data.DB,
cxLookAndFeelPainters, cxContaine... |
{----------------------------------------------------------------------
DEVIUM Content Management System
Copyright (C) 2004 by DEIV Development Team.
http://www.deiv.com/
$Header: /devium/Devium\040CMS\0402/Source/Products/progDataModule.pas,v 1.7 2004/05/06 15:24:06 paladin Exp $
---------------... |
unit WMSReaderMainFrm;
interface
uses
TeraWMSTools, capabilities_1_1_1, ShareTools, WMSReaderConfig,
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls, ExtCtrls, Buttons, Grids, ValEdit, Menus, XMLIntf,
ToolWin;
type
TWMSReaderMainForm = class(TForm)
... |
(*******************************************************************************
Demo expert/wizard for RAD studio
Main unit
Demonstrates principles of using the BaseWizard class.
Adds an item to submenu Help, displays a dialog on click, saves the value in
re... |
unit tap_tzx;
{
- Version 3.4.1
- Corregido CSW v1.0
- Version 3.4
- Mejorado el soporte de 'Genealized Data' (bloque $19) pulsos de 256 simbolos
- Limpiza del bloque $19
}
interface
uses nz80,z80_sp,{$IFDEF WINDOWS}windows,{$ENDIF}grids,dialogs,main_engine,spectrum_misc,
sysutils,lenguaje,misc... |
program Munchausen;
uses math;
procedure CalcCache(var cache: array of LongInt);
var
i: Integer;
begin
cache[0] := 0;
for i := 1 to 9 do
cache[i] := i**i;
end;
function IsMunchausen(constref cache: array of LongInt; constref num: LongInt): Boolean;
var
n, total, digit: LongInt;
begin
n := num;
total :... |
unit UntMain;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.Controls.Presentation, FMX.Edit, FMX.Effects, FMX.Filter.Effects,
FMX.Objects, FMX.TabControl, FMX.Layouts, FMX.StdCtrls,
System.Re... |
unit cuda;
(* DRIVER API CUDA *)
(* created 2012-04-01
author: Mariusz max@olo.com.pl
*)
interface
uses Windows, SysUtils;
var
CU_LAUNCH_PARAM_END : pointer;
CU_LAUNCH_PARAM_BUFFER_POINTER :pointer;
CU_LAUNCH_PARAM_BUFFER_SIZE :pointer;
type
CUresult = (
(*
* The API call ret... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO relacionado à tabela [PATRIM_APOLICE_SEGURO]
The MIT Licen... |
Unit MemorySupport;
{
Copyright (c) 2001-2013, Kestral Computing Pty Ltd (http://www.kestral.com.au)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the a... |
{
ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi
Copyright (c) 2016, Isaque Pinheiro
All rights reserved.
GNU Lesser General Public License
Versão 3, 29 de junho de 2007
Copyright (C) 2007 Free S... |
unit GameData;
interface
type
// массив для хранения таблиц гамма-коррекции (gamma ramp)
TRampArray = array[0..2] of array[byte] of word;
//Игровая информация
TGameData = class
private
origramparray: TRampArray;//текущие значения gamma ramp
Br,Ct,Gm:byte;
dpi, sr: single;
function UpdateGam... |
unit frm_TableBorderBackColor;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, HCView, HCTableItem, Vcl.StdCtrls,
Vcl.ExtCtrls;
type
TfrmBorderBackColor = class(TForm)
lbl8: TLabel;
cbbRang: TComboBo... |
unit sCalculator;
{$I sDefs.inc}
interface
uses Windows, SysUtils, sCalcUnit,
Messages, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Menus,
ExtCtrls, Buttons, Clipbrd;
{$IFNDEF NOTFORHELP}
const
ButtonChars = '0123456789_./*-+Q%R='#8'C';
{$ENDIF} // NOTFORHELP
type
TacCalcTitleButton = (cbClose, c... |
unit MainModule;
interface
uses
SysUtils, Classes, HTTPApp, jpeg, ShareTools, Graphics;
type
TWebModule1 = class(TWebModule)
procedure WebModule1WebActionItem1Action(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
private
{ Private declarations }
public
... |
unit Model;
interface
uses
InfraValueTypeIntf, InfraValueType, InfraCommonIntf, InfraCommon, ModelIntf,
DateUtils;
type
TUser = class(TInfraObject, IUser)
private
FLogin: IInfraString;
FPassword: IInfraString;
function GetLogin: IInfraString;
function GetPassword: IInfraString... |
unit uOPCInterval;
interface
uses
System.Classes, System.SysUtils,
System.IniFiles;
type
TOPCIntervalKind = (ikInterval, ikShift);
TOPCIntervalTimeShiftUnit = (
tsuHour = 0,
tsuDay = 1
);
TShiftKind = (
skNone = 0,
skToday = 1,
skYesterday = 2,
skWeek = 3,
skLastWeek = 4,
... |
{*******************************************************************************
Title: T2Ti ERP 3.0
Description: Model relacionado à tabela [TRIBUT_COFINS]
The MIT License ... |
program hello20_for;
var
i: integer;
begin
for i := 1 to 20 do
writeln('Hello, world!')
end.
|
unit TextEditor.CompletionProposal.Snippets;
interface
uses
System.Classes, System.SysUtils, TextEditor.Types;
type
TTextEditorCompletionProposalSnippetItemPosition = class(TPersistent)
strict private
FActive: Boolean;
FColumn: Integer;
FRow: Integer;
public
constructor Create;
procedure... |
unit TextEditor.Highlighter.Attributes;
interface
uses
Winapi.Windows, System.Classes, System.UITypes, TextEditor.Consts;
type
TTextEditorHighlighterAttribute = class(TPersistent)
strict private
FBackground: TColor;
FElement: string;
FEscapeChar: Char;
FFontStyles: TFontStyles;
FForeground... |
{$include kode.inc}
unit kode_edges;
//----------------------------------------------------------------------
interface
//----------------------------------------------------------------------
uses
kode_rect;
//----------
type
KEdges = object
private
FLeft : LongInt;
FTop : LongInt;
FRight ... |
unit unitDefRegistry;
interface
uses Windows, Classes, SysUtils, Registry;
type
EDefRegistry = class (Exception)
end;
TDefRegistry = class (TRegistry)
public
function GetValue (const name, default : string) : string; overload;
function GetValue (const name : string; default : integer) : Integer; ... |
unit LuaRemoteExecutor;
{
Remote Executor is a thread that runs inside the target process. It waits for a "HasFunctionAndParametersReadyForExecution" event, and executes it according to ExecuteMethod parameters
Each executor has it's own parameter store in shared memory accessible by both CE and the target, and only e... |
(******************************************************************************
* PasVulkan *
******************************************************************************
* Version see PasVulkan.Framework.pas ... |
unit uPapyrus;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uESSFile, ExtCtrls, StdCtrls, ComCtrls, uHelper, GlassButton,
VistaProgressBar, CommCtrl, RichEdit;
const
WM_READY = WM_USER + 1;
type
TLog = procedure(R: TRichEdit; S: string; C:... |
unit PCOUnit;
// -------------------------------
// PCO Camera Interface library
// -------------------------------
// 24.07.18
// 24.08.18 Tested and working with PCO Edge 5.5 USB.
// 17.02.19 Updated to work with PCO Edge 5.5 Camera Link
// 18.02.19 Tested and working with Edge 5.5 Cameralink
// Note EDGE. 5... |
PROGRAM WithoutLast(INPUT, OUTPUT);
VAR
Ch1, Ch2: CHAR;
BEGIN {WithoutLast}
ASSIGN(INPUT, 'INPUT.TXT');
RESET(INPUT);
WHILE (NOT(EOF)) AND (NOT(EOLN))
DO
BEGIN
WHILE NOT(EOF)
DO
BEGIN
READ(Ch2);
IF EOLN
THEN
READLN;
... |
{*******************************************************************************
Title: T2Ti ERP Fenix
Description: Model relacionado à tabela [FIN_PARCELA_PAGAR]
The MIT Lic... |
unit LinkedListItem;
interface
uses
Inf;
type
TLinkedListItem = class
private
_inf: TInf;
_next: TLinkedListItem;
_prev: TLinkedListItem;
public
constructor Create(const inf: TInf);
destructor Destroy(); override;
public
property Next: TLinkedListItem read _next wr... |
unit uFunctions;
{
Catarinka Lua Library
Copyright (c) 2013-2016 Felipe Daragon
License: 3-clause BSD
See https://github.com/felipedaragon/catarinka/ for details
}
interface
{$I Catarinka.inc}
uses
{$IFDEF DXE2_OR_UP}
Winapi.Windows, System.Classes, System.SysUtils, Winapi.ShellAPI,
System.Win.Registry,... |
unit URepositorioCidade;
interface
uses
UCidade
, UEstado
, UEntidade
, URepositorioDB
, URepositorioEstado
, SqlExpr
;
type
TRepositorioCidade = class(TRepositorioDB<TCIDADE>)
private
FRepositorioEstado: TRepositorioEstado;
public
constructor Create;
destructor Destroy; override;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.