Skip to content

Instantly share code, notes, and snippets.

View maskaravivek's full-sized avatar
💭
Active!

Vivek Kumar Maskara maskaravivek

💭
Active!
View GitHub Profile
Model Overall Accuracy [%] F_1 Score [%]
No filtering/no masking 92.8 92.6
No filtering/with masking 94.2 93.9
With filtering/no masking 94.0 93.8
With filtering/with masking 94.4 94.1
| Column | Column | Column |
| ------ | ------ | ------ |
| | | |
| | | |
| | | |
const s3 = require('./config');
const bucketName = 'my-unique-bucket-name';
const params = {
Bucket: bucketName
};
s3.listObjects(params, (error, data) => {
if (error) {
const s3 = require('./config');
const bucketName = 'my-unique-bucket-name';
const filePath = './downloaded-file.jpg';
const params = {
Bucket: bucketName,
Key: 'file.jpg'
};
const s3 = require('./config');
const bucketName = 'my-unique-bucket-name';
const filePath = './path/to/file.jpg';
const fileContent = fs.readFileSync(filePath);
const params = {
Bucket: bucketName,
Key: 'file.jpg',
const s3 = require('./config');
const bucketName = 'my-unique-bucket-name';
s3.createBucket({ Bucket: bucketName }, (error, data) => {
if (error) {
console.error(error);
} else {
console.log(`Bucket ${bucketName} created successfully!`);
}
// config.js
const AWS = require('aws-sdk');
AWS.config.update({
accessKeyId: 'YOUR_ACCESS_KEY',
secretAccessKey: 'YOUR_SECRET_ACCESS_KEY'
});
module.exports = new AWS.S3();
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.