Skip to content

Instantly share code, notes, and snippets.


Luis Porras lporras

View GitHub Profile
lporras / CSV
Last active Mar 11, 2020
CSV JSON Example
View CSV
  { id: "1", name: "luis", email: ""},
  { id: "2", name: "juan", email: ""}
lporras /
Created Oct 3, 2019
Desarrollador Full-Stack Ruby on Rails Webdox

Nombre empresa: Webdox

Puesto Ofrecido: Desarrollador Full-Stack

Perfil Requerido:

Buscamos desarrolladores Web que cumplan con los sgtes requisitos:

  • Al menos 2 años de experiencia.
  • Experiencia en Ruby on Rails.
  • Familiarizado con librerías y frameworks de desarrollo Frontend (React, Vue, Angular).

Easy steps for CPU profiling a Rails app

  1. add ruby-prof to your gemfile (
  2. grab kcachegrind or qcachegrind (brew install qcachegrind graphviz on os x)
  3. plop development_profiler.rb in lib in your app
  4. wrap your questionable code in a prof block
  5. open the file in qcachegrind
lporras / fetch-chunked.js
Created Jul 5, 2019 — forked from jfsiii/fetch-chunked.js
Quick example of using fetch to parse a chunked response
View fetch-chunked.js
var chunkedUrl = '';
function onChunkedResponseComplete(result) {
console.log('all done!', result)
View Gedeon-Privacy-Policy.html
<h2>Privacy Policy</h2>
<p>ICI-Santiago built the Gedeon app as a open source app. This SERVICE is provided by ICI-Santiago at no cost and is intended
for use as is.</p>
<p>This page is used to inform website visitors regarding our policies with the collection, use, and
disclosure of Personal Information if anyone decided to use our Service.</p>
<p>If you choose to use our Service, then you agree to the collection and use of information in
relation with this policy. The Personal Information that we collect are used for providing and
improving the Service. We will not use or share your information with anyone except as described
lporras / logstash_example.conf
Last active May 3, 2019
example logstash 1
View logstash_example.conf
input {
file {
path => "/Users/luisalfredoporraspaez/apps/elk_course/datos.json"
start_position => "beginning"
codec => "json"
filter {
mutate {
View Slack-Themes.txt
Noders Theme
Webdox Theme
lporras / GetTweets_GraphQL.json
Created Jan 2, 2019
Get Tweets with GraphQL
View GetTweets_GraphQL.json
query {
twitter {
ReactTweets: search(q: "ReactJs") {
GraphQLTweets: search(q: "GraphQL") {
JavascriptTweets: search(q: "Javascript") {
lporras / dependable_dropdown_with_macros.rb
Created Jan 23, 2018
dependable dropdown with macros
View dependable_dropdown_with_macros.rb
require 'write_xlsx'
#workbook ='write_xlsx_example.xlsx')
workbook ='write_xlsx_example.xlsm')
dropdownSheet = workbook.add_worksheet('DropDown Values')
dropdownSheet.add_table('A1:A2', {
data: [