Skip to content

Instantly share code, notes, and snippets.

View rqbazan's full-sized avatar
🦉
making things over the web

Ricardo Q. Bazan rqbazan

🦉
making things over the web
View GitHub Profile

The StatusBar Problem

From Expo docs:

Keep in mind that the Android status bar is translucent by default in Expo apps.

And also I'm almost sure that the background color in Expo apps is like rgba(0,0,0,0.4)

import React, { Component } from 'react'
import styled, { withTheme } from 'styled-components'
import { Label } from '@riqra/truck'
import { StickyTree } from 'react-virtualized-sticky-tree'
import Measure from 'react-measure'
import { map } from 'lodash'
import { GroupedTree } from 'utils'
const resolveHeight = props => {
const { theme: { dimensions } } = props
@rqbazan
rqbazan / .treehouse
Last active December 28, 2017 01:35 — forked from ErikGartner/.treehouse
Pretty's Family dTree
1.3.1

Configuración para multiples claves SSH con diferentes cuentas github y/o gitlab

Antes de comenzar será mejor estar en la carpeta ssh de nuestro usuario actual

$ cd ~/.ssh

1) Crear varias claves ssh

@rqbazan
rqbazan / RxJava2ErrorHandlingCallAdapterFactory.java
Last active September 7, 2017 17:30 — forked from joen93/RxErrorHandlingCallAdapterFactory.java
RxJava2 and Retrofit 2.2.0 compatible factory, which wraps the {@link RxJava2CallAdapterFactory} and takes care of the error conversion.
/**
* Reimplemented by RqBazan on 02/07/17.
*
* RxJava2 and Retrofit 2.2.0 compatible factory,
* which wraps the {@link RxJava2CallAdapterFactory} and takes care of the error conversion.
*
* Based on: https://github.com/square/retrofit/issues/1102#issuecomment-241250796
*/
public class RxJava2ErrorHandlingCallAdapterFactory extends CallAdapter.Factory {
private final RxJava2CallAdapterFactory mOriginalCallAdapterFactory;
/*
* References:
*
* Datalogger by Arduino: https://www.arduino.cc/en/Tutorial/Datalogger
* Clock TinyRTC Tutorial: http://www.prometec.net/relojes-rtc/
* DHT22 Sensor Tutorial: http://www.naylampmechatronics.com/blog/40_Tutorial-sensor-de-temperatura-y-humedad-DHT1.html
* Ethernet Shield V2 Wiki: http://wiki.seeedstudio.com/wiki/Ethernet_Shield_V2.0
* DFR0026 Light Sensor Guide: https://www.dfrobot.com/wiki/index.php/DFRobot_Ambient_Light_Sensor_(SKU:DFR0026_)
* DS1307 RTC Tutorial: http://www.geekfactory.mx/tutoriales/tutoriales-arduino/ds1307-en-tinyrtc-con-arduino/
*