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
| interface Layouts { | |
| [name: string]: LayoutRoot; | |
| } | |
| const layouts: Promise<Layouts> = new Promise(resolve => { | |
| Promise.all([ | |
| Icon.getImageSource("people"), | |
| Icon.getImageSource("message") | |
| ]).then(icons => { | |
| resolve({ |
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 React, { PureComponent } from 'react'; | |
| import FastImage from 'react-native-fast-image'; | |
| import { PLACEHOLDER_IMAGE } from '../const/app'; | |
| export default class PlaceHolderFastImage extends PureComponent { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| loading: true, | |
| hasError: false |
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 function search(Request $request) | |
| { | |
| if($request->has('text') && $request->input('text')) { | |
| // Search for given text and return data | |
| $data = $this->searchMovies($request->input('text')); | |
| $moviesArray = []; | |
| // If there are any movies that match given search text "hits" fill their id's in array | |
| if($data['hits']['total'] > 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
| removeBurger$: Observable<any> = this.actions$ | |
| .ofType('[Menu Page] Add burger') | |
| .switchMap((action: menuActions.AddBurger | details.AddBurger) => { | |
| const p = action.payload; | |
| return this.burgerService.addBurger(p.id) | |
| .mergeMap(res => [ | |
| new burgers.Load(), // refresh burger list |
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
| @Effect({dispatch: false}) | |
| entityCreationSuccess$: Observable<Action> = this.actions$.pipe( | |
| ofType(UserActions.CREATE_USER_SUCCESS, PostActions.CREATE_POST_SUCCESS), | |
| tap(action => { | |
| this.router.navigate(['../'], {relativeTo: this.route}) | |
| }) | |
| ); |
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
| @Effect() | |
| selectAndLoadStore$: Observable<Action> = this.actions$ | |
| .ofType(storeActions.SELECT_AND_LOAD_STORE) | |
| .withLatestFrom(this.store.select(ngrx.storeState)) | |
| .map(([action, storeState]) => [action.payload, storeState]) | |
| .switchMap(([storeName, storeState]) => { | |
| const existsInStore = Boolean(storeState.urlNameMap[storeName]); | |
| return Observable.if( | |
| () => existsInStore, | |
| Observable.of(new storeActions.SetSelectedStore(storeName)), |
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 | |
| /* | |
| Plugin Name: WooCustom My Account | |
| Plugin URI: http://wpbeaches.com/ | |
| Description: WooCustom - add a custom area in my-account | |
| Author: Neil Gee | |
| Version: 1.0.0 | |
| Author URI: http://wpbeaches.com | |
| License: GPL-2.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
| /* | |
| * Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
| */ | |
| var http = require('http'), | |
| fs = require('fs'), | |
| util = require('util'); | |
| http.createServer(function (req, res) { | |
| var path = 'video.mp4'; |
NewerOlder