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
    
  
  
    
  | $('#smsAmount').on('keydown', '#child', function(e){-1!==$.inArray(e.keyCode,[46,8,9,27,13,110,190])||(/65|67|86|88/.test(e.keyCode)&&(e.ctrlKey===true||e.metaKey===true))&&(!0===e.ctrlKey||!0===e.metaKey)||35<=e.keyCode&&40>=e.keyCode||(e.shiftKey||48>e.keyCode||57<e.keyCode)&&(96>e.keyCode||105<e.keyCode)&&e.preventDefault()}); | 
  
    
      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
    
  
  
    
  | stringBuilder = new StringBuilder(this.getClass().getClassLoader().getResource("templates").toURI().getPath()).append(File.separator).append(xslTemplate); | 
  
    
      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
    
  
  
    
  | private long getDateDiff(Date date1, Date date2, TimeUnit timeUnit) { | |
| long diffInMillies = date2.getTime() - date1.getTime(); | |
| return timeUnit.convert(diffInMillies,TimeUnit.MILLISECONDS); | |
| } | |
| Date d1 = ((Calendar) Calendar.getInstance()).getTime(); | |
| Date d2 = ((Calendar) Calendar.getInstance()).getTime(); | |
| logger.info("Total time need: {}", getDateDiff(d1, d2, TimeUnit.SECONDS)); | 
  
    
      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
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src = "https://maps.googleapis.com/maps/api/js"></script> | |
| <script type="text/javascript"> | |
| function loadMap() { | |
| var initZoom = 7; | |
| var depot = [23.6238, 90.5000]; | |
| var lat = [23.8103, 22.8456, 24.3636, 22.3569, 24.8949]; | |
| var lng = [90.4125, 89.5403, 88.6241, 91.7832, 91.8687]; | 
  
    
      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
    
  
  
    
  | import java.net.InetAddress; | |
| import java.net.NetworkInterface; | |
| import java.net.SocketException; | |
| import java.net.UnknownHostException; | |
| public class App { | |
| public static void main(String[] args) { | |
| InetAddress ip; | 
  
    
      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
    
  
  
    
  | import org.apache.commons.codec.binary.Base64; | |
| byte[] encodedBytes = Base64.encodeBase64("Test".getBytes()); | |
| System.out.println("encodedBytes " + new String(encodedBytes)); | |
| byte[] decodedBytes = Base64.decodeBase64(encodedBytes); | |
| System.out.println("decodedBytes " + new String(decodedBytes)); | 
  
    
      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
    
  
  
    
  | import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.Set; | |
| import java.util.List; | |
| import javax.xml.ws.handler.MessageContext; | |
| import javax.xml.ws.handler.soap.SOAPHandler; | |
| import javax.xml.ws.handler.soap.SOAPMessageContext; | 
  
    
      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
    
  
  
    
  | let a = [{aa:"1",xx:true},{aa:"10",xx:false},{aa:"2",xx:true},{aa:"11",xx:false},{aa:"3",xx:true},{aa:"12",xx:false},{aa:"4",xx:true},{aa:"13",xx:false},{aa:"5",xx:true},{aa:"14",xx:false},{aa:"6",xx:true},{aa:"15",xx:false},{aa:"7",xx:true},{aa:"16",xx:false},{aa:"8",xx:true},{aa:"17",xx:false},{aa:"9",xx:true},{aa:"18",xx:false}]; | |
| //a.sort(function(a,b){return a.xx-b.xx}); | |
| a.sort(function (x, y) { | |
| // true values first | |
| return (x.xx === y.xx) ? 0 : x ? -1 : 1; | |
| // false values first | |
| // return (x === y)? 0 : x? 1 : -1; | |
| }); | |
| return JSON.stringify(a); |