I hereby claim:
- I am roma-glushko on github.
- I am roman_hlushko (https://keybase.io/roman_hlushko) on keybase.
- I have a public key ASBcxKOVsMVXbXS77Zpa1eCY0wk9aevojXoGVI5KQEhd9wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
git fetch -p | |
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D |
from typing import List | |
class PriorityQueue: | |
""" | |
Represents the heap and preserves the heap property during adding/removing elements | |
""" | |
items: List[int] | |
def __init__(self, items: List[int]): |
import shap | |
shap.initjs() | |
# Create object that can calculate shap values | |
explainer = shap.TreeExplainer(rf_classifier) | |
# Calculate Shap values | |
shap_values = explainer.shap_values(X_test, y_test) |
#!/bin/bash | |
command=$1 | |
path=$2 | |
currentDir="`pwd`" | |
# display usage | |
# run commands one after the other using | |
[ $# -eq 0 ] && { echo -e "Usage: $0 command [path]"; exit 1; } | |
case $command in |
Cypress.Commands.add("loginAsCustomer", (username, password) => { | |
cy.request('/customer/account/login') | |
.its('body') | |
.then((body) => { | |
const $html = Cypress.$(body) | |
const formKey = $html.find('input[name="form_key"]').val() | |
cy.request({ | |
method: 'POST', | |
url: '/customer/account/loginPost', |
<Directory /home/usr/sites/> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
AuthType Basic | |
AuthName "HTTP Auth" | |
AuthUserFile /etc/apache2/.htpasswd | |
SetEnvIf X-Forwarded-For ^1\.2\.3\.4 env_no_http_auth | |
<RequireAny> |
<?php | |
require __DIR__ . "/app/bootstrap.php"; | |
use Magento\Framework\App\Bootstrap; | |
use Magento\Framework\App\ObjectManager\ConfigLoader; | |
use GuzzleHttp\Client; | |
use Magento\Framework\Stdlib\ArrayManager; | |
$bootstrap = Bootstrap::create(BP, $_SERVER); |
<?php | |
declare(strict_types=1); | |
namespace Vendor\Module\Plugin\Checkout; | |
use Magento\Checkout\Model\DefaultConfigProvider; | |
use Magento\Framework\Stdlib\ArrayManager; | |
class AddProductLabelPlugin |