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 time | |
import analytics_from_gc | |
import json_parser | |
ANALYTICS_JSON = analytics_from_gc.initiate_analytics() | |
FILE_NAME = 'analyticsfiles/' + ('ANALYTICS_' + str(int(time.time()))).strip() | |
print("Current File Path:" + FILE_NAME) | |
json_parser.convert_from_json(ANALYTICS_JSON, FILE_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
from google.cloud import bigquery | |
import datetime | |
CLIENT = bigquery.Client.from_service_account_json( | |
"credentials/****.json") | |
DATA_SETS = list(CLIENT.list_datasets()) | |
print(DATA_SETS) |
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
//Other methods | |
def getGitHash() { | |
def stdout = new ByteArrayOutputStream() | |
exec { | |
commandLine 'git', 'rev-parse', '--short', 'HEAD' | |
standardOutput = stdout | |
} | |
return stdout.toString().trim() | |
} |
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
ext.deps = [:] | |
def versions = [:] | |
// Android Support Dependency Version | |
versions.support = "27.0.2" | |
//Android Other Support Dependency Version | |
versions.constraint_layout = "1.1.3" | |
versions.multidex = "1.0.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
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-android-extensions' | |
android { | |
compileSdkVersion 28 | |
defaultConfig { | |
applicationId "com.tarkalabs.basicdoings" | |
minSdkVersion 15 | |
targetSdkVersion 28 |
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
##Replace the below credentials with the Release keystore values. | |
keystorePath=''../Your KeyStore.jks | |
storePassword='StorePassword' | |
keyAlias=''Alias Name | |
keyPassword='Password' |
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 smtplib,ssl | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.base import MIMEBase | |
from email.mime.text import MIMEText | |
from email.utils import formatdate | |
from email import encoders | |
def send_mail(fromaddress,toaddress,subject,text,files): | |
# instance of MIMEMultipart |
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 datetime | |
import json | |
import datetime | |
import xlsxwriter | |
def flatten_user_json(userJson, userId): | |
print(userJson) | |
prefix = "user_property_" | |
flat_json = {} | |
for individual_json in userJson: |
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
google-cloud-bigquery==0.31.0 | |
google-auth-oauthlib==0.2.0 | |
pytz==2018.3 |
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 renderer(_ renderer: SCNSceneRenderer, nodeFor anchor: ARAnchor) -> SCNNode? { | |
let node = SCNNode() | |
if let imageAnchor = anchor as? ARImageAnchor { | |
let videoNode = SKVideoNode(fileNamed: "eam.mp4") | |
videoNode.play() | |
let videoScene = SKScene(size: CGSize(width: 480, height: 360)) | |
videoNode.position = CGPoint(x: videoScene.size.width / 2, y: videoScene.size.height / 2) | |
videoNode.yScale = -1.0 |
NewerOlder