Skip to content

Instantly share code, notes, and snippets.

View Haguilar91's full-sized avatar

Hector Aguilar Herdocia Haguilar91

View GitHub Profile
@Haguilar91
Haguilar91 / Gemfile
Last active September 16, 2017 06:12
Slick Slider problema con rails.
#La gema de Slick esta en https://github.com/bodrovis/jquery-slick-rails/
#Slick solo es: http://kenwheeler.github.io/slick/
source 'https://rubygems.org'
gem 'carrierwave', '~> 0.10.0'
gem 'carrierwave-imageoptimizer'
gem 'mini_magick'
gem 'omniauth-facebook'
gem 'mysql2'
@Haguilar91
Haguilar91 / _show_tarjeta.html.rb
Created October 19, 2017 04:38
Tarjetas Responsive BS4
<style>
card {
box-shadow: 10px 10px 5px grey;
font-family: 'Roboto', sans-serif;
width: auto;
}
</style>
<div class="card">
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
<div class="container">
<div class="jumbotron bg-dark">
<h4 class="title" style="color:white;"><i class="fa fa-inbox" aria-hidden="true"></i> &nbsp; Conversaciones/Bandeja de Entrada</h4>
</div>
<div class="row card-columns"style="padding-left: 3em;">
<% @conversations.each do |conversation| %>
@Haguilar91
Haguilar91 / -app-views-transactions-new.html.erb
Last active June 14, 2018 04:42
Intento de Modal para crear Transaccion
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Metodos de Pago</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<%= form_for(@transaction) do |form| %>
<div class="form-group">
<div class="modal fade" id="mainModal" tabindex="-1" role="dialog" aria-labelledby="mainModalLabel" aria-hidden="true" >
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="mainModalLabel">
<%= yield :title if content_for? :title %>&nbsp;
</h4>
</div>
@Haguilar91
Haguilar91 / show_public_item.html.erb
Created November 11, 2018 07:53
Show Public Item
<% @producto= Item.all.where(:id => params[:item])%>
<div class=bg-primary>
<h1>Debugging</h1>
<hr>
<% @vendedor=User.all.where(:email=>@producto.pluck(:usuario_actual)).map(&:id)%>
<p>Vendedor: &nbsp; <%=@vendedor.inspect%> </p>
<p>Producto: &nbsp; <%= @producto.inspect%></p>
<p>Articulo: &nbsp; <%=params[:item].inspect %></p>
</div>
2. Flash to your PH-1
Once you've downloaded the system image, follow the instructions below to flash the image onto your Essential Phone.
Flashing Instructions
1. Set up your computer for flashing
Download the fastboot tool from the Android SDK Platform-Tools package
Add it to your path so the flash scripts can find it
Connect your Essential phone to your computer with a USB cable
2. Enable unlocking