Skip to content

Instantly share code, notes, and snippets.

View neel1998's full-sized avatar

Neel Trivedi neel1998

View GitHub Profile
@neel1998
neel1998 / a.html
Created January 24, 2020 10:24
Counter JS
<!DOCTYPE html>
<html>
<head>
<script>
function counter(){
var cText = document.getElementById("demo");
var count = parseInt(cText.innerHTML);
count = count + 1;
document.getElementById("demo").innerHTML = count;
}
@neel1998
neel1998 / neel1998_gsoc19.md
Last active February 13, 2020 19:48
GSoc 2019 Work Product - Neel Trivedi

Google Sumer Of Code 2019 Work product summary

Student Name:

Neel Trivedi (@neel1998)

Organization:

@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';
@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);
}
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)

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.

@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,
@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
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
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,