Skip to content

Instantly share code, notes, and snippets.

@Ehesp
Ehesp / main.dart
Last active November 9, 2021 15:20
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: const FirebaseOptions(
apiKey: 'AIzaSyAHAsf51D0A407EklG1bs-5wA7EbyfNFg0',
@Ehesp
Ehesp / index.html
Last active April 12, 2021 07:56
Firebase Web SDK Scratch Pad
<!doctype html>
<html lang="en">
<body>
<script src="https://www.gstatic.com/firebasejs/8.3.3/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.3.3/firebase-database.js"></script>
<script>
// TODO: Replace the following with your app's Firebase project configuration
var firebaseConfig = {
@Ehesp
Ehesp / gcm.php
Created March 29, 2017 07:47
PHP GCM Test push script
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', '<< KEY >>' );
// Array of push tokens
$registrationIds = array("<< TOKEN 1>>", "<< TOKEN 2 >>");
// prep the bundle
@Ehesp
Ehesp / README.md
Created March 16, 2017 13:03
React Native ViewPager (Android + iOS with extras)

ViewPager

A ViewPager for Android & iOS. It also has handy features implemented to handle common use-case scenarios.

Basic Usage

const views = [
  <View><Text>View 1</Text></View>,
 View 2,
@Ehesp
Ehesp / gulpfile.js
Created April 24, 2015 12:04
Project quick start
var gulp = require('gulp'),
gulpif = require('gulp-if'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
autoprefixer = require('gulp-autoprefixer'),
flatten = require('gulp-flatten'),
usemin = require('gulp-usemin'),
jade = require('gulp-jade'),
minifyCss = require('gulp-minify-css'),
uglify = require('gulp-uglify'),
@Ehesp
Ehesp / body.less
Created January 27, 2015 15:01
Bootstrap / Angular / LESS / Jade - Quick Leftside Menu Dashbord
html, body {
height: 100%;
}
body {
font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
overflow-y: scroll;
}
@Ehesp
Ehesp / .bowerrc
Created September 16, 2014 12:03
Gulp Workflow Snippet
{
"directory" : "src/assets/components"
}
@Ehesp
Ehesp / ApiController.php
Last active August 29, 2015 14:01
Angular + Laravel POST Updating
<?php
/*
|--------------------------------------------------------------------------
| Api Controller
|--------------------------------------------------------------------------
|
| This controller handles the dynamic Api request construction from an
| AJAX only request (determined by the X-Requested-With header). The
| request uses the standard Api Facade, but requires a JSON payload in
@Ehesp
Ehesp / Api.php
Created April 26, 2014 19:24
Laravel 4 Api Request Class - Service Provider + Facade
<?php namespace Acme\Facades;
use Illuminate\Support\Facades\Facade;
class Api extends Facade {
/**
* Get the registered name of the component.
*
* @return string
@Ehesp
Ehesp / SteamLogin.php
Last active May 12, 2023 05:35
PHP Steam Login Script
<?php
/**
*
* Origin: http://forums.steampowered.com/forums/showthread.php?t=1430511
*
* @package Steam Community API
* @copyright (c) 2010 ichimonai.com
* @license http://opensource.org/licenses/mit-license.php The MIT License
*