Skip to content

Instantly share code, notes, and snippets.

View csorlandi's full-sized avatar
🎯
Focusing

Claudio Orlandi csorlandi

🎯
Focusing
View GitHub Profile
{
"editor.fontFamily": "JetBrains Mono",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.lineHeight": 26,
"editor.semanticHighlighting.enabled": false,
"workbench.colorTheme": "Omni",
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
import { useReducer } from 'react';
const initialState = {
counter: 0,
};
const reducer = (state, action) => {
switch (action.type) {
case 'INCREMENTAR':
return {
@csorlandi
csorlandi / README-PTBR.md
Created March 17, 2022 04:45 — forked from lohhans/README-PTBR.md
Um modelo para fazer um bom README.md

Título do projeto

Um parágrafo da descrição do projeto vai aqui

🚀 Começando

Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.

Consulte Implantação para saber como implantar o projeto.

function handleTaskSelected(id) {
setTodoList(
todoList.map(todo => ({
...todo,
checked: todo.id === id ? !todo.checked : todo.checked,
})
);
}
<input type="checkbox" onChange={() => handleTaskSelected(todo.id)} className={`${todo.checked && 'checked'}`} />
export default function Form() {
const [todoList, setTodoList] = useState([]);
const [todo, setTodo] = useState('');
useEffect(() => {
const formattedTodoList = JSON.stringify(todoList);
localStorage.setItem('fiscais:todoList', formattedTodoList);
}, [todoList]);
function handleAddTodo(e) {
import { NativeModules } from 'react-native';
import Reactotron from 'reactotron-react-native';
if (__DEV__) {
const { scriptURL } = NativeModules.SourceCode;
const scriptHostname = scriptURL.split('://')[1].split(':')[0];
const tron = Reactotron.configure({ host: scriptHostname })
.useReactNative()
.connect();
@csorlandi
csorlandi / README-TEMPLATE.md
Created July 10, 2020 18:07 — forked from tgmarinho/README-TEMPLATE.md
Template sugestivo para documentação de projetos

Titulo ou Arte do Projeto

@csorlandi
csorlandi / settings.json
Created June 2, 2020 15:26 — forked from diego3g/settings.json
✏️ Minha config do VSCode atualizada
{
"terminal.integrated.fontSize": 14,
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
"editor.tabSize": 2,
"editor.fontSize": 18,
"editor.lineHeight": 26,
"editor.fontFamily": "Fira Code",
{
"workbench.colorTheme": "Dracula",
"terminal.integrated.fontSize": 14,
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
"editor.tabSize": 2,
"editor.fontSize": 14,
"editor.lineHeight": 24,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
const imagesData = new FormData();
images.forEach((image, index) => {
imagesData.append('image', {
uri: image.uri,
type: 'image/jpeg',
name: `${newRealtyResponse.data.title}_${index}.jpg`
});
});