Skip to content

Instantly share code, notes, and snippets.

@harisris
harisris / file_download_progressbar.py
Created January 5, 2017 09:50 — forked from somada141/file_download_progressbar.py
File download & progressbar with Python's urllib2 #python #fileIO #os #web #requests #urllib
# source:
# http://stackoverflow.com/questions/5783517/downloading-progress-bar-urllib2-python
import urllib2, sys
def chunk_report(bytes_so_far, chunk_size, total_size):
percent = float(bytes_so_far) / total_size
percent = round(percent*100, 2)
sys.stdout.write("Downloaded %d of %d bytes (%0.2f%%)\r" %
(bytes_so_far, total_size, percent))
//
// ViewController.m
// views3
//
// Created by Srihari Sridharan.
// Copyright (c) 2013 Srihari Sridharan. All rights reserved.
//
#import "ViewController.h"
//
// ViewController.h
// views3
//
// Created by Srihari Sridharan
// Copyright (c) 2013 Srihari Sridharan. All rights reserved.
//
#import <NinevehGL/NinevehGL.h>