Skip to content

Instantly share code, notes, and snippets.

View mojeld's full-sized avatar
👽

Haruy Mohri mojeld

👽
View GitHub Profile
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows;
namespace ConsoleApp1
{
abstract class AbstractInterceptKeyboard
{
#region Win32 Constants
function BytesToHex(const ASource: TBytes): string;
var
target: TBytes;
begin
SetLength(target, Length(ASource)*2);
BinToHex(ASource, 0, target, 0, Length(ASource));
result := TEncoding.ANSI.GetString(target);
end;
function StringToHex(const ASource: string; AEncoding: TEncoding): string;
unit Lyna.Generators;
interface
uses
SysUtils, Rtti, TypInfo;
type
TRange = record
strict private
@mojeld
mojeld / uIOSUtils.pas
Created January 9, 2016 10:06 — forked from freeonterminate/uIOSUtils.pas
iOS のステータスバーの色を変える
unit uIOSUtils;
interface
uses
System.UITypes;
procedure SetStatusBarColor(const iColor: TAlphaColor);
implementation
@freeonterminate
freeonterminate / FMX.ApplicationHelper.pas
Last active June 26, 2022 05:45
TApplication に ExeName メソッドを追加するコード
(*
* ExeName method is added to TApplication.
*
* Made by HOSOKAWA Jun.
*
* CONTACT
* Twitter @pik or freeonterminate@gmail.com
*
* LAST UPDATE
* 2015/12/15 First Release
(*
* This is sample code (My memorandum)
* System.Net.HttpClient.THttpClient class
*
* Programmed by HOSOKAWA Jun / twitter @pik
*)
program MVPCount;
{$APPTYPE CONSOLE}
@japboy
japboy / jade-ftw.md
Last active October 23, 2023 11:18
Jade について。

Jade FTW

こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。

Jade とは何か

[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。