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
| openapi: 3.0.0 | |
| info: | |
| version: 1.0.1 | |
| title: GeoJSON format | |
| description: > | |
| This document defines the GeoJSON format as an OpenAPI. | |
| It contains the definitions for 'Feature' object and 'FeatureCollection' | |
| objects, as well as the definitions for all 'Geometry' objects. | |
| It conforms with the 'RFC-7946' standard from IETF (August 2016 version) |
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
| https://stackoverflow.com/questions/37063267/high-cpu-usage-with-android-emulator-qemu-system-i386-exe | |
| The cause of the constant CPU usage is the sound. If you do not need sound in your emulator you can disable it by editing the AVD's config file. | |
| Change/add those two lines | |
| hw.audioInput=no | |
| hw.audioOutput=no | |
| On Linux/Mac the file is located at ~/.android/avd/<AVD_Name>.avd/config.ini | |
| On Windows the file is located at C:\Users\<username>\.android\avd\<AVD_Name>.avd\config.ini |
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
| #MIT License | |
| # | |
| #Copyright (c) 2017 Daniele Andreis | |
| #Permission is hereby granted, free of charge, to any person obtaining a copy | |
| #of this software and associated documentation files (the "Software"), to deal | |
| #in the Software without restriction, including without limitation the rights | |
| #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| #copies of the Software, and to permit persons to whom the Software is | |
| #furnished to do so, subject to the following conditions: | |
| # |
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
| { | |
| init: function(elevators, floors) { | |
| elevators.forEach(function(e) { | |
| e.isDestination = function(floorNum) { | |
| return e.destinationQueue.indexOf(floorNum) != -1; | |
| } | |
| e.on("floor_button_pressed", function(floorNum) { | |
| if (!e.isDestination(floorNum)) | |
| e.goToFloor(floorNum); |