Skip to content

Instantly share code, notes, and snippets.

View CharlesAE's full-sized avatar
🎯
Focusing

Charles E CharlesAE

🎯
Focusing
View GitHub Profile
@fleeser
fleeser / flutter_go_router_tab_bar.dart
Last active August 22, 2022 21:14
Flutter | CustomBottomNavigationBar with go_router
// WARNING
// Keep in mind that there are five button, but only four of them redirect to another screen,
// since the middle one is a button that triggers the BottomSheet to be shown.
// This is the basic GoRouter setup
GoRouter(
routes: <GoRoute>[
GoRoute(
path: '/:screenName(home|discover|notifications|profile)',
@vaibhavkumar049
vaibhavkumar049 / README.md
Created September 16, 2019 21:01 — forked from CodingDoug/README.md
Copying data from Firebase Realtime Database to a Google Sheet in real time via Cloud Functions
@CodingDoug
CodingDoug / README.md
Last active December 14, 2022 09:48
Realtime Database triggers with Cloud Functions for Firebase - source

Realtime Database triggers with Cloud Functions for Firebase - source

This gist contains the source code in my video series about Realtime Database triggers. You can watch the three parts here:

  1. Part 1 (intro, onCreate)
  2. Part 2 (onUpdate, infinite loops)
  3. Part 3 (onDelete, transactions)

index.ts contains the Cloud Functions code, and dialog.ts contains the script to run

@CodingDoug
CodingDoug / README.md
Last active December 17, 2022 10:23
Copying data from Firebase Realtime Database to a Google Sheet in real time via Cloud Functions

A handful of BigQuery SQL queries that you can use to analyze your own Google Analytics for Firebase data. To find out more about how they work, check out our presentation from Cloud Next 2018 (Video link to be added soon)

Please note that these scripts have been updated to make sure of the new Firebase schema, which was rolled out to Analytics products in July of 2018.

Note that none of these scripts will work out of the box -- you'll need to update the values in brackets with the names of your actual datasets, and you'll most likely also need to replace the names of events and event properties with ones that are appropriate for your app.

The contents of this gist are licensed under the Apache License, version 2.0

@silviorp
silviorp / BaseActivity.java
Last active April 14, 2018 07:55
Base Activity providing ButterKnife binding, forcing layout Id register and abstracting showFragment call
// include package path here
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import butterknife.ButterKnife;
public abstract class BaseActivity extends AppCompatActivity {
@silviorp
silviorp / MainActivity.java
Last active April 14, 2018 07:54
Example of activity using CustosmBottomNavigationBar registering menu items and controlling the back stack
// include package path here
import android.support.v4.app.FragmentManager;
import android.widget.Toast;
import br.com.intelize.onhome.presenter.R;
import br.com.intelize.onhome.presenter.components.CustomBottomNavigationView;
import br.com.intelize.onhome.presenter.view.base.BaseActivity;
import br.com.intelize.onhome.presenter.view.fragment.BillsFragment;
import br.com.intelize.onhome.presenter.view.fragment.SettingsFragment;
@silviorp
silviorp / CustomBottomNavigationView.java
Last active April 14, 2018 07:55
This is an implementation of a custom BottomNavigationView that provides control over the Android Back Button
// include package path here
import android.content.Context;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.FragmentManager;
import android.util.AttributeSet;
import java.util.HashMap;
import java.util.Map;
@chrishannah
chrishannah / iOS Icon Sizes.md
Last active February 15, 2022 23:43
A list containing all the icon names and sizes for iOS and watchOS.

iOS 12 Icon Sizes

(Taken from Xcode 10)

iPhone

iPhone Notification (iOS 7-12) 20pt

  • 2x - 40px
  • 3x - 60px
import android.app.Activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;