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
/* action that renders a template back to browser, | |
* and uses custom simple 'ajax' layout */ | |
def ajaxResults() { | |
def results = workService.querySomeWork() | |
render (template: "ajaxResults", model:[results:results as JSON], layout:'ajax') | |
} |
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
public class SqlServerTimestampType extends TimestampType { | |
private static final int SQLSERVER_PRECISION = 10; | |
public SqlServerTimestampType() { | |
super(); | |
} | |
/** | |
* SQLServer datetime fields are accurate to 1/300th of a second. | |
* We floor to the nearest 1/100th of a second for simplicity. |
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
/** | |
* Register this with the DispatcherServlet in a ServletInitializer class like: | |
* dispatcherServlet.setContextInitializers(new PropertiesInitializer()); | |
*/ | |
public class PropertiesInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> { | |
private static final Logger log = LoggerFactory.getLogger(PropertiesInitializer.class); | |
/** | |
* Runs as appInitializer so properties are wired before spring beans | |
*/ |
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
@Configuration | |
public class SpringLog4jConfig { | |
/** | |
* Just a property from the normal Spring property sources, like: | |
* log4j.properties.location=log4j-dev.properties | |
*/ | |
@Value("${log4j.properties.location}") | |
String log4jLocation; |
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
/** | |
* Initially written as a test for IE/Chrome for a bug in ui-mask. | |
* https://github.com/angular-ui/ui-utils/issues/302 | |
* | |
* The test verifies that all of the text is selected in an input field when the field is tabbed into | |
*/ | |
describe('field selection test', function () { | |
beforeEach (function () { | |
getRoute('#/app/events'); | |
}); |
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
The Crazy Doodle app available on the Amazon Kindle and Google Play stores does NOT collect any information. |
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 someService; | |
beforeEach(inject(function (_someService_) { | |
someService = sinon.mock(_someService_); | |
})); | |
afterEach(function () { | |
entityServiceFactory.verify(); | |
}); |
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
/* | |
After jquery ui datepicker selection, blur and change | |
events fire before focus is returned to the input field, | |
handling a quirk from IE browsers | |
*/ | |
$("input.dateInput").datepicker({ | |
changeMonth: true, | |
changeYear: true, | |
showAnim: "fadeIn", |
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
/* | |
The IE Microsoft Lync Plugin puts an icon next to all phone numbers in the html markup. | |
This causes page layouts to break, especially with scrolling table plugins. | |
The icon is also included in printouts. | |
This disableMSLync plugin hides phone numbers from MS Lync by replacing the normal hyphen | |
with the non-breaking hyphen character code. | |
*/ | |
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
//From https://github.com/sjurgemeyer/GR8-US-2012/blob/master/Mobile-and-Grails-ZachLendon/Mobile-and-Grails-ZachLendon.pdf | |
var module = (function () { | |
// private variables and functions | |
var foo = 'bar'; | |
// constructor | |
var module = function () { | |
}; |
OlderNewer