Skip to content

Instantly share code, notes, and snippets.

View jeancabral's full-sized avatar
🏠
Working from home

Jean Cabral jeancabral

🏠
Working from home
View GitHub Profile
@alexrios
alexrios / syllabus.md
Last active June 27, 2021 09:40
Go Concorrente

Go Concorrente

Intro

  • Concorrência
  • Scheduler
    • internals (semantics)
  • Deadlocks, Livelocks e starvation
  • O que é CSP?

Nivel 1

"#tabs
" " - Two spaces wide
set tabstop=2
set mouse=a
set ttymouse=xterm
set softtabstop=2
" " - Expand them all
set expandtab
" " - Indent by 2 spaces by default
set shiftwidth=2
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
@stevensacks
stevensacks / DatePicker.js
Last active June 26, 2023 08:59
React Bulma DatePicker
import {addDays, format, isAfter, isBefore, startOfDay} from 'date-fns';
import React, {Component, Fragment} from 'react';
import classes from 'classnames';
import DatePickerDialog from './DatePickerDialog';
import Dialog from 'components/Dialog';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import {getDisabled} from '../../../utils/component';
import PropTypes from 'prop-types';
import './index.css';
@stevensacks
stevensacks / Dialog.js
Last active July 16, 2022 15:08
Dialog as a promise
import React, {Component} from 'react';
import {delay} from 'lodash';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import {getDisabled} from '../../utils/component';
import PropTypes from 'prop-types';
import './index.css';
export default class Dialog extends Component {
static propTypes = {
cancel: PropTypes.string,