Skip to content

Instantly share code, notes, and snippets.

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

Felipe Oliveira felipecodes

🏠
Working from home
View GitHub Profile
sudo apt-get update
echo 'installing curl'
sudo apt install curl -y
echo 'installing git'
sudo apt install git -y
echo 'installing mathias dotfiles'
cd; curl -#L https://github.com/mathiasbynens/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt}
@felipecodes
felipecodes / tree.js
Created March 1, 2019 03:51
tree exercise
function traverse(node, callback) {
if (node !== null) {
traverse(node.l, callback);
callback(node.x)
traverse(node.r, callback);
}
}
function solution(T) {
const visibles = [];
# Hepburn
language: objective-c
osx_image: xcode7
xcode_sdk: iphonesimulator9.0
cache:
directories:
- node_modules
- ios/Pods
- ~/.nvm
@felipecodes
felipecodes / vscode.settings.json
Last active April 29, 2020 03:10
vscode user settings
{
"workbench.editor.tabSizing": "shrink",
"workbench.activityBar.visible": true,
"workbench.sideBar.location": "left",
"workbench.startupEditor": "newUntitledFile",
"workbench.colorTheme": "Hop Light",
"workbench.editor.tabCloseButton": "right",
"workbench.editor.enablePreviewFromQuickOpen": false,
"editor.letterSpacing": 0.5,
"files.trimTrailingWhitespace": true,
@felipecodes
felipecodes / EmailInput.jsx
Created December 2, 2017 01:05 — forked from jaredpalmer/EmailInput.jsx
Formik async email signup input
import React from 'react';
import debounce from 'utils/debounce';
class EmailInput extends React.Component {
checkEmail = value => {
// only check if the field passes Yup email validation first
if (
!this.props.form.errors[this.props.name].includes(
'invalid' /* or whatever your error message is*/
)