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\Repository; | |
| use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |
| use Symfony\Bridge\Doctrine\RegistryInterface; | |
| use App\Repository\EntityStatsRepositoryInterface; | |
| class EntityStatsRepositoryDecorator extends ServiceEntityRepository { |
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\Doctrine\EntityListener; | |
| use Doctrine\ORM\EntityManagerInterface; | |
| use Doctrine\ORM\Event\OnFlushEventArgs; | |
| use App\Entity\Post; | |
| class PostEntityListener { | |
| /** | |
| * @inheritDoc | |
| * @param OnFlushEventArgs $event |
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\Doctrine\EntityListener; | |
| use Doctrine\ORM\EntityManagerInterface; | |
| use Doctrine\ORM\Event\OnFlushEventArgs; | |
| use App\Entity\Post; | |
| class PostEntityListener { | |
| /** | |
| * @inheritDoc | |
| * @param OnFlushEventArgs $event |
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\Doctrine\EntityListener; | |
| use Doctrine\ORM\EntityManagerInterface; | |
| use Doctrine\ORM\Event\OnFlushEventArgs; | |
| use App\Entity\Post; | |
| class PostEntityListener { |
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 | |
| /** | |
| * @ORM\Entity | |
| */ | |
| class Post | |
| { | |
| ... | |
| /** |
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\Service\PushNotification; | |
| class SendIOSPushNotification { | |
| /** | |
| * Constructor | |
| * | |
| * @param string $iosPushNotificationsKey |
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
| const testA = [9, -3, 5, 2, 6, 8, -6, 1, 3]; | |
| const testASorted = quickSort(testA); | |
| console.log(testASorted); | |
| const testB = [-3, -2, -1, 0, 1, 2, 3]; | |
| const testBSorted = quickSort(testB); | |
| console.log(testBSorted); | |
| const testC = [3, 2, 1, 0, -1, -2, -3]; | |
| const testCSorted = quickSort(testC); |
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
| const defaultSortingAlgorithm = (a, b) => { | |
| if (a < b) { | |
| return -1; | |
| } | |
| if (a > b) { | |
| return 1; | |
| } | |
| return 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
| // | |
| // RNiBeacon.m | |
| // RNiBeacon | |
| // | |
| // Created by MacKentoch on 17/02/2017. | |
| // Copyright © 2017 Erwan DATIN. All rights reserved. | |
| // | |
| #import <CoreLocation/CoreLocation.h> |
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
| // @flow | |
| import { | |
| type BeaconRegion, | |
| type AuthorizationStatus, | |
| type BeaconsManagerIOS | |
| } from './module.types'; | |
| const RN = require('react-native'); | |
| const BeaconsManager: BeaconsManagerIOS = RN.NativeModules.RNiBeacon; |