Skip to content

Instantly share code, notes, and snippets.

View kamaravichow's full-sized avatar
🦉
Can't sleep

Aravind Chowdary kamaravichow

🦉
Can't sleep
View GitHub Profile
@kamaravichow
kamaravichow / QRscanning(zxing).java
Last active March 21, 2020 01:35
QR-scanning.java
package com.aravindchowdary.qrplus;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
@kamaravichow
kamaravichow / ads_adapter.java
Created July 6, 2020 05:23
Ads in recycler view
package com.aravi.popularly.adapter;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Paint;
import android.net.Uri;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
@kamaravichow
kamaravichow / lucky-find-repo.json
Last active March 24, 2021 10:58
List of activities for LuckyFind App
[
{
"title": "Lite Mode",
"description": "Bigger icons, large text, less visual clutter",
"package_name": "com.xiaomi.misettings",
"activity_name": "com.xiaomi.easymode.EasyModeActivity"
},
{
"title": "Anti-Flickering Mode",
"description": "Reduce Flickering & Eye strain in low light conditions",
function isValidUpdatedPost(){
let post = request.resource.data;
let hasMandatoryFeilds = post.keys().hasAny(['caption','timestamp','published']);
let isValid = post.content is string && post.content.size() > 2000;
return hasMandatoryFeilds && isValid;
}
function isLoggedIn(){
return request.auth != null;
}
function hasAnyRole(roles) {
return isLoggedIn() && get(/databases/$(database)/documents/users/$(request.auth.uid)).data.roles.hasAny(roles)
}
{
"status": 200,
"message": "success",
"formats": [
{
"url":"",
"title" : "",
"resolution":"",
"thumbnail":"",
"duration":""
function isValidNewPost() {
let post = request.resource.data;
let isOwner = post.uid request.auth.uid;
let isNotFromPastOrFuture = request.time == request.resource.data.timestamp;
let hasMandatoryFields = post.keys().hasAll(['caption', 'uid', 'timestamp', 'published']);
return isOwner && hasMandatoryFields && isNotFromPastorFuture;
}
import 'package:flutter/material.dart';
import 'package:flutter_blocks_site/pages/side_bar.dart';
class HomePage extends StatefulWidget {
static GlobalKey<ScaffoldState> scaffoldKey = GlobalKey();
const HomePage({Key? key}) : super(key: key);
@override
_HomePageState createState() => _HomePageState();
}
@kamaravichow
kamaravichow / CircularProgressView.swift
Created March 7, 2022 17:13
iOS version of gradient circular progress bar SwiftUI
import SwiftUI
struct CircularProgressView: View {
var progress = 10.0
var body: some View {
ZStack {