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
| #ifndef CONFIG_H | |
| #define CONFIG_H | |
| #define BMS_MAC_ADDRESS "aa:bb:cc:dd:ee:ff" | |
| #define BMS_SERVICE_UUID "0000ffe0-0000-1000-8000-00805f9b34fb" | |
| #define BMS_CHARACTERISTIC_UUID "0000ffe1-0000-1000-8000-00805f9b34fb" | |
| #define REPEATER_NAME_SUFFIX "-Rep" |
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
| <?php | |
| namespace App\Http\Middleware; | |
| use App\Services\LanguageService; | |
| use Carbon\Carbon; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Illuminate\Support\Facades\App; |
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
| <script> | |
| export default { | |
| props: { | |
| mutexIsActive: { | |
| required: true, | |
| type: Boolean, | |
| default: false | |
| } | |
| }, | |
| data() { |
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 graphql = axios.create({ | |
| baseURL: process.env.MIX_API_URL + '/graphql', | |
| headers: {'Accept': 'application/json'} | |
| }) | |
| graphql.interceptors.request.use(request => { | |
| request.headers['Authorization'] = getToken() | |
| return request | |
| }, error => { |
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
| <?php | |
| /** | |
| * Calculates the great-circle distance between two points, with | |
| * the Haversine formula. | |
| * | |
| * @param float $latitudeFrom Latitude of start point in [deg decimal] | |
| * @param float $longitudeFrom Longitude of start point in [deg decimal] | |
| * @param float $latitudeTo Latitude of target point in [deg decimal] | |
| * @param float $longitudeTo Longitude of target point in [deg decimal] |
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
| <script> | |
| function polygonArea(coords) { | |
| let total = 0; | |
| if (coords && coords.length > 0) { | |
| total += Math.abs(ringArea(coords[0])); | |
| for (let i = 1; i < coords.length; i++) { | |
| total -= Math.abs(ringArea(coords[i])); | |
| } | |
| } | |
| return total; |