Skip to content

Instantly share code, notes, and snippets.

Working from home

JCarlos JCarlosR

Working from home
Block or report user

Report or block JCarlosR

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
JCarlosR /
Created Jun 1, 2020
Retrofit 2 Example: Parsing dynamic JSON responses
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.logging.HttpLoggingInterceptor;
import retrofit.GsonConverterFactory;
JCarlosR / KineController.php
Last active May 12, 2019
Cargar contenido de forma dinámica al hacer Scroll (JS y Laravel)
View KineController.php
namespace App\Http\Controllers;
use App\Kine;
use Illuminate\Http\Request;
class KineController extends Controller
public function index()
JCarlosR / PreferenceHelper.kt
Last active Sep 22, 2019 — forked from krupalshah/PreferenceHelper.kt
Helper for shared preferences management - Kotlin version
View PreferenceHelper.kt
package com.programacionymas.helpers
import android.content.Context
import android.content.SharedPreferences
import android.preference.PreferenceManager
object PreferenceHelper {
fun defaultPrefs(context: Context): SharedPreferences
= PreferenceManager.getDefaultSharedPreferences(context)
JCarlosR / index.php
Created Jun 14, 2018
Ejemplo API Rest - Google Maps Geocoding
View index.php
if (isset($_GET['direccion']))
$direccion = $_GET['direccion'];
echo "Se ha ingresado 1 dirección: " . $direccion;
$google_maps_url = "" . urlencode($direccion) ."&key=AIzaSyApj6gLFFjVQ2sFXJ6k-U1yyiCfvBchybI";
$google_maps_json = file_get_contents($google_maps_url);
$google_maps_array = json_decode($google_maps_json, true);
$lat = $google_maps_array["results"][0]["geometry"]["location"]["lat"];
You can’t perform that action at this time.