Skip to content

Instantly share code, notes, and snippets.

View juque's full-sized avatar

Juan Pablo Aqueveque juque

View GitHub Profile
https://gist.github.com/juque/d1436e891bc0889811b5602f8743a39b

CSS


<style type="text/css" media="screen">

.video-container {
  padding-bottom: 56.25%;
  padding-top: 30px; height: 0; overflow: hidden;
 position: relative;
@juque
juque / log
Created January 29, 2019 14:26
2019-01-21T17:00:15.416397+00:00 app[web.1]: E, [2019-01-21T17:00:15.416334 #6] ERROR -- : /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.10/lib/rack/session/abstract/id.rb:225:in `context'
2019-01-21T17:00:15.416449+00:00 app[web.1]: E, [2019-01-21T17:00:15.416388 #6] ERROR -- : /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.10/lib/rack/session/abstract/id.rb:220:in `call'
2019-01-21T17:00:15.416496+00:00 app[web.1]: E, [2019-01-21T17:00:15.416442 #6] ERROR -- : /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.10/lib/rack/logger.rb:15:in `call'
2019-01-21T17:00:15.416574+00:00 app[web.1]: E, [2019-01-21T17:00:15.416513 #6] ERROR -- : /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.10/lib/rack/commonlogger.rb:33:in `call'
2019-01-21T17:00:15.416627+00:00 app[web.1]: E, [2019-01-21T17:00:15.416565 #6] ERROR -- : /app/vendor/bundle/ruby/2.3.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:219:in `call'
2019-01-21T17:00:15.416673+00:00 app[web.1]: E, [2019-01-21T17:00:15.416619 #6] ERROR -- : /app/vendor/bundle/ruby/2.3.0/gems/sinatra
D, [2019-01-11T18:16:45.804900 #13413] DEBUG -- N960AA3: [init_inscription] building request with data: {"arg0"=>{"username"=>"Juan Pablo Aqueveque", "email"=>"[email protected]", "responseURL"=>"https://www.nexobeer.cl/orders/N960AA3/4103/gateway_callback"}}
D, [2019-01-11T18:16:45.805544 #13413] DEBUG -- N960AA3: HTTPI GET request to webpay3g.transbank.cl (httpclient)
I, [2019-01-11T18:16:46.788867 #13413] INFO -- N960AA3: [init_inscription] sending request.
I, [2019-01-11T18:16:46.789971 #13413] INFO -- N960AA3: SOAP request: https://webpay3g.transbank.cl/webpayserver/wswebpay/OneClickPaymentService
I, [2019-01-11T18:16:46.790067 #13413] INFO -- N960AA3: SOAPAction: "initInscription", Content-Type: text/xml;charset=UTF-8, Content-Length: 4306
D, [2019-01-11T18:16:46.790154 #13413] DEBUG -- N960AA3: <?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://webservices.webpayserv
@juque
juque / my_scraper.py
Last active January 5, 2019 06:48
A very simple example of web scraping using python3
#!/usr/bin/env python
# encoding: utf-8
import requests
from bs4 import BeautifulSoup
url = "https://www.bebesymas.com/alimentacion-para-bebes-y-ninos/17-alimentos-que-atragantamientos-provocan-ninos-como-ofrecerlos-para-evitarlo"
response = requests.get(url).text
@juque
juque / cheatsheet.py
Created December 20, 2018 02:24 — forked from fuyufjh/cheatsheet.py
My Python Cheatsheet
Python Cheatsheet
=================
################################ Input & Output ###############################
name = input('please enter your name: ')
print('hello,', name)
ageStr = input('please enter your age: ')
age = int(ageStr)
@juque
juque / a.rb
Created November 13, 2018 18:47
<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlso
ap.org/soap/envelope/"><S:Body><ns2:emisionResponse xmlns:ns2="http://cls.DTEIntegrado/"><return><resultado>true</resultado><sRetorno>&lt;Resultado&gt;&lt;Folio&gt;148&lt
;/Folio&gt;&lt;TipoDTE&gt;39&lt;/TipoDTE&gt;&lt;PDF&gt;PDF No disponible.&lt;/PDF&gt;&lt;/Resultado&gt;</sRetorno></return></ns2:emisionResponse></S:Body></S:Envelope>
SANTIAGO
Aldea Nativa: Av. Tobalaba 1799, Providencia / Av. Manquehue 1960, Vitacura.
La peluquerida: Martín Alonso Pinzón 7325, Las Condes.
Lindas y Lunáticas: Av. Irarrázabal 3050, Ñuñoa.
Rustic Shop: Av. José Pedro Alessandri 821 local 6, Ñuñoa.
commerce_code
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
date,topic,scope,user_name,app_name,info,changes
2017-12-13T14:38:43Z,products.created,:,Soc. Comercial alto Rep.,,"id, created_on, updated_on, name, url, theme_name, per_page, subdomain, post_quote_option, description, custom_header, custom_footer, custom_order_msg, critical_stock_active, critical_stock_amount, critical_stock_mode, has_address_fields, has_order_address, locale, assets_count, products_count, logo_file_name, logo_content_type, logo_file_size, logo_updated_at, currency_code, account_id, analytics_id, default_products_order, followup_after, custom_conversion_code, onboarding_finished, sitemap_built_at","{""id""=>[646, 191861], ""created_on""=>[""2013-03-29T12:37:29.000Z"", ""2017-12-13T14:38:42.000Z""], ""updated_on""=>[""2017-12-12T04:43:19.000Z"", ""2017-12-13T14:38:42.000Z""], ""name""=>[""Coolkids "", nil], ""url""=>[""www.coolkids.cl"", nil], ""theme_name""=>[""base"", nil], ""per_page""=>[10, nil], ""subdomain""=>[""coolkids"", nil], ""post_quote_option""=>[0, nil], ""description""=>[""Par