Skip to content

Instantly share code, notes, and snippets.

Avatar

Iakimchuk Dmitrii nektobit

View GitHub Profile
@nektobit
nektobit / angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Created December 19, 2022 07:53 — forked from LayZeeDK/angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Angular CLI, Angular, Node.js, TypeScript, and RxJS version compatibility matrix. Based on changelogs, metadata, and hands-on experience. Major Node.js and RxJS versions above officially supported versions are not listed. Note that both major and minor TypeScript versions contain breaking changes.
View angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Angular CLI version Angular version Node.js version TypeScript version RxJS version
1.0.0-beta.17 (package name: angular-cli) ~2.0.2 ^6.9.5 ~2.0.10 ^5.0.3
1.0.0-beta.20-1 (package name: angular-cli) ~2.1.2 ^6.9.5 ~2.0.10 ^5.0.3
1.0.0-beta.22-1 (package name: angular-cli) ~2.2.4 ^6.9.5 ~2.0.10 ^5.0.3
1.0.0-beta.30 ~2.3.1 ^6.9.5 ~2.0.10 ^5.0.3
1.0.0-rc.4 ~2.4.10 ^6.9.5 ~2.0.10 ^5.0.3
~1.0.6 >= 4.0.3 <= 4.1.3 ^6.9.5 ~2.2.2 ^5.0.3
~1.1.3 >= 4.0.3 <= 4.1.3 ^6.9.5 ~2.3.4 ^5.0.3
~1.2.7 >= 4.0.3 <= 4.1.3 ^6.9.5 ~2.3.4 ^5.0.3
~1.3.2 >= 4.2.6 <= 4.4.7 ^6.9.5 ~2.4.2 ^5.0.3
@nektobit
nektobit / index.html
Created March 21, 2019 02:30
spinner with changed text (pure html)
View index.html
<html>
<body style="margin: 0">
<p>Content</p>
<div style="width: 800px; height: 600px;">
<!-- just parent div -->
<div id="textspinner_wrapper">
<div id="textspinner_circle"></div>
<p id="textspinner_text"></p>
View save_wp_table_to_json
<?php
function wcpi_add_my_products_section( $sections ) {
$sections['wcpi_settings'] = 'Иконки товаров';
return $sections;
}
add_filter( 'woocommerce_get_sections_products', 'wcpi_add_my_products_section' );
// Add Settings for new section
function wcpi_add_my_products_settings( $settings, $current_section ) {
// make sure we're looking only at our section
if ( 'wcpi_settings' === $current_section ) {
@nektobit
nektobit / getmyver.php
Created October 8, 2018 00:58
Get version of current plugin (in frontend also works)
View getmyver.php
function get_my_version() {
if (!function_exists('get_plugin_data')) {
include_once( ABSPATH . 'wp-admin/includes/plugin.php');
}
$pluginObject = get_plugin_data( __FILE__ );
return $pluginObject['Version'];
}
//wp_die(get_my_version());
@nektobit
nektobit / file.php
Created September 12, 2017 05:29
Best WP test function
View file.php
<?php
/**
* Usage:
* $something = 'string';
* $something = array('key' => 'value', $something);
* do_action('testlog', $something);
*/
add_action('testlog', 'do_testlog');
function do_testlog($arg) {
@nektobit
nektobit / wp.sh
Created November 17, 2015 06:06
wp install on sprinthost
View wp.sh
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Database Name: "
read -e dbname
echo "Database User: "
read -e dbuser
echo "Database Password: "