Skip to content

Instantly share code, notes, and snippets.

View piedcipher's full-sized avatar
🌻
You're the sunflower

Tirth piedcipher

🌻
You're the sunflower
  • 03:54 (UTC +05:30)
View GitHub Profile
@piedcipher
piedcipher / Android Sample - TestViewPagerWithFixedFooter.md
Created July 21, 2018 10:25 — forked from pdegand/Android Sample - TestViewPagerWithFixedFooter.md
Android Sample that contains a ViewPager with a fixed footer below it. The footer should disappear when the last Fragment of the ViewPager is shown.

TestViewPagerWithFixedFooter

See it in action on an Android 2.2 (API 8) emulator :

@piedcipher
piedcipher / gist:330026176a0c07ac2b20c283692654fe
Created May 12, 2018 20:49 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@piedcipher
piedcipher / clone_remote_branch.md
Created April 17, 2018 19:15 — forked from ff6347/clone_remote_branch.md
clone remote branch with git
@piedcipher
piedcipher / gist:e4bbfa6c0a091b3236521bd12d807d8a
Created February 5, 2018 15:50 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
/**
* This method displays the given price on the screen.
*/
private void displayPrice(int number) {
TextView priceTextView = (TextView) findViewById(R.id.price_text_view);
priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));
}
package com.example.android.justjava;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.widget.TextView;
/**
* This app displays an order form to order coffee.
*/
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="Guest List"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />