Guest User

Untitled

a guest
Jul 11th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. 1524519103.034072 575115.688959 4141666.838766 -13.600766 -1.542655 2.361244 -38.300575
  2. 1524519103.035072 575115.696815 4141666.848696 -13.601362 -1.534502 2.371660 -38.236532
  3. 1524519103.036072 575115.704672 4141666.858627 -13.601958 -1.526349 2.382076 -38.172489
  4. 1524519103.037072 575115.712528 4141666.868558 -13.602554 -1.518197 2.392491 -38.108446
  5. 1524519103.038072 575115.720385 4141666.878488 -13.603150 -1.510044 2.402907 -38.044403
  6. 1524519103.039072 575115.728241 4141666.888419 -13.603746 -1.501891 2.413323 -37.980360
  7. 1524519103.040072 575115.736098 4141666.898350 -13.604342 -1.493739 2.423739 -37.916317
  8. 1524519103.041072 575115.743954 4141666.908281 -13.604938 -1.485586 2.434155 -37.852274
  9. 1524519103.042072 575115.751811 4141666.918211 -13.605534 -1.477434 2.444570 -37.788231
  10.  
  11. 1524519103.034072 575115.688959 4141666.838766 -13.600766 -1.542655 2.361244 -38.300575
  12.  
  13. 1524519103.038072 575115.720385 4141666.878488 -13.603150 -1.510044 2.402907 -38.044403
  14.  
  15. let loop = 0;
  16. for(let i = 0; loop <= 100; i+=174)
  17. {
  18. end_byte = i + 155
  19. loop++;
  20. chunk_requests(i, end_byte)
  21. }
  22.  
  23. function chunk_requests(initial, end){
  24. $.ajax({
  25. url: sbet_url,
  26. headers: {"Range": "bytes="+initial+"-"+end},
  27. success: function( data ) {
  28. let parseData = data.split('n') /// so the problem is I get uneven data. So I split into new lines then compare how many '.' but this isn't scaleable.
  29. parseData.forEach(function(elem){
  30. if(elem.split('.').length == 8){
  31. console.log('valid elem', elem) // this case is not always true.
  32.  
  33.  
  34. }
  35. })
  36.  
  37. })
  38.  
  39. }
Add Comment
Please, Sign In to add comment