Skip to content

Instantly share code, notes, and snippets.

View rmax's full-sized avatar
:octocat:
(⌐■_■) ♬

R Max Espinoza rmax

:octocat:
(⌐■_■) ♬
View GitHub Profile
<pre>
<?php
echo "=== \$_GET===\n";
var_dump($_GET);
echo "=== REQUEST_URI ===\n";
var_dump($_SERVER['REQUEST_URI']);
?>
</pre>
<pre>
<?php
echo "=== \$_GET===\n";
var_dump($_GET);
echo "=== REQUEST_URI ===\n";
var_dump($_SERVER['REQUEST_URI']);
?>
</pre>
<pre>
<?php
echo "=== \$_GET===\n";
var_dump($_GET);
echo "=== REQUEST_URI ===\n";
var_dump($_SERVER['REQUEST_URI']);
?>
</pre>
<?php
echo "=== \$_GET===\n";
var_dump($_GET);
echo "=== REQUEST_URI ===\n";
var_dump($_SERVER['REQUEST_URI']);
<?php
var_dump($_REQUEST);
var_dump($_GET);
import functools
import logging
import traceback
import os
def log_calls(f):
"""
displays arguments and return val for debugging purposes
based on:
http://caines.ca/blog/programming/the-debuggerator-a-practical-intro-to-decorators-in-python/
#!/usr/bin/python2.4
#
# Copyright 2009, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
@rmax
rmax / gyst
Created December 24, 2009 23:20
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""My gist command line tool"""
__author__ = 'Rolando Espinoza La fuente <darkrho@gmail.com>'
__version__ = '0.1'
__all__ = ['']
import itertools
import fileinput
************* Module gist
W0511: 24: TODO: handle exceptions
W0511: 56: TODO: extend usage examples
W0511: 84: TODO: allow username token by command line?
W0511:104: TODO: git clone option
W0511:114: TODO: maybe handle multiple files in gist
W0511:123: TODO: better way to known if gist exists
W0511:190: TODO: handle response errors
R0914: 37:main: Too many local variables (27/15)
R0912: 37:main: Too many branches (29/12)
b.c# @author Rolando Espinoza La fuente <contacto@rolandoespinoza.info>
import httplib
import urllib
try:
import cStringIO as StringIO
except ImportError:
import StringIO
class HTTPError(Exception):