This file contains 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 | |
// this is to add a fake component to BuddyPress. A registered component is needed to add notifications | |
function custom_filter_notifications_get_registered_components( $component_names = array() ) { | |
// Force $component_names to be an array | |
if ( ! is_array( $component_names ) ) { | |
$component_names = array(); | |
} | |
// Add 'custom' component to registered components array |
This file contains 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
/** | |
* Remove BP pages nag. | |
* | |
* @return void | |
*/ | |
function appp_remove_bp_pages_notices() { | |
$notices = buddypress()->admin->notices; | |
foreach ( $notices as $key => $notice ) { |
This file contains 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
/** | |
* Adds moderater filter to groups loop | |
* | |
* @return void | |
*/ | |
function otc_group_moderate_option_filter() { | |
?> | |
<option value="moderate"><?php _e( 'Moderate' ); ?></option> | |
<?php | |
} |
This file contains 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
-- | |
format_version: '11' | |
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
project_type: ionic | |
workflows: | |
Deploy_Android: | |
steps: | |
- activate-ssh-key@4: | |
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | |
- git-clone@8.1: {} |
This file contains 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
<html> | |
<head> | |
<title>Gamefroot Arcade</title> | |
<style> | |
body, html { | |
margin: 0; | |
padding: 0; | |
background: black; | |
overflow: hidden; | |
} |
This file contains 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 ~* ^.+\.(svg|svgz|jpg|jpeg|gif|png|ico|bmp)$ { | |
try_files $uri @image_fallback; | |
} | |
location @image_fallback { | |
proxy_pass http://{PROD}; | |
} |
This file contains 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
{ | |
"_type": "export", | |
"__export_format": 2, | |
"__export_date": "2016-11-03T03:57:14.655Z", | |
"__export_source": "insomnia.desktop.app:v3.6.6", | |
"resources": [ | |
{ | |
"modified": 1477842143375, | |
"created": 1477841988306, | |
"parentId": null, |
This file contains 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
async function fakeasync() { | |
const waitFor = delay => new Promise(resolve => setTimeout(resolve, delay)); | |
await waitFor(3000); | |
} |
This file contains 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 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: BP Add Page | |
* Plugin URI: https://webdevstudios.com | |
* Description: Example on adding a page to BuddyPress profiles | |
* Author: WebDevStudios | |
* Author URI: https://webdevstudios.com | |
* Version: 1.0.0 | |
* License: GPLv2 | |
*/ |
NewerOlder