Skip to content

Instantly share code, notes, and snippets.

View jhoek's full-sized avatar

Jan Hoek jhoek

View GitHub Profile
@jhoek
jhoek / test.htm
Last active May 23, 2025 08:37
test.htm
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8 />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="format-detection" content="telephone=no">
@jhoek
jhoek / Get-BcVersionInfo.ps1
Created February 12, 2023 11:42
Get-BcVersionInfo
function Get-BCVersionInfo
{
[Alias('Get-NavVersionInfo')]
param
(
)
function New-NavVersionInfo
{
param
#!/usr/bin/env pwsh
param
(
[Parameter(Mandatory, Position = 0)]
[string]$CommitMsgFile
)
$Branch = & git rev-parse --abbrev-ref HEAD
Add-Content -Path $CommitMsgFile -Value "[$Branch]"
@jhoek
jhoek / actions.json
Created June 7, 2021 13:46
Business Central Page Actions
{
"item":{
"navigation": {
"Entries": {
"caption": "Entries",
"ellipsis": true
},
"Availability": {
"caption": "Availability",
"children": {
@jhoek
jhoek / Convert-TextConstantToLabel.ps1
Created June 7, 2021 13:44
Convert-TextConstantToLabel
function Convert-LanguageIdentifier
{
param
(
[Parameter(Mandatory, ValueFromPipeline)]
[ValidatePattern('[A-Z]{3}')]
[string[]]$ThreeLetterWindowsLanguageName
)
$ThreeLetterWindowsLanguageName.ForEach{
@jhoek
jhoek / Convert-TextConstantToLabel.ps1
Created March 23, 2021 13:00
BC: Convert-TextConstant to Label
function Convert-LanguageIdentifier
{
param
(
[Parameter(Mandatory, ValueFromPipeline)]
[ValidatePattern('[A-Z]{3}')]
[string[]]$ThreeLetterWindowsLanguageName
)
$ThreeLetterWindowsLanguageName.ForEach{
OBJECT Codeunit 50003 ShareTable/RecordArray Test
{
OBJECT-PROPERTIES
{
Date=02-06-17;
Time=12:11:19;
Modified=Yes;
Version List=;
}
PROPERTIES