Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
Focusing

Luis Porras lporras

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

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).
View ProfilingGuide.md

Easy steps for CPU profiling a Rails app

  1. add ruby-prof to your gemfile (https://github.com/ruby-prof/ruby-prof)
  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
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 = 'https://jigsaw.w3.org/HTTP/ChunkedScript';
fetch(chunkedUrl)
.then(processChunkedResponse)
.then(onChunkedResponseComplete)
.catch(onChunkedResponseError)
;
function onChunkedResponseComplete(result) {
console.log('all done!', result)
}
View Gedeon-Privacy-Policy.html
<html>
<body>
<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
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
#2d2d2d,#2D2D2D,#5d8f3c,#FFFFFF,#5D8F3C,#FFFFFF,#82CD27,#82CD27
Webdox Theme
#006db5,#01558c,#ffffff,#006DB5,#01558C,#FFFFFF,#ffffff,#EB4D5C
@lporras
lporras / GetTweets_GraphQL.json
Created Jan 2, 2019
Get Tweets with GraphQL
View GetTweets_GraphQL.json
query {
twitter {
ReactTweets: search(q: "ReactJs") {
...camposTweet
}
GraphQLTweets: search(q: "GraphQL") {
...camposTweet
created_at
}
JavascriptTweets: search(q: "Javascript") {
@lporras
lporras / dependable_dropdown_with_macros.rb
Created Jan 23, 2018
dependable dropdown with macros
View dependable_dropdown_with_macros.rb
require 'write_xlsx'
#workbook = WriteXLSX.new('write_xlsx_example.xlsx')
workbook = WriteXLSX.new('write_xlsx_example.xlsm')
workbook.add_vba_project('./vbaProject.bin')
dropdownSheet = workbook.add_worksheet('DropDown Values')
dropdownSheet.add_table('A1:A2', {
data: [
['HOMBRES']