Skip to content

Instantly share code, notes, and snippets.

View Gperez88's full-sized avatar
🏠
Working from home

Gabriel Perez Gperez88

🏠
Working from home
  • Dominican Republic
View GitHub Profile
@Gperez88
Gperez88 / PushNotifications.php
Created September 8, 2016 17:33 — forked from joashp/PushNotifications.php
Simple PHP script to send Android Push Notification, iOS Push Notification and Windows Phone 8 Push Notification
<?php
// Server file
class PushNotifications {
// (Android)API access key from Google API's Console.
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI';
// (iOS) Private key's passphrase.
private static $passphrase = 'joashp';
// (Windows Phone 8) The name of our push channel.
private static $channelName = "joashp";
@Gperez88
Gperez88 / pre-push
Created December 29, 2019 20:38 — forked from miquelbeltran/pre-push
Flutter pre-push hook that runs analyze and test
#!/bin/sh
# To use add to `.git/hooks/`
# Should be named `pre-push`
# Make executable with `chmod +x`
# stash any unstaged changes
git stash -q --keep-index
# run Flutter analyze + test
flutter analyze
@Gperez88
Gperez88 / pre-push
Created December 29, 2019 20:38 — forked from miquelbeltran/pre-push
Flutter pre-push hook that runs analyze and test
#!/bin/sh
# To use add to `.git/hooks/`
# Should be named `pre-push`
# Make executable with `chmod +x`
# stash any unstaged changes
git stash -q --keep-index
# run Flutter analyze + test
flutter analyze
@Gperez88
Gperez88 / firebase_storage_image.dart
Created May 25, 2020 05:36 — forked from jeroen-meijer/firebase_storage_image.dart
A Flutter widget that handles and shows an image downloaded from a Firebase Storage document.
import 'package:cached_network_image/cached_network_image.dart';
import 'package:firebase_storage/firebase_storage.dart';
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';
import '../../../injection_container.dart' as di;
enum ImageDownloadState {
Idle,
GettingReference,
package com.t2r2.volleyexample
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.widget.Button
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
import com.android.volley.Response
import 'package:flutter/material.dart';
class GoogleMapsClonePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: <Widget>[
CustomGoogleMap(),
CustomHeader(),