This file contains hidden or 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
public class MyFirebaseMessagingService extends FirebaseMessagingService { | |
private static final String TAG = MyFirebaseMessagingService.class.getSimpleName(); | |
private NotificationUtil notificationUtil; | |
@Override | |
public void onMessageReceived(RemoteMessage remoteMessage) { | |
Log.e(TAG, "From: " + remoteMessage.getFrom()); |
This file contains hidden or 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
public class NotificationUtil { | |
private static String TAG = NotificationUtil.class.getSimpleName(); | |
private Context mContext; | |
public NotificationUtil(Context mContext) { | |
this.mContext = mContext; | |
} |
This file contains hidden or 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
# Configuration file for the Nim Compiler. | |
# (c) 2017 Andreas Rumpf | |
# Feel free to edit the default values as you need. | |
# You may set environment variables with | |
# @putenv "key" "val" | |
# Environment variables can be accessed like so: | |
# gcc.path %= "$CC_PATH" |
This file contains hidden or 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, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
import { StickyContainer, Sticky } from 'react-sticky'; | |
class App extends React.Component { | |
render() { | |
return ( | |
<StickyContainer> | |
{/* Other elements can be in between `StickyContainer` and `Sticky`, |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="jquery-3.3.1.min.js"></script> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
margin: 0; | |
font-family: Arial; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="jquery-3.3.1.min.js"></script> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
margin: 0; | |
font-family: Arial; |
This file contains hidden or 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, { Component } from 'react'; | |
import './App.css'; | |
let lastScrollY = 0; | |
class StickyBar extends Component { | |
render(){ | |
return ( | |
<div> | |
<button type="button">Button 1</button> |
This file contains hidden or 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 android.content.Intent; | |
import android.support.annotation.Nullable; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import com.google.zxing.integration.android.IntentIntegrator; | |
import com.google.zxing.integration.android.IntentResult; | |
public class ScanActivity extends AppCompatActivity { |
This file contains hidden or 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 android.Manifest | |
import android.content.Context | |
import android.location.Location | |
import android.os.Build | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import android.support.v4.app.ActivityCompat | |
import android.widget.Toast | |
import com.google.android.gms.maps.CameraUpdateFactory |
This file contains hidden or 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.anta40.app.locationtest | |
import android.Manifest | |
import android.content.Context | |
import android.content.DialogInterface | |
import android.content.Intent | |
import android.content.pm.PackageManager | |
import android.location.Location | |
import android.location.LocationManager | |
import android.support.v7.app.AppCompatActivity |