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
JCarlosR / KineController.php
Last active May 12, 2019
Cargar contenido de forma dinámica al hacer Scroll (JS y Laravel)
View KineController.php
<?php
namespace App\Http\Controllers;
use App\Kine;
use Illuminate\Http\Request;
class KineController extends Controller
{
public function index()
@JCarlosR
JCarlosR / PreferenceHelper.kt
Last active Jun 11, 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
JCarlosR / index.php
Created Jun 14, 2018
Ejemplo API Rest - Google Maps Geocoding
View index.php
<?php
if (isset($_GET['direccion']))
{
$direccion = $_GET['direccion'];
echo "Se ha ingresado 1 dirección: " . $direccion;
$google_maps_url = "https://maps.googleapis.com/maps/api/geocode/json?address=" . 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.