Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
Discover gists
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
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
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
--- Lists the formats that support all the extensions given on the command line. | |
-- | |
-- Usage: | |
-- | |
-- pandoc lua list-formats.lua [extensions,...] | |
-- | |
-- Example: | |
-- | |
-- $ pandoc lua list-formats.lua native_numbering citations | |
-- docx |
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
<?php | |
// BOF MANU | |
// $old => $new | |
$categories = array( | |
1 => 3, | |
2 => 4, | |
3 => 5, | |
4 => 6, | |
5 => 7, | |
6 => 8, |
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
cache: | |
paths: | |
- node_modules/ | |
- .yarn | |
stages: | |
- build | |
- test | |
- deploy | |
build: | |
image: node:10 |
This guide is only for Debian Buster (10) as of 2019-01-07. It was tested on a mipsel system (GnuBee PC2).
- Enable buster-backports (needed for monit)
echo "deb http://httpredir.debian.org/debian buster-backports main" >> /etc/apt/sources.list
apt-get update
- Install prerequisites
After a deep dive looking up best practices for TypeScript monorepos recently, I couldn't find anything that suited my needs:
- Publish individual (typed) packages to NPM with minimal config.
- Supports fast unit testing that spans the entire project (e.g., via Vitest)
- Ability to have an interactive playground to experiment with the API in a real-time (e.g., via Vite)
Most solutions point to TypeScript project references,
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
import SwiftUI | |
/// Supplies an observable object to a view’s hierarchy. | |
/// | |
/// The purpose of `WithBindable` is to make it possible to instantiate | |
/// observable objects from environment values, while keeping the object | |
/// alive as long as the view is rendered. | |
/// | |
/// For example: | |
/// |
NewerOlder