Skip to content

Instantly share code, notes, and snippets.

View ronal2do's full-sized avatar

Ronaldo Lima ronal2do

View GitHub Profile
@ronal2do
ronal2do / CircleAnimation.js
Created October 11, 2017 03:55 — forked from mmazzarolo/CircleAnimation.js
Super simple circle animation overlay for React-Native
/* @flow */
import React, { Component } from 'react'
import { View } from 'react-native-animatable'
import metrics from 'src/config/metrics'
type Props = {
isVisible: boolean,
backgroundColor: string,
animationTiming?: boolean
}
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-background-geolocation'.
> Could not resolve all dependencies for configuration ':react-native-background-geolocation:_debugPublishCopy'.
> Could not resolve com.github.tony19:logback-android-core:1.1.1-6.
Required by:
project :react-native-background-geolocation
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.0.0'
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.0.0'
import paramsToProps from 'paramsToProps.js'
const MainNavigator = StackNavigator({
firstScreen: { screen: paramsToProps(FirstScreenComponent) },
secondScreen: { screen: paramsToProps(SecondScreenComponent) },
});
import paramsToProps from 'paramsToProps.js'
const MainNavigator = StackNavigator({
firstScreen: { screen: paramsToProps(FirstScreenComponent) },
secondScreen: { screen: paramsToProps(SecondScreenComponent) },
});
const f = x => x + 1
const g = x => x * 2
const x = 3
const result = f(g(x)) // 7
const scream = str => str.toUpperCase()
const exclaim = str => `${str}!`
const repeat = str => `${str} ${str}`
{
"editor.fontFamily": "Operator SSm",
"editor.fontSize": 14,
"terminal.integrated.fontFamily": "Operator SSm",
"terminal.integrated.fontSize": 12,
// "editor.letterSpacing": 0.5,
"workbench.colorTheme": "Operator Mono Dark Theme",
"editor.tabSize": 4,
"[javascript]": {
"editor.tabSize": 2
@ronal2do
ronal2do / MongoDB_macOS_Sierra.md
Created August 22, 2018 19:58 — forked from nrollr/MongoDB_macOS_Sierra.md
Install MongoDB on Sierra using Homebrew

Install MongoDB on macOS Sierra

This procedure explains how to install MongoDB using Homebrew on macOS Sierra 10.12.
Official MongoDB install documentation: here

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@ronal2do
ronal2do / react-native-double-tap.js
Created September 5, 2018 18:45 — forked from brunotavares/react-native-double-tap.js
Double tap gesture recognition for React Native.
const DOUBLE_PRESS_DELAY = 300;
// ...
/**
* Double Press recognition
* @param {Event} e
*/
handleImagePress(e) {
const now = new Date().getTime();