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 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 |
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 plane = SCNPlane(width: imageAnchor.referenceImage.physicalSize.width, height: imageAnchor.referenceImage.physicalSize.height) | |
plane.firstMaterial?.diffuse.contents = UIColor(cgColor: CIColor.white as! CGColor) | |
let planeNode = SCNNode(geometry: plane) | |
planeNode.eulerAngles.x = - .pi/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
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
// | |
// ViewController.swift | |
// eam360ar | |
// | |
// Created by Raja Jawahar on 04/03/19. | |
// Copyright © 2019 Raja Jawahar. All rights reserved. | |
// | |
import UIKit | |
import SceneKit |
NewerOlder