Skip to content

Instantly share code, notes, and snippets.

Avatar

Ricardo Berdejo ricbermo

View GitHub Profile
View auth_repository.dart
final authRepositoryProvider = StateNotifierProvider<AuthNotifier>(
(ref) => AuthNotifier(ref.read),
);
class AuthNotifier extends StateNotifier<AuthState> {
final Reader _read;
AuthNotifier(this._read) : super(const AuthState()) {
loadUser();
}
View gist:bb308528980c83c02ef06e8d90a398f9
Politica de Privacidad
1. No vendemos tus datos
2. No vendemos tus datos
3. No vendemos tus datos
4. No vendemos tus datos
5. No vendemos tus datos
View keybase.md

Keybase proof

I hereby claim:

  • I am ricbermo on github.
  • I am ricbermo (https://keybase.io/ricbermo) on keybase.
  • I have a public key ASBPOmPtU4NGltJPgPv2jjvmVB-d-p0GhPR-eJhciqEW1Qo

To claim this, I am signing this object:

@ricbermo
ricbermo / fastlane_runner.sh
Last active Feb 26, 2019
Fastlane runner for bitrise
View fastlane_runner.sh
#!/usr/bin/env bash
bundle exec fastlane android beta
@ricbermo
ricbermo / .babelrc
Last active Mar 29, 2019
React Native boilerplate: My own RN preferences translated into settings. RN 57+
View .babelrc
{
"presets": ["module:metro-react-native-babel-preset"],
"plugins": [
["module-resolver", {
"cwd": "babelrc",
"root": ["./src"],
"alias": {
"theme": "./src/styles/theme",
"env": "./env.js",
},
@ricbermo
ricbermo / SortableGrid.js
Created Dec 15, 2017
Custom Block Height for @ollija/react-native-sortable-grid
View SortableGrid.js
import React, {Component} from 'react';
import {
StyleSheet,
Animated,
TouchableWithoutFeedback,
PanResponder,
Image,
View,
} from 'react-native';
View RVM Cheat Sheet
RVM home page: https://rvm.io
Install RVM
------------
See https://rvm.io/rvm/install/
curl -L get.rvm.io | bash -s stable
On OS X you can use RailsInstaller which will bring all dependencies for you:
@ricbermo
ricbermo / database.yml
Created Jan 13, 2014
a better database configuration for rails using postgres
View database.yml
defaults: &defaults
adapter: postgresql
template: template0
host: localhost
development:
<<: *defaults
database: (your_app_name)_development
test: &test