Skip to content

Instantly share code, notes, and snippets.

Sergio Lopez serpro

Block or report user

Report or block serpro

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
@serpro
serpro / GarminConnectCourseExport
Created Apr 2, 2015
Garmin Connect course export
View GarminConnectCourseExport
<!DOCTYPE html>
<html>
<head>
<title>Garmin Connect Course Export</title>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script type="text/javascript">
$( document ).ready(function() {
var urlPattern = "http://connect.garmin.com/proxy/course-service-1.0/[TYPE]/course/[ID]";
var regexp = /^.*?(\d+)$/
function checkForm()
@serpro
serpro / TestPHP
Created May 31, 2013
Allow you to test PHP Code on the browser
View TestPHP
<?php
register_shutdown_function( "fatal_handler" );
function fatal_handler() {
$errfile = "unknown file";
$errstr = "shutdown";
$errno = E_CORE_ERROR;
$errline = 0;
$error = error_get_last();
View Table.js
/**
* Copyright (c)2005-2009 Matt Kruse (javascripttoolbox.com)
*
* Dual licensed under the MIT and GPL licenses.
* This basically means you can use this code however you want for
* free, but don't claim to have written it yourself!
* Donations always accepted: http://www.JavascriptToolbox.com/donate/
*
* Please do not link to the .js files on javascripttoolbox.com from
* your site. Copy the files locally to your server instead.
You can’t perform that action at this time.