Skip to content

Instantly share code, notes, and snippets.

View mesmerx's full-sized avatar

Lucas de Paula Ferreira mesmerx

View GitHub Profile
@mesmerx
mesmerx / scrapper.js
Created July 4, 2016 15:53
tentativas de scrapper
var http = require('follow-redirects').http;
var body=""
link=""
function links(si) {
var request = http.get(si, function(response){
response.on('data', function (chunk) {
body += chunk;
});
response.on('end',function (){
@mesmerx
mesmerx / resposta.py
Last active August 1, 2020 02:31
codewars
from datetime import timedelta
def format_duration(seconds):
if not seconds:
return 'now'
timedelta_format = f"{timedelta(seconds=seconds)}"
hours, minutes, seconds = timedelta_format.split(":")
dict_of_time = {'hours': hours,
'minutes': minutes,