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
func trackSomeEvent(property1: String, property2: String){ | |
SEGAnalytics.shared().track(someEvent, properties: [ | |
"property1": property1, | |
"property2": property2 | |
]) | |
} |
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
SEGAnalytics.shared().track("myEvent", properties: [ | |
"property1": "value 1", | |
"property2": "value 2" | |
]) |
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
// | |
// AnalyticsSegmentIOPublisher.swift | |
// DropShift | |
// | |
// Created by Drew Beaupre on 2016-10-03. | |
// Copyright © 2016 drew.beaupre. All rights reserved. | |
// | |
import Foundation | |
import Analytics |
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
// | |
// AnalyticsNotificationSubscriber.swift | |
// DropShift | |
// | |
// Created by Drew Beaupre on 2016-10-03. | |
// Copyright © 2016 drew.beaupre. All rights reserved. | |
// | |
import Foundation |
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
var async = require('async'); | |
var AWS = require('aws-sdk'); | |
AWS.config.update({region:'us-east-1'}); | |
var request = require('request'); | |
var s3 = new AWS.S3({ apiVersion: '2006-03-01' }); | |
var sns = new AWS.SNS(); | |
var new_upload_arn = "arn:aws:sns:us-east-1:346805855669:vuedating_new_presenece"; | |
//Lambda entry point |
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 Foundation | |
import AWSS3 | |
//A sample struct to define the parameters to encode and send to the | |
//server to be executed along with your upload | |
struct FileUploadParameters{ | |
//label for the encoded name |
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
/* | |
This was a coding challenge in which I had 2 hours to analyze the | |
requirements (comments at bottom of document) and implement as much | |
functionality as I could within the time limit. | |
The code is as-is and not modified in any way once the time limit | |
had expired. | |
Andrew Beaupre |