Skip to content

Instantly share code, notes, and snippets.

View arnabkumarroy's full-sized avatar
👨‍🎓
happy

ARNAB KUMAR ROY arnabkumarroy

👨‍🎓
happy
View GitHub Profile
@arnabkumarroy
arnabkumarroy / gitcheats.txt
Created January 19, 2018 01:53 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# get a list of all commit messages for a repo
git log --pretty=format:'%s'
# push changes to an empty git repository for the first time
git push --set-upstream origin master
# delete first 10 branches of remote excluding master
@arnabkumarroy
arnabkumarroy / Option A
Created April 21, 2017 23:58 — forked from anonymous/Option A
3 options for the layout of an activity for a quiz question
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
@arnabkumarroy
arnabkumarroy / activity_main.xml
Created April 8, 2017 18:05 — forked from anonymous/activity_main.xml
RelativeLayout XML for Udacity quiz question
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<TextView
android:text="I’m in this corner"
android:layout_height="wrap_content"
android:layout_width="wrap_content"