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 / byte-sizetuts.md
Created March 28, 2016 03:38 — forked from honkskillet/byte-sizetuts.md
A series of golang tutorials with youtube videos.
require "forwardable"
class TheClass
extend Forwardable
attr_reader :items
def_delegators :@items, :<<, :push
def initialize; @items = [] end
end
@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/
//Module install command: npm install gulp-less gulp-livereload gulp-imagemin gulp-uglify gulp-minify-css gulp-rename gulp-notify --save
// Get modules
var gulp = require('gulp');
// Task boilerplate
gulp.task('taskname', function() {
});
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas

jQuery and jQuery-ujs

When using Rails 3.0 and later we already get jquery-rails for free. Look in the gemfile and you'll see:

gem "jquery-rails"

You can view the full documentation here: source: https://github.com/indirect/jquery-rails

If you take a look in APP_DIR/app/assets/javascripts/application.js, you'll notice the following lines of code:

#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas