Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Working from home

Richard Leandro richardleandro1

:octocat:
Working from home
View GitHub Profile
@richardleandro1
richardleandro1 / .vimrc
Created Mar 21, 2018
initial configuration vimrc
View .vimrc
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Author:
" Moonhead
"
" Version:
" 1.0 - 01/20/2014
" 1.1 - 10/10/2014
"
" Raw_Version:
" http://pastebin.com/u/Moonhead
@richardleandro1
richardleandro1 / include_list_viewpager.xml
Created Sep 11, 2017 — forked from iPaulPro/include_list_viewpager.xml
CollapsingToolbarLayout with TabLayout
View include_list_viewpager.xml
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2015 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
View MainActivity.java
class MainActivity extends Activity {
// mEntries in this case is just an ArrayList store
private ArrayList<String> mEntries;
// ...
// Fetch method
private void fetch(RequestQueue requestQueue) {
JsonArrayRequest request = new JsonArrayRequest("http://example.com/feed.json",
new Response.Listener<JSONArray>() {