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 | |
namespace App\Repository; | |
/** | |
* Utility repo for Mysql backend for DataTables ajax calls. | |
*/ | |
class DataTablesMySqlQuery | |
{ |
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
/** Async pool | |
* Originally seen at https://github.com/rxaviers/async-pool/blob/master/lib/es6.js | |
* Simplified thanks to u/GSLint in | |
* https://www.reddit.com/r/learnjavascript/comments/gebobv/cant_grok_asyncpool_es6_code/ | |
*/ | |
/** Run asyncFunction array, poolSize at a time. */ | |
async function asyncPool (array, poolSize) { | |
const result = [] | |
const pool = [] |
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
# Helper method to dump project TODOs to stdout. | |
# | |
# Script can be stored anywhere, but should be run from the project | |
# root dir: | |
# python tools/list_todos.py | |
# | |
# Sample output: | |
# | |
# Current TODOs by category: | |
# |
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
# Attribute Provenance reporter | |
# ----------------------------- | |
# | |
# Runs as a ChefSpec test and dumps two sections of data: | |
# 1. all attributes (data from `node.debug_value()`) | |
# 2. where each attribute is set. You can specify the attributes | |
# you want included with an ATTRS environment variable. | |
# | |
# Sample run: | |
# |