Skip to content

Instantly share code, notes, and snippets.

<?php
if ($_SERVER["REQUEST_URI"]) {
if (is_array($tmp = explode("?" , $_SERVER["REQUEST_URI"]))) {
$tmp = explode("&" , $tmp["1"]);
foreach ($tmp as $key => $val) {
$_tmp = explode("=" , $val);
if ($_tmp[0]) {
$_GET[$_tmp[0]] = urldecode($_tmp[1]);
// http://closure-compiler.appspot.com/code/jsc37c3d858e3f4d97c1a1733dd0a5fe14e/default.js
<script>
(
function()
{
var start = function() { doDialog(); };
if (typeof filepicker=='undefined')
{
var s = document.createElement('script');
@rickdog
rickdog / gist:6058726
Created July 22, 2013 23:55
filepicker.io.js
(
function()
{
var start = function() { doDialog(); };
if (typeof filepicker=='undefined')
{
var s = document.createElement('script');
s.src = 'http://api.filepicker.io/v1/filepicker.js';
if (s.addEventListener)
{
alert("OK");
@rickdog
rickdog / dabblet.css
Last active December 20, 2015 07:59 — forked from anonymous/dabblet.css
filepicker.io
/**
* filepicker.io
*/
background: #f06;
background: linear-gradient(75deg, blue,green, yellow, orange, red,black,white);
min-height: 100%;
@rickdog
rickdog / gist:7135598
Last active December 26, 2015 10:19
readme.md
@rickdog
rickdog / zoom.js
Created October 31, 2013 06:46
zoom
/*!
* zoom.js 0.2
* http://lab.hakim.se/zoom-js
* MIT licensed
*
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
*/
var zoom = (function(){
// The current zoom level (scale)
<!DOCTYPE html>
<html class="no-js">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://www.google.com/jsapi?key=AIzaSyA5m1Nc8ws2BbmPRwKu5gFradvD_hgq6G0" type="text/javascript"></script>
<script src="https://gist.github.com/rickdog/7245244/raw/0ffbc45f3ef248a714ea06543f53c75ad4fd7836/zoom.js" type="text/javascript"></script>
</head>
<body>
@rickdog
rickdog / chewbone
Last active December 28, 2015 08:59
chewbone
<!DOCTYPE html>
<!--[if IE 6]> <html id="ie6" lang="en-US"> <![endif]-->
<!--[if IE 7]> <html id="ie7" lang="en-US"> <![endif]-->
<!--[if IE 8]> <html id="ie8" lang="en-US"> <![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)]><!--> <html lang="en-US"> <!--<![endif]-->
<head>
<meta charset="UTF-8" />
<link rel="pingback" href="http://chewbone.rickshide.com/xmlrpc.php" />
@rickdog
rickdog / 0_reuse_code.js
Created January 9, 2016 15:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console