This is a terse document covering the anatomy of a package built for the pacman package manager.
The following example commands can mostly run verbatim to manually create a
#dart:convert example
How to pretty-print JSON using Dart.
How to display JSON in an easy-to-read (for human readers) format.
Main library: dart:convert
Main element: JsonEncoder.withIndent
Gist: https://gist.github.com/kasperpeulen/d61029fc0bc6cd104602
| import { Injectable } from '@angular/core'; | |
| @Injectable() | |
| export class POIService { | |
| // LEFT, BOTTOM, RIGHT, TOP | |
| private country_bounding_boxes = [ | |
| {'AF': {'Afghanistan': [60.5284298033, 29.318572496, 75.1580277851, 38.4862816432]}}, | |
| {'AO': {'Angola': [11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998]}}, | |
| {'AL': {'Albania': [19.3044861183, 39.624997667, 21.0200403175, 42.6882473822]}}, | |
| {'AE': {'United Arab Emirates': [51.5795186705, 22.4969475367, 56.3968473651, 26.055464179]}}, |
| #!/bin/sh | |
| # Execute Windows programs with Proton from Steams installation folder, without | |
| # starting Steam client. | |
| # | |
| # 1. Create a directory for Proton environment to run in. As an example make a | |
| # folder "proton" in your home directory. This folder must exist in order | |
| # to make Proton work. | |
| # | |
| # 2. Point the variable "env_dir" in this script to that folder or... |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| scan_dirs=(target build node_modules .dart_tool) | |
| usage() { | |
| local scan_dir | |
| cat <<'EOF' |