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
| /** | |
| * Allow cross domain api access from iOS and Android | |
| * | |
| * @param WP_Rest_Request $request | |
| * @return void | |
| */ | |
| function appp_init_cors( $request ) { | |
| $origin_url = '*'; | |
| header( 'Access-Control-Allow-Origin: ' . $origin_url ); |
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
| <ion-header> | |
| <ion-toolbar color="clear"> | |
| <ion-buttons slot="start"> | |
| </ion-buttons> | |
| <ion-title></ion-title> | |
| <ion-buttons slot="end"> | |
| </ion-buttons> | |
| </ion-toolbar> | |
| </ion-header> |
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
| location ~ ^(/wp-content/themes|/wp-content/uploads)/.*\.(jpe?g|gif|css|png|js|ico|pdf|m4a|mov|mp3)$ { | |
| rewrite ^ http://domain.com$request_uri? | |
| permanent; | |
| access_log off; | |
| } |
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 | |
| /** | |
| * BuddyPress Groups create admin screen. | |
| * | |
| * Props to WordPress core for the Comments admin screen, and its contextual | |
| * help text, on which this implementation is heavily based. | |
| * | |
| * @package BuddyPress | |
| * @subpackage Groups | |
| */ |
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
| # Load media in /uploads/ from remote site. | |
| location ~ ^/wp-content/uploads/(.*) { | |
| rewrite ^/wp-content/uploads/(.*)$ https://url.com/wp-content/uploads/$1 permanent; | |
| } |
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
| *******HOMEPAGE | |
| import { Component, h } from '@stencil/core'; | |
| @Component({ | |
| tag: 'app-home', | |
| styleUrl: 'app-home.css' | |
| }) | |
| export class AppHome { |
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
| <ion-item> | |
| <ion-label>Sort Method</ion-label> | |
| <ion-select value="recent"> | |
| <ion-select-option value="recent">Most Recent</ion-select-option> | |
| <ion-select-option value="location">Location</ion-select-option> | |
| </ion-select> | |
| </ion-item> | |
| <ion-list-header> | |
| <ion-label> |
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
| RewriteEngine On | |
| # If we receive a forwarded http request from a proxy... | |
| RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR] | |
| # ...or just a plain old http request directly from the client | |
| RewriteCond %{HTTP:X-Forwarded-Proto} ="" | |
| RewriteCond %{HTTPS} !=on | |
| # Redirect to https 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
| <?php | |
| /** | |
| * Sign a private asset url on cloudfront | |
| * | |
| * @param $resource full url of the resources | |
| * @param $timeout timeout in seconds | |
| * @return string signed url | |
| * @throws Exception | |
| */ |
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
| var fs = require('fs'); | |
| var httpProxy = require('http-proxy'); | |
| var http = require('http'); | |
| var https = require('https'); | |
| var express = require('express'); | |
| var app = express(); | |
| app.use(function (req, res, next) { | |
| console.log(req); | |
| if (req.url === '/') { |