With vscode-intelephense extension (1.10.0 - 2023-11-05).
/** @param array{foo:string, bar:int} $arrayShape */
or /** @return object{foo:string, bar:int} */
With vscode-intelephense extension (1.10.0 - 2023-11-05).
/** @param array{foo:string, bar:int} $arrayShape */
or /** @return object{foo:string, bar:int} */
To enable no built-in extensions, you have to install them manually.
Note
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
p7zip is command line port of 7-Zip for POSIX systems, including Linux.
apt install -y p7zip
by Danny Quah, Aug 2020 (revised Jan 2022)
TL;DR: I write technical articles in LaTeX. But shorter, non-technical writings are easier to do in Markdown. How do I produce PDF from Markdown documents? Answer: provide YAML information in the Markdown; run Pandoc (typically through a Makefile or Atom's Markdown Preview Enhanced). To make all this work, some adjustment is needed in Pandoc options and template files.
Pandoc is a filter that takes a written document in a particular format, and produces a version of that same document in yet a different format. I use Pandoc primarily to transform Markdown documents to PDF, but I also draw on Pandoc to convert Word or ODT documents to Markdown. And vice versa.
Available official Pandoc documentation is voluminous. So as a matter of logic the knowledge to generate PDF from Markdown, to the user's desired degree of control, is already extant, out there somewhere. But a user j
{ | |
"aa": "Afar", | |
"ab": "Abkhazian", | |
"ae": "Avestan", | |
"af": "Afrikaans", | |
"ak": "Akan", | |
"am": "Amharic", | |
"an": "Aragonese", | |
"ar-ae": "Arabic (U.A.E.)", | |
"ar-bh": "Arabic (Bahrain)", |
This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo.
# Detect operating system in Makefile. | |
# Author: He Tao | |
# Date: 2015-05-30 | |
OSFLAG := | |
ifeq ($(OS),Windows_NT) | |
OSFLAG += -D WIN32 | |
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64) | |
OSFLAG += -D AMD64 | |
endif |