Skip to content

Instantly share code, notes, and snippets.

View eabait's full-sized avatar

Esteban S. Abait eabait

View GitHub Profile
@eabait
eabait / .jshintrc
Created June 4, 2012 04:14 — forked from haschek/.jshintrc
JSHint Configuration, Strict Edition
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@eabait
eabait / jsLogger.php
Created April 20, 2012 11:27
Simple remote debugging for web mobile development
$debugFile = dirname(__FILE__) . '/debug.log';
$date = date('Y:m:d G:i:s') . "\n";
$line = str_repeat('-', 80);
//log request
$message = print_r($_REQUEST, true);
$message = "\n" . $line . "\n" . $date . "\n" . $message . "\n" . $line;
$file = fopen($debugFile,'a');
fwrite($file, $message);
fclose($file);