A list of amazingly awesome PHP libraries, resources and shiny things.
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.
<div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> |
############################################################################################### | |
# https://www.educative.io/answers/the-fatal-refusing-to-merge-unrelated-histories-git-error | |
# | |
# The “fatal: refusing to merge unrelated histories” Git error occurs when two unrelated | |
# projects are merged (i.e., projects that are not aware of each other’s existence and | |
# have mismatching commit histories). | |
# | |
# The error is resolved by toggling the allow-unrelated-histories switch. | |
# After a `git pull` or `git merge` command, add the following tag: | |
# |
<?php | |
if ( ! class_exists( 'VcSodaBlockquote' ) ) { | |
class VcSodaBlockquote extends WPBakeryShortCode { | |
//Initialize Component | |
function __construct() { | |
add_action( 'init', array( $this, 'create_shortcode' ), 999 ); | |
add_shortcode( 'vc_soda_blockquote', array( $this, 'render_shortcode' ) ); |
<?php | |
/** | |
* https://kb.wpbakery.com/docs/theme-integration-technical/theme-integration-technical/ | |
* Include the TGM_Plugin_Activation class. | |
*/ | |
require_once dirname( __FILE__ ) . '/class-tgm-plugin-activation.php'; | |
add_action( 'tgmpa_register', 'my_theme_register_js_composer_plugins' ); | |
/** | |
* Register the required plugins for this theme. | |
* |
<?php | |
/** | |
* Cleanup | |
* | |
*/ | |
/** | |
* Less stuff in <head> | |
* |
<?php | |
// Allow SVG (add to functions.php) | |
add_filter( 'wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) { | |
global $wp_version; | |
if ( $wp_version !== '4.7.1' ) { | |
return $data; | |
} | |
$filetype = wp_check_filetype( $filename, $mimes ); |
A list of amazingly awesome PHP libraries, resources and shiny things.
Anyone who decides between adopting Angular and React on the basis of github stars or any other measure of popularity should definitely stick to React. Angular will never win a popularity contest, especially one conducted with people who do not have the deep exposure to it necessary to assess its value to your career. | |
And if you have any trouble figuring out the version issues with Angular you should absolutely stay away from it. Angular (meaning 2+, currently version 4, and not AngularJS) is so intellectually challenging, so much only for the big kids, that if you have the slightest doubts, don’t bother. This is partly because of Angular itself, but far more because learning Angular means also mastering Typescript (compiled, type-safe JS) and RXJS (functional reactive programming). RXJS in particular is only for the very serious developer with the mental chops for it, representing a sea change in the fundamental approach to async programming. | |
It took me well over a year of full time effort to get to where |
<?php | |
$.ajax({ | |
url: "https://raw.githubusercontent.com/RichmondDay/public/master/test_vehicle_inventory_data.json", | |
method: "GET", | |
dataType: 'json', | |
success: function(data) { | |
console.log(typeof(data)); | |
var html_to_append = ''; | |
$.each(data, function(i, item) { |
# Whitelist All of Cloudflare’s IP Addresses to | |
# mitigate Error 521 reported by Ahrefs | |
order deny,allow | |
allow from 173.245.48.0/20 | |
allow from 103.21.244.0/22 | |
allow from 103.22.200.0/22 | |
allow from 103.31.4.0/22 | |
allow from 141.101.64.0/18 | |
allow from 108.162.192.0/18 | |
allow from 190.93.240.0/20 |