Skip to content

Instantly share code, notes, and snippets.

View victorcbr's full-sized avatar
:octocat:
Working

Victor Colucci Bredarioli victorcbr

:octocat:
Working
View GitHub Profile
find ./src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \;
// get
export const _getStorageValue = async (name, options) => {
let decript = options === 'decript';
try {
const value = await AsyncStorage.getItem(name);
return decript ? Buffer.from(value, 'base64').toString('ascii') : value
} catch (error) {
console.log(error)
return error
import axios from 'axios';
const isDev = process.env.NODE_ENV === 'development';
let baseURL = isDev ?
'http://teste.clickpygg.com/api/'
:
'http://dashboard.clickpygg.com/api/';
const api = axios.create({
{
"Use Non-ASCII Font" : false,
"Tags" : [
"Dynamic"
],
"Ansi 12 Color" : {
"Green Component" : 0.86277559999999998,
"Red Component" : 0.71165029999999996,
"Blue Component" : 0.9982605
},
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
@victorcbr
victorcbr / .zshrc
Created July 22, 2019 16:50
my .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/victorcbr/.oh-my-zsh"
source ~/awesome-terminal-fonts/build/*.sh
# Set name of the theme to load --- if set to "random", it will
@victorcbr
victorcbr / Dockerfile
Created May 21, 2018 18:51
dockerfile temp
#FROM node:alpine as builder
#MAINTAINER Victor Bredarioli <victor.bredarioli@beblue.com.br>
# Install Git
#RUN apk update && \
# apk upgrade && \
# apk add --virtual .build-deps nodejs && \
# apk add tzdata && \
# rm -rf /var/cache/apk/*