This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAllUsersToListAccounts", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:ListAccountAliases", | |
"iam:GetAccountPasswordPolicy", | |
"iam:ListUsers", |
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"sts:AssumeRole" | |
], | |
"Resource": [ |
This file contains hidden or 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
'use strict'; | |
const connection = { | |
client: 'mysql', | |
connection: { | |
host : process.env.HOST, | |
user : process.env.USER, | |
password : process.env.PASSWORD, | |
database : process.env.DATABASE | |
}, | |
pool: { min: 1, max: 10 }, |
This file contains hidden or 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
package main | |
import ( | |
"net/http" | |
"github.com/labstack/echo" | |
) | |
func main() { | |
e := echo.New() | |
e.GET("v1/todo", func(c echo.Context) error { | |
return c.String(http.StatusOK, "Hello, World!") |
This file contains hidden or 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
package main | |
import ( | |
"net/http" | |
"fmt" | |
"github.com/labstack/echo" | |
) | |
func main() { | |
e := echo.New() |
This file contains hidden or 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
enum adEvent { | |
case viewAdInt | |
case viewAdBanner | |
func getName() -> String { | |
switch self { | |
case .viewAdInt: | |
return "view_ad_int" | |
case .viewAdBanner: | |
return "view_ad_banner" | |
} |
This file contains hidden or 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
enum adType: Int { | |
case banner | |
case interstitial | |
func getName() -> String { | |
switch self { | |
case .banner: | |
return adEvent.getName(.viewAdBanner)() | |
case .interstitial: | |
return adEvent.getName(.viewAdInt)() |
This file contains hidden or 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
class AdAnalyticsModel { | |
func trackAd(typeOfAd: adType, adUnitId: String?) { | |
if let adId = adUnitId { | |
print("adUnitId ", adId) | |
} | |
print("adType \(typeOfAd.getName())") | |
} | |
} |
This file contains hidden or 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
AppsFlyerLib.getInstance().registerConversionListener(this, new AppsFlyerConversionListener() { | |
/* for deferred deep linking */ @Override | |
public void onConversionDataSuccess(Map<String, String> conversionData) { | |
for (String attrName : conversionData.keySet()) { | |
Log.d(AppsFlyerLib.LOG_TAG, "conversion_attribute: " + attrName + " = " + | |
conversionData.get(attrName)); | |
} | |
} | |
@Override |
This file contains hidden or 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
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate, AppsFlyerTrackerDelegate{ | |
// ... | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
// Override point for customization after application launch. | |
AppsFlyerTracker.shared().appsFlyerDevKey = "repLaceWithYourDevKeY" | |
AppsFlyerTracker.shared().appleAppID = "123456789" | |
// ... |
OlderNewer