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
| function loadData(book){ | |
| $(".bookDiv").append(html); | |
| $bookHTML = $(".book").eq(-1); | |
| $("h1",$bookHTML).text(book.volumeInfo.title); | |
| $.ajax({ | |
| url:" https://www.googleapis.com/books/v1/users/ " + UserID |
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
| XQuery 3 | |
| List all flights to the airport named Rome Fiumicino. | |
| for $airport in doc/Airport | |
| for $flights in doc/Flight | |
| let $airid:=$airport/@airId | |
| where $airport/name='Rome Fiumicino' and $flights/destination=$airid | |
| return $flights | |
| List all flights to Rome (i.e., to the airport containing Rome in its name) sorted by the corresponding departure time. |
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
| Return the name for all airports. | |
| //Airport/name | |
| Return the destination of the 3rd flight on the XML document, if one such flight | |
| exists. | |
| //Flight[3] | |
| Return the departure date for all flights having ZRH or PRG as the destination. | |
| //Flight[destination='ZRH' or destination='PRG']/departure |
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
| function MM4(clients) | |
| meanInterarrival=2; | |
| meanService=1; | |
| Time=0; | |
| NumQueueCompleted=0; | |
| ServerStatus = [0 0 0 0]; | |
| NumInQueue=0; | |
| AcumDelay=0; | |
| QueueArrivalTime=[]; |
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
| function MMm(clients, m) | |
| meanInterarrival=2; | |
| meanService=1; | |
| Time=0; | |
| NumQueueCompleted=0; | |
| ServerStatus = zeros(1, m); | |
| NumInQueue=0; | |
| AcumDelay=0; | |
| QueueArrivalTime=[]; |
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
| function MM44queues(clients) | |
| meanInterarrival=0.25; | |
| meanService=1; | |
| Time=0; | |
| NumQueueCompleted=0; | |
| ServerStatus1=0; | |
| ServerStatus2=0; | |
| ServerStatus3=0; | |
| ServerStatus4=0; |
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
| public void switchToCell(String cellNumber){ | |
| map.setImageResource(getResources().getIdentifier(drawablesList.get(parseCellName(cellNumber)),"drawable", getPackageName())); | |
| } | |
| public Integer parseCellName(String cellName){ | |
| String cellNumber = cellName.replaceAll("\\D+",""); | |
| return Integer.parseInt(cellNumber); | |
| } | |
| //Then just add this line |