Skip to content

Instantly share code, notes, and snippets.

View raveeshbhalla's full-sized avatar
🤷‍♂️
Not particularly writing code anymore

Raveesh Bhalla raveeshbhalla

🤷‍♂️
Not particularly writing code anymore
View GitHub Profile
@raveeshbhalla
raveeshbhalla / Logcat
Created September 21, 2014 21:57
Google Fit API
09-22 03:18:34.416 27708-27708/app.fitrank I/MainActivity﹕ Connecting...
09-22 03:18:34.447 27708-27708/app.fitrank I/am_on_resume_called﹕ [0,app.fitrank.MainActivity]
09-22 03:18:34.453 27708-27739/app.fitrank D/CanvasContext﹕ Render dirty regions requested: true
09-22 03:18:34.491 27708-27739/app.fitrank W/Adreno-GSL﹕ <ioctl_kgsl_device_getproperty:663>: mmap failed: errno 22 Invalid argument
09-22 03:18:34.491 27708-27739/app.fitrank I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:320>: EGL 1.4 QUALCOMM Build: I10246dbd022c719c705be805d5642cc8fdfbd2a2Date: 03/07/14
09-22 03:18:34.492 27708-27739/app.fitrank I/CanvasContext﹕ Initialized EGL, version 1.4
09-22 03:18:34.510 27708-27739/app.fitrank D/OpenGLRenderer﹕ Enabling debug mode 0
09-22 03:18:34.522 27708-27708/app.fitrank I/MainActivity﹕ Connected!
09-22 03:18:34.562 27708-27727/app.fitrank V/Fitness﹕ Received batch result
09-22 03:18:34.581 27708-27708/app.fitrank I/MainActivity﹕ Data type: com.google.step_count.delta
@raveeshbhalla
raveeshbhalla / NotiphiUtils
Created December 2, 2014 11:15
NotiphiUtils
package co.haptik.utils;
import android.content.Context;
import android.content.SharedPreferences;
import com.notikum.notifypassive.utils.NotiphiEventReceiver;
import org.json.JSONException;
import org.json.JSONObject;
@raveeshbhalla
raveeshbhalla / SearchActivity.java
Last active June 5, 2017 21:22
How to integrate Google Now into your app (for a quick demo, view: https://www.youtube.com/watch?v=_UBvl_edu1o)
/**
* Somewhere in your activity
*/
String query = "";
if (getIntent().getAction() != null && getIntent().getAction().equals("com.google.android.gms.actions.SEARCH_ACTION")) {
query = getIntent().getStringExtra(SearchManager.QUERY);
}
@raveeshbhalla
raveeshbhalla / Ola webapp Lighthouse
Created April 3, 2017 05:05
Ola webapp Lighthouse
<!--
Copyright 2016 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@raveeshbhalla
raveeshbhalla / query
Last active January 25, 2022 06:09
Graph Protocol ERC 1155 query
{
account(id: "0x740b42097755eb6f19604727fe799b4fd9499e14") {
id
ERC1155balances {
token {
id
identifier
uri
}
}