Skip to content

Instantly share code, notes, and snippets.

View ostaptan's full-sized avatar

Ostap Tan ostaptan

View GitHub Profile
@ostaptan
ostaptan / README.md
Created February 12, 2021 15:15 — forked from barrysteyn/README.md
C/C++ Examples For Understanding

Introduction

These toy examples are for helping with understanding C/C++. There is an excellent C++ samples site which demonstrates many useful things.

@ostaptan
ostaptan / aws-multipartUpload.js
Created October 5, 2016 08:09 — forked from sevastos/aws-multipartUpload.js
Example AWS S3 Multipart Upload with aws-sdk for Node.js - Retries to upload failing parts
// Based on Glacier's example: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/examples.html#Amazon_Glacier__Multi-part_Upload
var fs = require('fs');
var AWS = require('aws-sdk');
AWS.config.loadFromPath('./aws-config.json');
var s3 = new AWS.S3();
// File
var fileName = '5.pdf';
var filePath = './' + fileName;
var fileKey = fileName;