Skip to content

Instantly share code, notes, and snippets.

View rpandey1234's full-sized avatar
🎯
Helping engineers grow their careers

Rahul Pandey rpandey1234

🎯
Helping engineers grow their careers
View GitHub Profile
@rpandey1234
rpandey1234 / MapsSampleData.kt
Created December 16, 2019 10:43
Sample data for the Android Google Maps project
private fun generateSampleData(): List<UserMap> {
return listOf(
UserMap(
"Memories from University",
listOf(
Place("Branner Hall", "Best dorm at Stanford", 37.426, -122.163),
Place("Gates CS building", "Many long nights in this basement", 37.430, -122.173),
Place("Pinkberry", "First date with my wife", 37.444, -122.170)
)
),
@rpandey1234
rpandey1234 / README.md
Last active April 5, 2020 19:50
README template

Name of App Here

Your name here

Name of your app has some really cool funtionality which I am describing in this sentence.

Time spent: X hours spent in total

Functionality

@rpandey1234
rpandey1234 / gist:1e74b3dfe11fdf29f820085992de12d8
Created March 3, 2020 04:41
CS194A partner code review form
Your name: TODO
Your partner's name: TODO
Project name: TODO
What extensions did your partner complete?
TODO
What did you like about this project?
TODO
@rpandey1234
rpandey1234 / README.md
Created April 6, 2020 00:56
Tip Calculator README.md template

Tip Calculator

Your name here

Tippy computes the tip and total amount for a bill. The app uses the base amount and tip percentage to calculate the amount owed, and it also describes the quality of service based on the tip.

Time spent: X hours spent in total

Functionality

@rpandey1234
rpandey1234 / README.md
Created April 19, 2020 22:08
Google My Maps README template

My Maps

Your name here

My Maps displays a list of maps, each of which show user-defined markers with a title, description, and location. The user can also create a new map.

Time spent: X hours spent in total

Functionality

@rpandey1234
rpandey1234 / ASEditingShortcuts.csv
Created April 28, 2020 07:10
Android Studio Shortcuts: Code Editing
Description Windows/Linux Mac
Project quick fix Alt+Enter Option+Enter
Move cursor by words Alt+←/→ Option+←/→
Reformat code Control+Alt+L Command+Option+L
Comment/uncomment Control+/ Command+/
Autocomplete Tab for replacement/enter for full Tab for replacement/enter for full
Move code block up/down Alt+Shift+↑/↓ Option+Shift+↑/↓
Rename Shift+F6 Shift+F6
Select multiple occurrences Alt+J Control+G
@rpandey1234
rpandey1234 / ASNavigationShortcuts.csv
Created April 28, 2020 07:13
Android Studio navigation shortcuts
Description Windows/Linux Mac
Search everywhere Shift+Shift Shift+Shift
Open tool window Control+# Command+#
Close tool window Shift+Escape Shift+Escape
Open file Control+Shift+N Command+Shift+O
Jump to declaration Control+B Command+B
Recent files Control+E Command+E
Find usages Alt+F7 Option+F7
Navigate to place of last edit Control+[ or Control+] Command+[ or Command+]
@rpandey1234
rpandey1234 / ASEditingShortcuts2.csv
Created April 28, 2020 07:15
Android Studio Shortcuts: Code Editing++
Optimize imports Control+Alt+O Control+Option+O
Delete whole line Control+Y Command+Backspace
Duplicate line/selection Control+D Command+D
Show toolbar hint about params for a method call Control+P Command+P
Complete statement Control+Shift+Enter Command+Shift+Enter
Clipboard History Control+Shift+V Command+Shift+V
@rpandey1234
rpandey1234 / README.md
Created May 12, 2020 05:30
Yelp clone README template

Yelp Clone

Your name here

Yelp clone displays a list of search results from the Yelp API and displays the results in a scrollable list.

Time spent: X hours spent in total

Functionality

@rpandey1234
rpandey1234 / activity_main.xml
Created June 13, 2020 14:42
Layout file for the Magic 8 Ball Android app
<?xml version="1.0" encoding="utf-8"?>
<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:gravity="center_horizontal"
android:orientation="vertical"
tools:context=".MainActivity">
<TextView