This file contains 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
// https://codepen.io/nkalvi/pen/MWZpzOg | |
// Get separator symbols as .decimal and .thousands | |
// for given locale or default locale | |
function getNumberSeparators(locale) { | |
const str = (1234.56).toLocaleString(locale); | |
const regex = /\p{Nd}(?<thousands>[^\p{Nd}]?)\p{Nd}{3}(?<decimal>[^\p{Nd}]?)\p{Nd}{2}/u; | |
const found = str.match(regex); | |
if (!found || !found.groups) return undefined; |
This file contains 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
-- Purpose: | |
-- In Mac Photos, traverse selected albums and set title to the following format, preserving the order of items | |
-- [Album Name]-xx of xx (then export choosing titles as file names) | |
-- | |
-- Why? - wouldn't export in Photos with 'Album Name with Number' work? | |
-- 2019-12-10 | |
-- Fixed! in Catalina 10.15.2, Photos Version 5.0 (121.17.170) | |
-- 2019-12-09 | |
-- This script is not needed if the export function in Photos preserved the order when selecting | |
-- sequential numbering or auto-numbering scheme; it worked when exporting unmodified originals. |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
#!/usr/bin/env python3 | |
import sys | |
import plistlib | |
import zipfile | |
import glob | |
import os | |
columns = ['Title', 'Seller', 'Category', 'version', 'Released', 'Purchased', 'AppleIdForPurchase'] | |
print(*columns, sep = "\t") |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
<copyright file="AdvancedWelcomeEulaDlg.wxs" company="Outercurve Foundation"> | |
Copyright (c) 2004, Outercurve Foundation. | |
This software is released under Microsoft Reciprocal License (MS-RL). | |
The license and further copyright text can be found in the file | |
LICENSE.TXT at the root directory of the distribution. | |
</copyright> | |
--> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
This file contains 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
<?define UpgradeCode = "A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562" ?> | |
<?if $(sys.BUILDARCH)=x64?> | |
<?define ProgFilesFolder="ProgramFiles64Folder"?> | |
<?else?> | |
<?define ProgFilesFolder="ProgramFilesFolder"?> | |
<?endif?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | |
<Product Id="*" | |
UpgradeCode="$(var.UpgradeCode)" Name="Pandoc $(var.VERSION)" | |
Version="$(var.VERSION)" Manufacturer="John MacFarlane" |
This file contains 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
<?xml version="1.0"?> | |
<?define UpgradeCode = "A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562" ?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | |
<Product Id="*" | |
UpgradeCode="$(var.UpgradeCode)" Name="Pandoc $(var.VERSION)" | |
Version="$(var.VERSION)" Manufacturer="John MacFarlane" | |
Language="1033"> | |
<Package InstallerVersion="200" Compressed="yes" | |
Comments="Windows Installer Package" /> |
This file contains 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
<?xml version="1.0"?> | |
<?define UpgradeCode = "A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562" ?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | |
<Product Id="*" | |
UpgradeCode="$(var.UpgradeCode)" Name="Pandoc $(var.VERSION)" | |
Version="$(var.VERSION)" Manufacturer="John MacFarlane" | |
Language="1033"> | |
<Package InstallerVersion="200" Compressed="yes" | |
Comments="Windows Installer Package" /> |
This file contains 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
Test suite test-pandoc: RUNNING... | |
pandoc: ignoring :language: field because the parent of role :python: is :indirect: not :code: | |
Old: | |
markdown: | |
writer: | |
basic: [OK] | |
tables: [OK] | |
lhs to normal: [OK] | |
lhs to lhs: [OK] | |
reader: |