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 SwiftUI | |
/// A reusable SwiftUI view that features a stretchy header positioned below a navigation bar. | |
/// | |
/// This view is generic and accepts two custom view builders ("slots"): | |
/// - `header`: The content to display in the stretchy header area. | |
/// - `content`: The main scrollable content to display below the header. | |
struct ReusableStretchyHeaderView<HeaderContent: View, MainContent: View>: View { | |
// MARK: Properties |
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
/** | |
* Remove BP pages nag. | |
* | |
* @return void | |
*/ | |
function appp_remove_bp_pages_notices() { | |
$notices = buddypress()->admin->notices; | |
foreach ( $notices as $key => $notice ) { |
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
-- | |
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 ""}}' | |
- [email protected]: {} |
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
<html> | |
<head> | |
<title>Gamefroot Arcade</title> | |
<style> | |
body, html { | |
margin: 0; | |
padding: 0; | |
background: black; | |
overflow: hidden; | |
} |
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 ~* ^.+\.(svg|svgz|jpg|jpeg|gif|png|ico|bmp)$ { | |
try_files $uri @image_fallback; | |
} | |
location @image_fallback { | |
proxy_pass http://{PROD}; | |
} |
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
async function fakeasync() { | |
const waitFor = delay => new Promise(resolve => setTimeout(resolve, delay)); | |
await waitFor(3000); | |
} |
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 | |
*/ |
NewerOlder