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
<?php | |
function var_export54($var, $indent="") { | |
switch (gettype($var)) { | |
case "string": | |
return '"' . addcslashes($var, "\\\$\"\r\n\t\v\f") . '"'; | |
case "array": | |
$indexed = array_keys($var) === range(0, count($var) - 1); | |
$r = []; | |
foreach ($var as $key => $value) { |
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 uDiskCache; | |
interface | |
uses System.SysUtils, System.Classes, System.IOUtils, System.DateUtils, | |
FMX.Types, IniFiles, System.Generics.Collections; | |
type | |
{ | |
Stores data in a specified storage folder, all stored files are |
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 hashutil; | |
interface | |
uses SysUtils, Classes, IdGlobal, IdHash, IdHashMessageDigest, IdHashSHA, IdHashCRC; | |
function MD5(S: String): String; overload; | |
function MD5(S: TStream): String; overload; | |
function MD5_Bytes(S: String): TIdBytes; | |
function MD5_File(AFilename: String): String; |
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 hashutil; | |
interface | |
uses SysUtils, Classes, IdGlobal, IdHash, IdHashMessageDigest, IdHashSHA, IdHashCRC; | |
function MD5(S: String): String; overload; | |
function MD5(S: TStream): String; overload; | |
function MD5_Bytes(S: String): TIdBytes; | |
function MD5_File(AFilename: String): String; |
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 Version; | |
interface | |
uses Types; | |
type | |
TVersion = record | |
Major, Minor, Release, Build: Word; |
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 uImageLoader; | |
interface | |
uses SysUtils, Classes, System.Generics.Collections, | |
FMX.Types, FMX.Objects, FMX.Controls, AsyncTask, AsyncTask.HTTP; | |
type | |
TLoadQueueItem = record | |
ImageURL: String; |
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
{ | |
Author: William Yang | |
Website: http://www.pockhero.com | |
Last Update: 2013/07/23 | |
A clickable label opens URL in system's Internet browser. | |
} | |
/// <summary> | |
/// A clickable label opens URL in system's Internet browser. | |
/// </summary> |
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
{ | |
FilenameHelper is a helper for TFilename, its purpose is to be able | |
to use TFilename like an object, codes readable and less writing. | |
Author: William Yang | |
Email: [email protected] | |
Features: |
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
@echo on>resources.rc | |
@echo off | |
setlocal enabledelayedexpansion | |
set "parentfolder=%__CD__%resources\" | |
for /r %parentfolder% %%g in (*.*) do ( | |
set "var=%%g" | |
set var=!var:%parentfolder%=! | |
set file=!var:\=\\! | |
set var=!var: =_! | |
set var=!var:-=_! |
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 httpUtil; | |
interface | |
uses Classes, SysUtils, IdHTTP; | |
type | |
THTTP_STATUS = Cardinal; | |
function DownloadToStream(AURL: String; AStream: TStream): THTTP_STATUS; |