Skip to content

Instantly share code, notes, and snippets.

@mathur
mathur / bixbegone_search
Last active November 1, 2017 22:44
string that BixBeGone searches for in android logs to catch the failed launch of bixby

Keybase proof

I hereby claim:

  • I am mathur on github.
  • I am rohan32 (https://keybase.io/rohan32) on keybase.
  • I have a public key whose fingerprint is 6E58 8064 9E90 466E 05E6 A038 357C 787C 327B 5CEB

To claim this, I am signing this object:

# encoding: utf-8
#!/usr/bin/env ruby
require 'net/http'
require 'net/https' # for ruby 1.8.x
begin
require 'json'
rescue LoadError
require File.expand_path("json_generator", File.dirname(__FILE__)) # for ruby 1.8.x
package com.rmathur.app.models;
public class Vector {
public double xComponent, yComponent;
public Vector() {
this.xComponent = 0;
this.yComponent = 0;
}
@mathur
mathur / raspberry_pi.xml
Last active December 18, 2015 01:09
Local Manifest for compiling CM9 for the Raspberry Pi. Place in .repo/local_manifests/
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="kernel/rpi/rpi" name="raspberrypi/linux" revision="rpi-3.6.y"/>
<project path="device/rpi/rpi" name="rohanmathur/android_device_rpi_rpi" revision="ics"/>
<remove-project name="CyanogenMod/android_frameworks_base" />
<project path="frameworks/base" name="rohanmathur/android_frameworks_base" revision="ics"/>
<remove-project name="CyanogenMod/android_build" />
<project path="build" name="rohanmathur/android_build" revision="ics"/>
/*
* AP(r) Computer Science GridWorld Case Study:
* Copyright(c) 2005-2006 Cay S. Horstmann (http://horstmann.com)
*
* This code is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@mathur
mathur / RMCircle
Created November 9, 2012 17:39
Java Math
/**
* Circle.java prints the area of a circle with two different radii
*
* @author Rohan Mathur
* @date 10/24/12
* @period 7
*/
import java.util.Scanner;
public class RMCircle