Skip to content

Instantly share code, notes, and snippets.

View shivarajp's full-sized avatar
🚀

Shivaraj M Patil shivarajp

🚀
View GitHub Profile
package com.masai.mvvmapplication.data.local
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
@Dao
interface MyAgeDAO {
@Insert(onConflict = OnConflictStrategy.IGNORE)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shivarajp
shivarajp / githubprivatereposetup.md
Created November 4, 2017 16:53
Jenkins Github private repository credentials setup

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

get both the git and github plugin http://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin

@shivarajp
shivarajp / Recording.java
Last active January 16, 2023 02:33
Recording From Bluetooth Headset
package com.example.audiogain;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.media.AudioManager;