Valor | Tempo |
---|---|
0 | não precisa ser feita |
1 | menos de 1h |
2 | uma manhã |
3 | uma tarde |
5 | um dia |
8 | 2 ou 3 dias |
13 | 5 dias |
20 | quebrar a tarefa |
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
export function isDefined<TValue>(value: TValue | undefined): value is TValue { | |
return typeof value !== 'undefined'; | |
} |
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
export const formatList = list => | |
list.reduce((acc, text, index) => { | |
if (index === 0) return text; | |
return acc.concat(`${!list[index + 1] ? ' and' : ','} ${text}`); | |
}, ''); |
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 React from 'react'; | |
import FocusLock from 'react-focus-lock'; | |
import { Modal as SemanticModal, ModalProps } from 'semantic-ui-react'; | |
const ModalLock: React.FC<ModalProps> = ({ children, className, ...props }) => ( | |
<FocusLock returnFocus className={className} lockProps={props}> | |
{children} | |
</FocusLock> | |
); |
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
class AbortError extends Error { | |
name = "AbortError"; | |
message = "Aborted"; | |
} | |
class AbortSignal extends EventTarget { | |
aborted = false; | |
} | |
class AbortController { |
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
#!/usr/bin/env bash | |
sudo apt-get update | |
sudo apt-get install git \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common \ | |
ssh-keygen |
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
const cp = require('child_process') | |
/** | |
* A function that spawns a new process using the given command, logging the stdout and stderr. | |
* | |
* @param {String} command | |
* @param {Array} args | |
* @return {Promise} | |
* @example | |
* |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Display Webcam Stream</title> | |
<style> | |
body { | |
margin: 0; | |
} | |
#webcam { |
NewerOlder