This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sc config themes start= auto | |
net start themes | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(function(a){ | |
return Object.getOwnPropertyNames(a).filter(function(b){ | |
return"function"==typeof a[b]} | |
)}(YOUR_MODULE) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//sample tree structure | |
var tree = [ | |
{ | |
id : "A", | |
list : [ | |
{ | |
id : "A.A", | |
list : [ | |
{ | |
id : "A.A.A", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"config": { | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": true, | |
"element-case": "lower", | |
"eof-newline": false, | |
"leading-zero": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"BracketHighlighter", | |
"Emmet", | |
"GitHub Markdown Snippets", | |
"Handlebars", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*====================================================== | |
= ARROW FUNCTIONS & LEXICAL this = | |
======================================================*/ | |
// OLD WAY | |
var squares = [1,2,3,4,5,6,7,8,9].map(function(value){ | |
// this === window | |
return value * value; | |
}); | |
// NEW WAY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; XDEBUG Extension | |
zend_extension = c:\wamp\bin\php\php5.4.3\ext\php_xdebug-2.2.1-5.4-vc9.dll | |
[xdebug] | |
xdebug.remote_enable = 1 | |
xdebug.remote_handler = dbgp | |
xdebug.remote_host = 127.0.0.1 | |
xdebug.remote_port = 9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
log.debug(message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Please refer to this tutorial for better understanding of log4j. | |
# http://veerasundar.com/blog/2009/07/log4j-tutorial-adding-log4j-logging-to-your-project/ | |
#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 |
OlderNewer