I hereby claim:
- I am mloureiro on github.
- I am mloureiro (https://keybase.io/mloureiro) on keybase.
- I have a public key ASC0frQK3U3RKK6_VjTgg1h2So5vtaLqI8_gba72T5hGxwo
To claim this, I am signing this object:
const fs = require("fs"); | |
const path = require("path"); | |
/** | |
* Recursively get all TypeScript files (.ts, .tsx) in a directory. | |
* @param {string} dirPath - Directory to search. | |
* @returns {string[]} - Array of file paths. | |
*/ | |
function getTypeScriptFiles(dirPath) { | |
let files = []; |
I hereby claim:
To claim this, I am signing this object:
The role of Facilitator is fundamental for almost every meeting. The Facilitator ensures that the whole group is empowered to make decisions and that every individual has their voice heard.
During a retrospective, the Facilitator role is crucial. In a retrospective, it is ideal that everyone has at least some degree of participation, and it is the Facilitator that helps the participants with that.
// By @coderitual | |
// https://twitter.com/coderitual/status/1112297299307384833 | |
// Remove any duplicates from an array of primitives. | |
const unique = [...new Set(arr)] | |
// Sleep in async functions. Use: await sleep(2000). | |
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms))); | |
// Type this in your code to break chrome debugger in that line. |
function generator() { | |
let id = 0; | |
return () => id++; | |
} | |
function arrayFill(times, generator, sortFn = () => 0) { | |
return Array(times) | |
.fill(null) | |
.map(generator) | |
.sort(sortFn); |
#!/usr/bin/env bash | |
# Usage: {script} PATH | |
# Construct a commit message for use with rebase --autosquash. | |
# The commit message will be the subject line from the specified commit with a prefix of "fixup! " and will contain the | |
# changes on the PATH. | |
# | |
# --help, -h Displays this help | |
# | |
# Report bugs to Henrique Moody <[email protected]> | |
# |
function clearDuplicatesUsingArrayIncludes(array) { | |
const existing = []; | |
return array.filter((el) => { | |
if (existing.includes(el)) { | |
return false; | |
} | |
existing.push(el); | |
return true; |
s(100001740,1,'entity',n,1,11). | |
s(100001930,1,'physical entity',n,1,0). | |
s(100002137,1,'abstraction',n,6,0). | |
s(100002137,2,'abstract entity',n,1,0). | |
s(100002452,1,'thing',n,12,0). | |
s(100002684,1,'object',n,1,51). | |
s(100002684,2,'physical object',n,1,0). | |
s(100003553,1,'whole',n,2,0). | |
s(100003553,2,'unit',n,6,0). | |
s(100003993,1,'congener',n,3,0). |
<?php | |
$sections = [ | |
'bread' => [ | |
'multichoice' => false, | |
'options' => ['normal','wrap'] | |
], | |
'salad' => [ | |
'multichoice' => true, | |
'options' => ['lettuce','tomatoes', 'corn'] |