Skip to content

Instantly share code, notes, and snippets.

View briansalvattore's full-sized avatar

Brian Salvattore briansalvattore

View GitHub Profile
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical"
android:background="#FFBC61" >
<TextView
android:text="Brian Castillo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
public class HelloWorld {
private static final int TIMEOUT = 120;
private static final String BASE = "https://randomuser.me/";
public static void main(String[] args) {
System.out.println("Hello");
HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
package com.horses.vision.demo;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/title.department"
android:paddingLeft="5dp"
package com.horses.mediabrands.hipoapp.ui.task;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.util.Log;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import android.util.Log;
import android.view.View;
import java.util.List;
import codetail.graphics.drawables.DrawableHotspotTouch;
import android.annotation.SuppressLint;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import java.util.ArrayList;
protected fun setupDrawer() {
drawerToggle = object : ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.app_name, R.string.app_name) {}
drawerLayout?.addDrawerListener(drawerToggle as ActionBarDrawerToggle)
navigationView?.setNavigationItemSelectedListener { item ->
when (item.itemId) {
R.id.logout -> {
}
}
@briansalvattore
briansalvattore / api.js
Created March 16, 2018 22:42
Proxy to run Firebase Functions
'use strict';
const admin = require('firebase-admin');
module.exports = function (app) {
app.get('/api', function (req, res) {
res.json({ 'version': '0.1' })
});