Skip to content

Instantly share code, notes, and snippets.

View ryanwalker's full-sized avatar
💭
natively clouding

Ryan Walker ryanwalker

💭
natively clouding
  • Kubra
  • Gilbert, AZ
View GitHub Profile
@ryanwalker
ryanwalker / bumpme
Last active September 28, 2021 22:36
Tue Sep 28 22:36:35 UTC 2021
class LaunchViewController: INFViewController {
override func shouldAutorotate() -> Bool {
return false
}
override func preferredStatusBarStyle() -> UIStatusBarStyle {
return .LightContent
}
<%
for (int i=1; i<10; i++) {
String desc = "description" + i;
pageContext.setAttribute("description", desc);
%>
${desc}
<%
}
@ManagedOperation
@Scheduled(cron = "0 0 0 * * SUN")
public void purgeOrphanedScores() {
synchronized (LeadScoringServiceDb.class) {
stopWatchStart("purgeOrphanedScores");
try {
int orphanedScoreCount = scoreDAO.getOrphanedScoreCount();
if (orphanedScoreCount > 0) {
scoreDAO.deleteOrphanedScores();
Log.info(Log.Context.LeadScoring, "Deleted " + orphanedScoreCount + " orphaned scores");
public void bindContact(HttpServletRequest request, Model model) throws LoadingException {
...
model.addAttribute("contact", contact);
}
public void create(String view, Integer addingFormId, Model model) {
}
//vs.