Skip to content

Instantly share code, notes, and snippets.

<table>
<thead>
<tr>
<th width="350px">Producto/Servicio</th>
<th>Cantidad</th>
<th>Precio</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<table id="ejemplo">
<thead>
<tr>
<th>N° Factura</th>
<th>Tipo Factura</th>
<th>Cliente</th>
<th>Efectivo</th>
<th>Credito</th>
<th>Ejecutivo/a de venta</th>
</tr>
<div class="grid-container">
<div class="grid-x grid-margin-x margin-vertical-2">
<div class="cell large-12">
<table>
<tbody>
<tr>
<td>Manzanas</td>
<td>5</td>
</tr>
@hernandezalek
hernandezalek / codigo_temporal.css
Created December 5, 2018 04:20
codigo_temporal
html { min-height: 100%; position: relative; }
body { background: #f5f5f5; font-family: 'Poppins', sans-serif; font-size: 14px; color: #444; margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 500; }
.top-bar { padding: 0.7rem; }
.top-bar, .top-bar ul { background: #074e68; color: #fff; }
.top-bar, .top-bar ul a { color: #fff; text-transform: inherit; font-weight: 500; }
.sticky { box-shadow: 0px 2px 4px -2px #aaa; transition: all 1s ease; }
<script type="text/javascript">
handler = Gmaps.build('Google');
handler.buildMap({ provider: {}, internal: {id: 'map'}}, function(){
markers = handler.addMarkers(<%=raw @hash.to_json %>);
handler.bounds.extendWith(markers);
handler.fitMapToBounds();
handler.getMap().setZoom(16);
gestureHandling: 'greedy' // He intentado con handler.gestureHandling: 'greedy'/'none' pero sin resultado
});
</script>
$(document).ready(function(){
$(document).foundation();
$(document).on('change.zf.tabs', '[data-active-collapse]', function () {
window.dispatchEvent(new Event('resize'));
});
});
@hernandezalek
hernandezalek / ssl.pem
Created October 7, 2016 04:32
Certificado SSL para RubyGems
-----BEGIN CERTIFICATE-----
MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEU
MBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFs
IFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290
MB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEwNDgzOFowbzELMAkGA1UEBhMCU0Ux
FDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5h
bCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9v
dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALf3GjPm8gAELTngTlvt
H7xsD821+iO2zt6bETOXpClMfZOfvUq8k+0DGuOPz+VtUFrWlymUWoCwSXrbLpX9
uMq/NzgtHj6RQa1wVsfwTz/oMp50ysiQVOnGXw94nZpAPA6sYapeFI+eh6FqUNzX
@hernandezalek
hernandezalek / Solucion al Error SSL
Created October 6, 2016 20:16
Solucion al Error SSL
gem sources -r https://rubygems.org/ - Removemos la conexion segura
gem sources -a http://rubygems.org/ - Agregamos la conexion insegura de manera temporal para que nos permita actualizar las gemas de ruby sin SSL
gem update --system - Con este comando actualizamos todas las gemas de ruby
Una vez que hemos terminado de actualizar las gemas, ahora regresaremos la seguridad:
gem sources -r http://rubygems.org/ - Quitamos la conexion insegura
@hernandezalek
hernandezalek / article.rb [ MODELO ]
Last active September 1, 2016 02:29
Simple search
class Article < ActiveRecord::Base
belongs_to :user
def self.search(search)
where("title LIKE ?", "%#{search}%")
end
end
$('#modal1').append('<%= j render "form" %>').openModal();