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
| {{ form_start(form, { | |
| 'attr': { | |
| 'target': '_top', | |
| 'custom-validation-reporting': 'as-you-go', | |
| 'action-xhr': url('contact') | |
| } | |
| }) }} | |
| <div class="ampstart-input"> | |
| {{ form_label(form.name) }} | |
| {{ form_widget(form.name) }} |
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; | |
| use Symfony\Component\HttpFoundation\RequestStack; | |
| use Symfony\Component\HttpFoundation\JsonResponse; | |
| use Symfony\Component\HttpFoundation\Response; | |
| class AmpService { |
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
| import { createStore, applyMiddleware } from 'redux'; | |
| import reduxThunk from 'redux-thunk'; | |
| import RNFS from 'react-native-fs'; | |
| import { Platform } from 'react-native'; | |
| import { persistStore, persistReducer } from 'redux-persist'; | |
| import FSStorage from 'redux-persist-fs-storage'; | |
| import rootReducer from 'WorthymApp/src/ducks'; | |
| const getFSStorage = () => | |
| Platform.OS === 'ios' |
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; |
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
| 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
| 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
| <?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
| <?php | |
| /** | |
| * @ORM\Entity | |
| */ | |
| class Post | |
| { | |
| ... | |
| /** |