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
var removeEmpty = function(object) { | |
if (!_.isObject(object)) { | |
return; | |
} | |
_.keys(object).forEach(function(key) { | |
var localObj = object[key]; | |
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
export NONE='' | |
export BLACK='\\033[0;30m' | |
export RED='\\033[0;31m' | |
export GREEN='\\033[0;32m' | |
export BROWN='\\033[0;33m' | |
export BLUE='\\033[0;34m' | |
export PURPLE='\\033[0;35m' | |
export CYAN='\\033[0;36m' | |
export LIGHT_GREY='\\033[0;37m' | |
export DARK_GREY='\\033[1;30m' |
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
/* this.editor = new Ext.ux.grid.RowEditor({ | |
saveText: 'Update', | |
clicksToEdit: 20 | |
});*/ | |
/*this.editor.on('beforeedit', this.onEditOperation, this); | |
this.editor.on('afteredit', this.onAddRecord, this); | |
this.editor.on('canceledit', this.onEditCancelled, this);*/ | |
this.nameField = new Ext.form.TextField({ |
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
#!/bin/bash | |
# ABOUT | |
# Add color to your Catalina output logs for [info, warn, error, severe, startup] | |
# - This isn't the smartest, so if there is a match for any of the listed statuses in an | |
# output you can bet it'll be colorized | |
# USAGE | |
# catalina run 2>&1 | bash ~/colorize-tomcat-logs.sh |
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
class RepeatTableHeadersHandler extends Paged.Handler { | |
constructor(chunker, polisher, caller) { | |
super(chunker, polisher, caller) | |
this.splitTablesRefs = [] | |
} | |
afterPageLayout(pageElement, page, breakToken, chunker) { | |
this.chunker = chunker | |
this.splitTablesRefs = [] |
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
curl -s "https://get.sdkman.io" | bash | |
sdk install groovy 2.4.15 | |
sdk install grails 3.3.9 | |
sdk install gradle 3.1 |