This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"python.pythonPath": "/Users/allard/anaconda3/envs/ml/bin/python", | |
"terminal.integrated.inheritEnv": false, | |
"editor.suggestSelection": "first", | |
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", | |
"python.jediEnabled": false, | |
// "python.languageServer": "Microsoft", | |
"vsicons.dontShowNewVersionMessage": true, | |
"liveServer.settings.donotShowInfoMsg": true, | |
"files.exclude": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import time | |
from botocore.vendored import requests | |
from websocket_client import websocket | |
def lambda_handler(event, context): | |
sm_client = boto3.client('sagemaker') | |
notebook_instance_name = 'automate-nb' | |
url = sm_client.create_presigned_notebook_instance_url(NotebookInstanceName=notebook_instance_name)['AuthorizedUrl'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import "react-dropzone-uploader/dist/styles.css"; | |
import Dropzone from "react-dropzone-uploader"; | |
const Uploader = () => { | |
const axios = require("axios").default; | |
const API_ENDPOINT = <<YOUR_API_ENDPOINT>> | |
const handleChangeStatus = ({ meta, remove }, status) => { | |
console.log(status, meta); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AWS = require('aws-sdk') | |
AWS.config.update({ region: process.env.AWS_REGION }) | |
const s3 = new AWS.S3() | |
const uploadBucket = 'test-bucket-357' // Replace this value with your bucket name! | |
const URL_EXPIRATION_SECONDS = 30000 // Specify how long the pre-signed URL will be valid for | |
// Main Lambda entry point | |
exports.handler = async (event) => { | |
return await getUploadURL(event) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Implements a dictionary's functionality | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> //for malloc! | |
#include <ctype.h> | |
#include <string.h> | |
#include "dictionary.h" | |
// defining global variables |