Skip to content

Instantly share code, notes, and snippets.

Trying Really Hard

Praveen Puglia praveenpuglia

Trying Really Hard
Block or report user

Report or block praveenpuglia

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
praveenpuglia / Xdebug Config
Created Nov 27, 2012
Xdebug php.ini Configuration
View Xdebug Config
; XDEBUG Extension
zend_extension = c:\wamp\bin\php\php5.4.3\ext\php_xdebug-2.2.1-5.4-vc9.dll
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host =
xdebug.remote_port = 9000
View Preferences.sublime-settings
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 2,
"caret_style": "phase",
"color_scheme": "Packages/Colorsublime - Themes/Xcode_default.tmTheme",
"draw_minimap_border": true,
"fade_fold_buttons": false,
praveenpuglia /
Created Mar 18, 2013
A Helper Class for java to for Logging purposes in much like android style.
import org.apache.log4j.Logger;
public class LogHelper {
* helper class d() to log debug level information.
public static void d(Class cls, String message)
Logger log = Logger.getLogger(cls);
praveenpuglia /
Last active Dec 15, 2015
Properties file for log4j. Put this file under <b>src</b> folder..
#Please refer to this tutorial for better understanding of log4j.
#define the console appender
log4j.appender.consoleAppender = org.apache.log4j.ConsoleAppender
# now define the layout for the appender
log4j.appender.consoleAppender.layout = org.apache.log4j.PatternLayout
log4j.appender.consoleAppender.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
praveenpuglia / $.post_Template.js
Created Mar 19, 2013
just the javascript needed to do an ajax request using jquery.
View $.post_Template.js
$(document).ready(function() {
$.post("ajaxCustomerIdName.jsp", {
url : "Something"
}, function(data) {
praveenpuglia / localStorageTest.html
Created Aug 24, 2013
A small demo on localstorage...
View localStorageTest.html
<!DOCTYPE html>
<title>Local Storage</title>
<form action="">
<textarea name="comment" id="comment" cols="30" rows="10"></textarea>
Draft last saved at : --- <div id="updateTime"></div>
<input type="submit">
praveenpuglia / storageEvent.html
Created Aug 24, 2013
localStorage storage event example
View storageEvent.html
<!DOCTYPE html>
<title>Local Storage</title>
<form action="">
<input name="comment" id="comment"></input>
<input type="submit">
View aeroRocker.bat
sc config themes start= auto
net start themes
praveenpuglia / getAllObjectMethods
Created Apr 18, 2014
Returns an array of methods contained within an object.
View getAllObjectMethods
return Object.getOwnPropertyNames(a).filter(function(b){
return"function"==typeof a[b]}
View Infinite JSON Tree Parser.js
//sample tree structure
var tree = [
id : "A",
list : [
id : "A.A",
list : [
id : "A.A.A",
You can’t perform that action at this time.