First pull request

Words
213
Reading
1 min
Listen
Play
7y

Hi friends,

Almost a week ago I announced that I was going to be working in a new project that will pretty much allow me to deep dive in some interesting areas of coding that I have not been very related with. The project initial post

This is my first pull request, the idea that everything that make it to master is what I will start publishing is key concept. After few attempts to sit and code and a very busy week with some things going on that required my focus and energy to solve I'm happy with the small progress made, I hope it will be eventually turn out to be some pretty cool stuff and project.

For now you can check out the github repo for the project development and please give me feedback if you would like to see more features or if you happen to have better ways of doing the same stuff, I welcome every improvement, feedback and improvement suggestion, at the end that's why I love sharing my code and reviewing pull requests.

rincon.png
Image grabbed with the below code, sadly it is a rainy afternoon and there is not much to see.

const turrialba = 'http://www.ovsicori.una.ac.cr/images/stories/camaras/liveturrialba/camara.jpg'
const poas = 'http://www.ovsicori.una.ac.cr/images/stories/camaras/livecraterpoas/camara.jpg'
const rincon = 'http://www.ovsicori.una.ac.cr/images/stories/camaras/liverincon/camara.jpg'

const fs = require('fs'),
  request = require('request')

const download = function(uri, filename, callback){
  request.head(uri, function(err, res){
    console.log('content-type:', res.headers['content-type'])
    console.log('content-length:', res.headers['content-length'])
    request(uri).pipe(fs.createWriteStream(filename)).on('close', callback)
  })
}

download(turrialba, 'images/turrialba.png', () =>{
  console.log('done')
})

download(poas, 'images/poas.png', () =>{
  console.log('done')
})

download(rincon, 'images/rincon.png', () =>{
  console.log('done')
})

raserrano@raserrano - Developer

kedjom-keku.jpg
kedjom-keku@kedjom-kekuConservation Association
KK-icon-plant-tree-Green-outline.png
treeplanter@treeplanterFund-raising upvoting bot
FFF-logo-bw.png
forestfriendly@forestfriendlyWater Saving bees

pal-sig-anim-trans

First pull request | Ecency