Skip to content

Instantly share code, notes, and snippets.

View neel1998's full-sized avatar

Neel Trivedi neel1998

View GitHub Profile
@neel1998
neel1998 / input.scss
Created September 6, 2023 12:54
Generated by SassMeister.com.
@mixin list-group-item-variant($state, $background, $color) {
.list-group-item-#{$state} {
color: $color;
background-color: $background;
@content
}
}
@include list-group-item-variant(success, '#ffffff', '#12345') {
@neel1998
neel1998 / input.scss
Created September 6, 2023 12:48
Generated by SassMeister.com.
@mixin list-group-item-variant($state, $background, $color) {
.list-group-item-#{$state} {
color: $color;
background-color: $background;
}
}
@include list-group-item-variant(success, '#ffffff', '#12345');
@neel1998
neel1998 / input.scss
Created March 7, 2023 06:57
Generated by SassMeister.com.
@use "sass:list";
// ------------------- Mixin-Start -------------------------
$logical-properties-map: (
margin-left: margin-inline-start,
padding-left: padding-inline-start,
border-left: border-inline-start,
border-left-color: border-inline-start-color,
border-left-style: border-inline-start-style,
border-left-width: border-inline-start-width,
@neel1998
neel1998 / input.scss
Created March 6, 2023 12:56
Generated by SassMeister.com.
@use "sass:list";
// ------------------- Mixin-Start -------------------------
$logical-properties-map: (
margin-left: margin-inline-start,
padding-left: padding-inline-start,
border-left: border-inline-start,
border-left-color: border-inline-start-color,
border-left-style: border-inline-start-style,
border-left-width: border-inline-start-width,
@neel1998
neel1998 / input.scss
Last active March 6, 2023 12:34
Generated by SassMeister.com.
@use "sass:list";
// ------------------- Mixin-Start -------------------------
$logical-properties-map: (
margin-left: margin-inline-start,
padding-left: padding-inline-start,
border-left: border-inline-start,
border-left-color: border-inline-start-color,
border-left-style: border-inline-start-style,
border-left-width: border-inline-start-width,
@neel1998
neel1998 / input.scss
Last active March 6, 2023 12:19
Generated by SassMeister.com.
@use "sass:list";
// ------------------- Mixin-Start -------------------------
$logical-properties-map: (
margin-left: margin-inline-start,
padding-left: padding-inline-start,
border-left: border-inline-start,
border-left-color: border-inline-start-color,
border-left-style: border-inline-start-style,
border-left-width: border-inline-start-width,

Privacy Policy

myMart built the myMart app as a Free app. This SERVICE is provided by myMart at no cost and is intended for use as is.

This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.

If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at myMart unless otherwise defined in this Privacy Policy.

public class NotificationService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
super.onMessageReceived(remoteMessage);
notify(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());
}
public void notify(String title, String message) {
NotificationCompat.Builder builder = new NotificationCompat.Builder(this, "notification_channel")
.setSmallIcon(R.drawable.ic_launcher_background)
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
NotificationChannel channel = new NotificationChannel("notification_channel", "notification_channel", NotificationManager.IMPORTANCE_DEFAULT);
NotificationManager manager = getSystemService(NotificationManager.class);
manager.createNotificationChannel(channel);
}
@neel1998
neel1998 / server.js
Last active May 23, 2020 11:41
FCM_medium_article
var admin = require("firebase-admin");
var serviceAccount = require(PATH_TO_SERVICE_ACCOUNT_PRIVATE_KEY_JSON_FILE);
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: "https://prismappfcm.firebaseio.com"
});
var topic = 'general';