Skip to content

Instantly share code, notes, and snippets.

View andreimarks's full-sized avatar

Andrei Marks andreimarks

View GitHub Profile
@andreimarks
andreimarks / License.txt
Created June 29, 2020 20:53
Unity Built-In Shaders License
Copyright (c) 2016 Unity Technologies
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@andreimarks
andreimarks / License.md
Created June 29, 2020 17:03
Unity Companion Package License v1.0

Unity Companion Package License v1.0 ("License")

Copyright © 2017 Unity Technologies ApS ("Unity")

Unity hereby grants to you a worldwide, non-exclusive, no-charge, and royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute the software that is made available with this License ("Software"), subject to the following terms and conditions:

  1. Unity Companion Use Only. Exercise of the license granted herein is limited to exercise for the creation, use, and/or distribution of applications, software, or other content pursuant to a valid Unity development engine software license ("Engine License"). That means while use of the Software is not limited to use in the software licensed under the Engine License, the Software may not be used for any purpose other than the creation, use, and/or distribution of Engine License-dependent applications, software, or other content. No other exercise of the license grante
void tagEvent(String eventName, Map<String, String> attributes, long customerValueIncrease)
{
if (TextUtils.isEmpty(eventName))
{
throw new IllegalArgumentException("event cannot be null or empty");
}
if (attributes != null)
{
@andreimarks
andreimarks / PlayerPrefsTransactionRates.txt
Created September 25, 2017 17:03
Final Player Prefs Transaction Rates Per Key Per Frame
Life Regen Timer : 0.03250271
ACTIVE_NOTIFICATION_KEY : 0.0227519
TIME_GATEDback_to_map_call : 0.01950162
TicketRegenTimer : 0.01950162
TicketsAvailable : 0.01950162
Lives Remaining : 0.0184182
Expedition Bonus Moves : 0.01516793
JanusDataRetrievedAt : 0.01300108
Bonus Ticket Quantity : 0.009750812
CACHE_BundlePromotionCache : 0.008667389
2017-09-21 18:57:09.870: HASKEY Bonus Moves Quantity True
2017-09-21 18:57:09.870: ENCRYPTEDGET Bonus Moves Quantity 0
2017-09-21 18:57:10.590: SET savekey {"type":0,"worldNumber":22,"levelIndex":5,"globalLevelNumber":2558006,"moves":15,"initialMoves":16,"attemptsBeforeRebalance":-1,"movesToAddForRebalance":0,"HUDInfo":{"options":15},"giftInfo":{"inventoryInfo":[],"popupTitle":"","popupMessage":"","popupMessage2":""},"levelIntent":3,"eventID":58,"width":7,"height":9,"excludedPowerUpTypes":[],"board":[{"dot":{"dotType":1,"colorType":1,"number":0},"tile":{"tileType":0,"hitPoints":0},"overlays":[],"mechanics":[]},{"dot":{"dotType":9,"colorType":6,"num
2017-09-21 18:57:10.591: ENCRYPTEDSET PlayerCurrentEventRunScore 0
2017-09-21 18:57:13.205: HASKEY Bonus Moves Quantity True
2017-09-21 18:57:13.205: HASKEY Bonus Moves Quantity True
2017-09-21 18:57:13.206: ENCRYPTEDGET Bonus Moves Quantity 0
2017-09-21 18:57:13.206: ENCRYPTEDSET Bonus Moves Quantity 0
2017-09-21 18:57:13.206: HASKEY Bonus Moves Quantity True
2017
TicketsAvailable : 0.01642036
Life Regen Timer : 0.01543514
Expedition Bonus Moves : 0.01247947
: 0.01116585
TicketRegenTimer : 0.01050903
Lives Remaining : 0.008866995
Bonus Moves Quantity : 0.008538588
TIME_GATEDback_to_map_call : 0.006568145
Attempts Level 2558006 : 0.005254515
Shuffler Quantity : 0.003612479
@andreimarks
andreimarks / KeyFrequency3
Created September 21, 2017 02:27
Post LifeManager, post PuzzleData, post FB connect.
Player Two Dots Id Key : 0.1072761
INTERPOLATED_TO_NEXT : 0.1021455
EventRunIDForTickets : 0.1016791
TicketsAvailable : 0.07742538
TicketRegenTimer : 0.0261194
Life Regen Timer : 0.01865672
Expedition Bonus Moves : 0.01492537
Lives Remaining : 0.01445896
TIME_GATEDback_to_map_call : 0.01352612
TIME_GATEDFacebookFriends : 0.01026119
@andreimarks
andreimarks / ConnectedPlayerLog2.txt
Created September 21, 2017 02:25
After removing LifeManager, PuzzleData, connecting to facebook.
09/21/2017 02:22:39: HASKEY EventRunIDForTickets True
09/21/2017 02:22:39: HASKEY EventRunIDForTickets True
09/21/2017 02:22:39: ENCRYPTEDGET EventRunIDForTickets 58
09/21/2017 02:22:39: HASKEY EventRunIDForTickets True
09/21/2017 02:22:39: HASKEY TicketRegenTimer False
09/21/2017 02:22:39: HASKEY TicketsAvailable True
09/21/2017 02:22:39: HASKEY TicketsAvailable True
09/21/2017 02:22:39: ENCRYPTEDGET TicketsAvailable 3
09/21/2017 02:22:40: HASKEY EventRunIDForTickets True
09/21/2017 02:22:40: HASKEY EventRunIDForTickets True
@andreimarks
andreimarks / TransactionLog2.txt
Created September 21, 2017 01:35
Transaction log example after LifeManager fixes.
09/20/2017 21:17:26: HASKEY Eraser Quantity False
09/20/2017 21:17:26: HASKEY Color Burst Quantity False
09/20/2017 21:17:26: HASKEY Sure Shot Quantity False
09/20/2017 21:17:26: HASKEY Bonus Life Quantity False
09/20/2017 21:17:26: HASKEY Bonus Life Quantity False
09/20/2017 21:17:26: HASKEY PlayerCompletedEvent False
09/20/2017 21:17:26: HASKEY Last_Cam_Pos True
09/20/2017 21:17:26: GET Last_Cam_Pos 299.9485
09/20/2017 21:17:26: HASKEY Previous_Scene_Name True
09/20/2017 21:17:26: GET Previous_Scene_Name Game
EventRunIDForTickets : 0.0808584
TicketsAvailable : 0.06112282
Bonus Moves Quantity : 0.0505844
Player Two Dots Id Key : 0.02088523
TicketRegenTimer : 0.02050201
Life Regen Timer : 0.01187967
Lives Remaining : 0.009771987
TIME_GATEDback_to_map_call : 0.007281088
Attempts Level 1 : 0.006897873
Bonus Life Quantity : 0.00479019