Skip to content

Instantly share code, notes, and snippets.

/**
* 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.
@serpro
serpro / TestPHP
Created May 31, 2013 11:56
Allow you to test PHP Code on the browser
<?php
register_shutdown_function( "fatal_handler" );
function fatal_handler() {
$errfile = "unknown file";
$errstr = "shutdown";
$errno = E_CORE_ERROR;
$errline = 0;
$error = error_get_last();
@serpro
serpro / GarminConnectCourseExport
Created April 2, 2015 15:59
Garmin Connect course export
<!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()