Skip to content

Instantly share code, notes, and snippets.

View kelvinlemus's full-sized avatar
🏠
Working from home

Kelvin Lemus kelvinlemus

🏠
Working from home
View GitHub Profile
@kelvinlemus
kelvinlemus / DeviceForm.js
Created February 25, 2019 08:20 — forked from maotora/DeviceForm.js
Intergrating native-base styled components & redux-form.
import React, { Component } from 'react';
import { Grid, Col, Row } from 'react-native-easy-grid';
import * as renders from './renderedComponents';
import { Field, reduxForm } from 'redux-form';
import normalizePhone from './normalizePhone';
import { createRouter, withNavigation } from '@exponent/ex-navigation';
import {
Container,
Header,
Title,
@kelvinlemus
kelvinlemus / README.md
Last active February 10, 2019 20:37
React Native Troubleshooting

Command failed: adb, Error: Activity class does not exist

facebook/react-native#18243 (comment)

Updated the correct path on @datvp09, was missing **/debug/**

react-native-cli: 2.0.1
react-native: 0.57.3

Connect your Android device via USB:
@kelvinlemus
kelvinlemus / Preferences.md
Last active November 17, 2017 16:27
Atom Config

Core Settings

uncheck

  • Auto Hide Menu Bar
  • Remove Empty Panes

Ignore names
node_modules, bower_components, *.log, *.sql

Editor

Font family

@kelvinlemus
kelvinlemus / README.md
Last active June 15, 2017 05:57
mini proyecto rails 5, REST API, TDD, ReactJS

Development

npm run webpack
cd www
python -m SimpleHTTPServer
constructor(props) {
super(props);
this.state = {
listHeight: null,
footerY: null
}
}
let scrollDistance = this.state.listHeight - this.state.footerY
this.listView.scrollTo({x: this.state.listHeight, y: this.state.footerY, animated: true})
@kelvinlemus
kelvinlemus / byte-sizetuts.md
Created March 28, 2016 03:38 — forked from honkskillet/byte-sizetuts.md
A series of golang tutorials with youtube videos.
@kelvinlemus
kelvinlemus / styles.less
Created January 7, 2016 14:22
ATOM: custom styles
atom-panel.modal.overlay.from-top {
font-size: 18px;
width: 800px;
}
atom-panel.modal .select-list ol.list-group, atom-panel.modal.select-list ol.list-group {
// background: black;
}
require "forwardable"
class TheClass
extend Forwardable
attr_reader :items
def_delegators :@items, :<<, :push
def initialize; @items = [] end
end
@kelvinlemus
kelvinlemus / .gitignore
Last active November 26, 2015 19:34
gulp-hamlc-browser-sync
node_modules/*
html/*.html
templates/*
!templates/index_template.hamlc
@kelvinlemus
kelvinlemus / ddd-rails-tree.txt
Created November 22, 2015 04:47 — forked from replaid/ddd-rails-tree.txt
A Rails directory tree that expresses DDD layers and bounded contexts.
components/
my_bounded_context/
app/
presentation/ # This is called the "UI" layer in DDD literature, but it is also
# where things like JSON interfaces live -- any kind of presentation
# or handshake to anything outside. So "presentation" rather than "ui".
assets/
helpers/
mailers/
views/