Skip to content

Instantly share code, notes, and snippets.

View rajajawahar's full-sized avatar
🏠
Working from home

Raja Jawahar rajajawahar

🏠
Working from home
View GitHub Profile
//Other methods
def getGitHash() {
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}
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"
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
##Replace the below credentials with the Release keystore values.
keystorePath=''../Your KeyStore.jks
storePassword='StorePassword'
keyAlias=''Alias Name
keyPassword='Password'
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:
google-cloud-bigquery==0.31.0
google-auth-oauthlib==0.2.0
pytz==2018.3
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
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
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
//
// ViewController.swift
// eam360ar
//
// Created by Raja Jawahar on 04/03/19.
// Copyright © 2019 Raja Jawahar. All rights reserved.
//
import UIKit
import SceneKit