Skip to content

Instantly share code, notes, and snippets.

View 2tanayk's full-sized avatar
💭
Hustling 🏃‍♂️

Tanay Kamath 2tanayk

💭
Hustling 🏃‍♂️
View GitHub Profile
@codinginflow
codinginflow / AlertReceiver.java
Created July 11, 2021 21:26
AlarmManager Tutorial
package com.example.application.alarmmanagerproject;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.NotificationCompat;
public class AlertReceiver extends BroadcastReceiver {
@Override
@codinginflow
codinginflow / AndroidManifest.xml
Created July 11, 2021 21:14
Foreground Service Tutorial
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.codinginflow.foregroundserviceexample">
<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
static int speedUp=[](){
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
return 0;
}();
class Solution {
public:
int ladderLength(string beginWord, string endWord, vector<string>& wordList) {
#include<bits/stdc++.h>
using namespace std;
#define V 7
#define pb push_back
unordered_map<int,vector<int>> adj;
void DFS(int u,vector<int>& disc,vector<int>& low,stack<int>& mystack,vector<bool>& presentInStack)
{
static int time = 0;
#include<bits/stdc++.h>
using namespace std;
struct edge{
int src,dst,wt;
};
int V,E;
void bellmanFord(vector<edge>& Edges)
{
@bradtraversy
bradtraversy / python_mysql.py
Last active August 5, 2023 12:47
Python & MySQL crash course for beginners
import mysql.connector
from mysql.connector import errorcode
config = {
'user': 'root',
'password': '',
'host': 'localhost',
'database': 'acme'
}
@HarshKapadia2
HarshKapadia2 / my_path.md
Last active November 19, 2021 07:06
My web dev path, projects and resources.
//#include <iostream>
#include<bits/stdc++.h>
using namespace std;
bool comparator(string first,string second)
{
string one = first+second;
string two = second+first;
int i=0;
@brescia123
brescia123 / ViewVisibilityExtensions.kt
Last active May 10, 2023 12:28
Useful Android Kotlin Extension functions to easily change the visibility of a View
/** Set the View visibility to VISIBLE and eventually animate the View alpha till 100% */
fun View.visible(animate: Boolean = true) {
if (animate) {
animate().alpha(1f).setDuration(300).setListener(object : AnimatorListenerAdapter() {
override fun onAnimationStart(animation: Animator) {
super.onAnimationStart(animation)
visibility = View.VISIBLE
}
})
} else {
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 28, 2024 04:01
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example