This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit FixTaskbarIconClick; | |
(* | |
* Fix RSP-17322 | |
* | |
* USAGE: | |
* Just add FixTaskbarIconClick to the uses section. | |
* | |
* RSP-17322: | |
* Window minimize-restore via taskbar icon click is broken in | |
* all Windows flavours |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uses | |
System.Generics.Collections; | |
type | |
TOpenText = class(TText); | |
procedure TForm1.CreateRandomText; | |
var | |
x, y: Integer; | |
Text: TText; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
* 概要 Base64 にエンコード | |
* 引数 iSrc エンコードしたいストリーム | |
* iDest エンコード結果格納先 | |
* iSepCount セパレータを入れる場所(32 なら 32 個エンコードした所で入る) | |
* iSep セパレータ | |
*) | |
procedure EncodeBase64( | |
const iSrc, iDest: TStream; | |
iSepCount: Integer = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program Foo; | |
function Bar(N: Integer): Integer; | |
begin | |
if (N > 0) then | |
Bar := Bar(N - 1); | |
end; | |
begin | |
Bar(5); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
* This is sample code (My memorandum) | |
* System.Net.HttpClient.THttpClient class | |
* | |
* Programmed by HOSOKAWA Jun / twitter @pik | |
*) | |
program MVPCounter; | |
{$APPTYPE CONSOLE} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program StaticOverride; | |
type | |
TFoo = class | |
public | |
class procedure Bar; virtual; | |
end; | |
TBar = class(TFoo) | |
public |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
* 概要 Base64 エンコード | |
* 引数 iSrc エンコードしたいストリーム | |
* iDest エンコード結果格納先 | |
* iSepCount セパレータを入れる場所(32 なら 32 個エンコードした所で入る) | |
* iSep セパレータ | |
*) | |
procedure EncodeBase64( | |
const iSrc, iDest: TStream; | |
iSepCount: Integer = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{$WARNINGS OFF} | |
begin | |
(procedure(F: array of const)begin end)([ | |
// 定番のやつ | |
(function(const Count: Integer): Integer | |
begin | |
for Result := 0 to Count - 1 do | |
Writeln('Good-bye, semicolon world !') | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program プログラム; | |
uses | |
System.SysUtils | |
{$IFDEF ANDROID} | |
, Androidapi.JniBridge | |
{$ELSEIF IOS} | |
, iOSapi.Foundation | |
{$ENDIF} | |
; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function IsATOK: Boolean; | |
var | |
Name: JString; | |
begin | |
Result := False; | |
Name := | |
TJSettings_Secure.JavaClass.getString( | |
TAndroidHelper.Context.getContentResolver(), | |
TJSettings_Secure.JavaClass.DEFAULT_INPUT_METHOD); |