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
/*
* 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/
*
@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;

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 / .treehouse
Last active December 28, 2017 01:35 — forked from ErikGartner/.treehouse
Pretty's Family dTree
1.3.1
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

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)

@rqbazan
rqbazan / Vesper-dark-color-theme.icls
Created May 15, 2024 03:12
Vesper theme for JetBrains IDEs
<scheme name="Vesper-dark-color-theme" parent_scheme="Darcula" version="1">
<colors>
<option name="GUTTER_BACKGROUND" value="101010" />
<option name="SELECTION_BACKGROUND" value="323232" />
<option name="LINE_NUMBERS_COLOR" value="FFFFFF" />
<option name="CONSOLE_BACKGROUND_KEY" value="101010" />
</colors>
<attributes>
<option name="BAD_CHARACTER">
<value>