This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Exits the terminal | |
alias e=exit | |
# Clears the window so you can see what's going on! | |
alias c=clear | |
# Uninstall your current app. | |
alias u='adb uninstall com.aniket' | |
# Clear data for the current app. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Two medium length dark green chilis. | |
1 cup rice, 2 cups dal. | |
1 tsp: mustard seeds, asafoetida, cumin. | |
1 - 2 cloves of garlic | |
1 tbs or so of turmeric | |
Optional: | |
1 large tomato | |
1 small onion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.TimeUnit; | |
public class ExerciseJava { | |
private long duration; | |
public void setDuration(long duration, TimeUnit unit) { | |
this.duration = TimeUnit.MILLISECONDS.convert(duration, unit); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
// Load dependencies | |
buildscript { | |
ext.kotlin_version = "1.3.0" | |
repositories { | |
google() | |
jcenter() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aniketkadam.premail.base.notifications | |
import android.app.NotificationManager | |
import androidx.annotation.StringRes | |
import com.aniketkadam.premail.R | |
enum class ChannelIds( | |
@StringRes val channelNameRes: Int, @StringRes val channelDescriptionRes: Int, | |
val importance: Int | |
) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aniketkadam.wifimanager.androidhelpers | |
import android.content.BroadcastReceiver | |
import android.content.Context | |
import android.content.Intent | |
import android.content.IntentFilter | |
import io.reactivex.Observable | |
import io.reactivex.ObservableEmitter | |
import io.reactivex.ObservableOnSubscribe | |
import io.reactivex.disposables.Disposable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
companion object { | |
/** | |
* Creates an intent for the TaskEditor state machine. | |
* | |
* Utility function to cut down on boilerplate. | |
*/ | |
inline fun <reified S : TaskEditorState> editorIntent( | |
crossinline block: S.() -> TaskEditorState | |
): Intent<TaskEditorState> { | |
return intent { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
¯\_(ツ)_/¯ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aniketkadam.sharevideoshortcut | |
import org.junit.rules.TestWatcher | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.ExperimentalCoroutinesApi | |
import kotlinx.coroutines.test.TestCoroutineDispatcher | |
import kotlinx.coroutines.test.resetMain | |
import kotlinx.coroutines.test.setMain | |
import org.junit.runner.Description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import firebase from 'firebase/app'; | |
import { FormValidation } from '../../constants'; | |
class Document extends React.Component { | |
constructor(props) { | |
super(props); | |
this.db = firebase.firestore(); | |
this.db.settings({ timestampsInSnapshots: true }); | |
this.willSubscribe = this.props.path != null; |
OlderNewer