Skip to content

Instantly share code, notes, and snippets.

View rogergcc's full-sized avatar
🏠
Working from home

Roger Colquehuanca rogergcc

🏠
Working from home
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rogergcc
rogergcc / index.html
Last active August 12, 2020 23:37
Show drawn polygon area
<div id="map"></div>
<div class="calculation-box">
<p>Draw a polygon using the draw tools.</p>
<div id="calculated-area"></div>
</div>
@rogergcc
rogergcc / index.html
Created July 16, 2020 01:11
Restaurant Menu
<script src="https://use.typekit.net/iou1nsh.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<div class="menu-container">
<div class="container clearfix">
<div class="menu-intro fell">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="460px" height="8px" viewBox="0 0 460 8" enable-background="new 0 0 460 8" xml:space="preserve">
@rogergcc
rogergcc / dialog_complet_levels.xml
Last active July 2, 2020 21:30
Custom Layout for Dialog with Lottie Animations
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layoutRoot"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
@rogergcc
rogergcc / resources for Android Development.extension
Last active July 17, 2020 17:18
Resource for Android Development
Road
https://mindorks.com/android-app-development-online-course
Blogs
https://blog.mindorks.com/blogs/android
Kotlin
https://kotlinlang.org/docs/reference/basic-syntax.html
Tutorials
@rogergcc
rogergcc / index.haml
Created April 18, 2020 22:14
Settlers of Catan Game Tiles
.settlers
.row
.img-wrap
.tile.forest
%span.disc 11
.img-wrap
.tile.pasture
%span.disc 12
.img-wrap
.tile.fields
@rogergcc
rogergcc / BoundingBoxCameraActivity.java
Created December 27, 2019 03:03
Animate Camera with 2 location zoom
package com.mapbox.mapboxandroiddemo.examples.camera;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.widget.Toast;
import com.mapbox.geojson.Feature;
import com.mapbox.geojson.FeatureCollection;
import com.mapbox.geojson.Point;
@rogergcc
rogergcc / RickAndMortyRecyclerViewAdapter.java
Created November 2, 2019 02:57
complete adapter select favorites
/*
* Created by rogergcc
* Copyright Ⓒ 2019 . All rights reserved.
*/
package com.rogergcc.sharedpreferencefavorites.adapters;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView;
@rogergcc
rogergcc / RickAndMortyRecyclerViewAdapter.java
Created November 2, 2019 02:52
recycler adapter select favorites
holder.mname_character.setText(mValues.get(position).getName());
holder.mdetails_status.setText(mValues.get(position).getStatus());
holder.mdetails_species.setText(mValues.get(position).getSpecies());
holder.mdetails_gender.setText(mValues.get(position).getGender());
holder.mdetails_origin.setText(mValues.get(position).getOrigin().getName());
holder.mdetails_last_location.setText(mValues.get(position).getLocation().getName());