Skip to content

Instantly share code, notes, and snippets.

View Bruno125's full-sized avatar

Bruno Aybar Bruno125

View GitHub Profile
@Bruno125
Bruno125 / MainActivity.java
Last active August 4, 2017 04:28
Java Activity
package com.example.pack.two;
// some imports
import com.example.package.one.MyClass;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@Bruno125
Bruno125 / MyClass.java
Last active August 4, 2017 04:28
Simple class with custom listener
package com.example.pack.one;
public class MyClass {
interface Listener{
void foo();
}
private Listener mListener;
@Bruno125
Bruno125 / google-services.json
Last active April 6, 2017 01:53
Demo google-services.json for https://github.com/Bruno125/Unofficial-Ups . It's enough to make the project compile (despite the "REMOVED" stuff)
{
"project_info": {
"project_number": "**REMOVED**",
"firebase_url": "**REMOVED**",
"project_id": "unofficial-upc",
"storage_bucket": "unofficial-upc.appspot.com"
},
"client": [
{
"client_info": {
@Bruno125
Bruno125 / appconfig.properties
Created April 4, 2017 14:33
Demo app configs properties file
UPC_REST_URL="https://www.appdemo.test.something"
AMPLITUDE_KEY="abc123"
FABRIC_ID=abc123 #<---(without double quotes)
FACEBOOK_ID="abc123"
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Privacy Policy</title> <style>body{font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; padding:1em;}</style></head> <body><h2>Privacy Policy</h2> <p> [Developer name or Company name] built the uCalc app as [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Developer name or Company name] [at no cost] and is intended for use as is. </p> <p>This page is used to inform website visitors regarding [my|our] policies with the collection, use, and disclosure of Personal Information if anyone decided to use [my|our] Service. </p> <p>If you choose to use [my|our] Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that [I | we] collect is used for providing and improving the Service. [I | we] will not use or share your information with anyone except as described in this Privacy Policy. </p> <p>