This file contains hidden or 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 data_collection; | |
for (var i in jsonbody.rest) | |
{ | |
jsonbody.rest[i]["savedtime"] = new Date().toISOString(); | |
data_collection.save(jsonbody.rest[i] , function(err, saved) { | |
if( err || !saved ) console.log("Rest not saved: " + err); | |
else ; | |
}); |
This file contains hidden or 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
# group tickets to users | |
group_tickets = (msg, results) -> | |
if results.count <= 0 | |
return | |
assigned_tickets = {} | |
unassinged = 0 | |
for result in results | |
if result.assignee_id? | |
assignee_id = result.assignee_id |
This file contains hidden or 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
package test; | |
import java.io.IOException; | |
import java.util.concurrent.atomic.AtomicLong; | |
import java.util.zip.GZIPOutputStream; | |
import javax.servlet.http.HttpServletResponse; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestParam; |
NewerOlder