When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
image: php:7.4-fpm | |
definitions: | |
steps: | |
- step: &composer-install | |
name: Build PHP | |
caches: | |
- composer | |
script: | |
- ls -al |
@servers(['web' => $user.'@'.$host,'localhost' => '127.0.0.1']) | |
@setup | |
// Sanity checks | |
if (empty($host)) { | |
exit('ERROR: $host var empty or not defined'); | |
} | |
if (empty($user)) { | |
exit('ERROR: $user var empty or not defined'); | |
} |
<?php | |
//Works with WooCommerce 3.2.6 | |
add_action( 'woocommerce_shipping_init', 'econt_shipping_method' ); | |
function econt_shipping_method() { | |
if ( ! class_exists( 'WC_Econt_Shipping_Method' ) ) { | |
class WC_Econt_Shipping_Method extends WC_Shipping_Method { | |
public function __construct( $instance_id = 0 ) { | |
$this->instance_id = absint( $instance_id ); | |
$this->id = 'econt';//this is the id of our shipping method |
/var/www/html
in the Vagrant boxc:\Users\username\Work\projects\my-project\repo\html
route -nee
in the VM and look for the gateway address)# editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = LF | |
indent_size = 2 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
indent_style = space |
// Filter Elasticsearch posts by current language | |
add_filter( 'ep_formatted_args', function($formatted_args, $args) { | |
$formatted_args['post_filter']['bool']['must'][] = [ | |
'term' => [ | |
'lang' => pll_current_language() | |
] | |
]; | |
return $formatted_args; | |
}, 10, 2); |
android.permission.ACCESS_ALL_DOWNLOADS | |
android.permission.ACCESS_BLUETOOTH_SHARE | |
android.permission.ACCESS_CACHE_FILESYSTEM | |
android.permission.ACCESS_CHECKIN_PROPERTIES | |
android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY | |
android.permission.ACCESS_DOWNLOAD_MANAGER | |
android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED | |
android.permission.ACCESS_DRM_CERTIFICATES | |
android.permission.ACCESS_EPHEMERAL_APPS | |
android.permission.ACCESS_FM_RADIO |
Downloads the Android SDK Command Line Tools
$ unzip android-sdk-macosx.zip
$ cd android-sdk-macosx
Create a backup folder
<?php | |
/** | |
* /!\ This is a copy of Walker_Nav_Menu_Edit class in core | |
* | |
* Create HTML list of nav menu input items. | |
* | |
* @package WordPress | |
* @since 3.0.0 | |
* @uses Walker_Nav_Menu | |
*/ |