You can have a linear workflow with the array functions.
The following is unreadable:
$output = array_reduce(
array_map(
function($n) { return $n ** 2; }
array_filter($input, function($n) { return $n % 2 == 0; })
),
<snippet> | |
<content><![CDATA[ | |
<template> | |
${0} | |
</template> | |
<script> | |
export default { | |
props: [${1}], | |
data() { |
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands) | |
gpg --gen-key | |
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null` | |
# check current keys: | |
gpg --list-secret-keys --keyid-format LONG | |
# See your gpg public key: | |
gpg --armor --export YOUR_KEY_ID | |
# YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333) |
/** | |
* @magentoDataFixture Magento/ConfigurableProduct/_files/quote_with_configurable_product.php | |
*/ | |
public function testSaveQuoteMultipleTimes() | |
{ | |
/** @var \Magento\CatalogInventory\Model\Stock\Item $stockItem */ | |
$stockItem = Bootstrap::getObjectManager()->create(\Magento\CatalogInventory\Model\Stock\Item::class); | |
$stockItem->load(10, 'product_id'); |
// ___ _ | |
// | | _| |_ | |
// | | |_ _| | |
// | | |_| | |
// | |___ | |
// | | | |
// |_______| | |
// | |
// https://www.leveluptutorials.com/ | |
// @leveluptuts |
Trying to run iTunes with Wine, i faced various problems. Here is a working solution how to install iTunes on Debian-based systems (in my case Linux Mint 18.1) - with support for the iTunes Store. Warning: Syncing i-devices is still not possible. | |
When installing it with the playonlinux-"iTunes 12"-script, log in into the Store was not possible in my case. Wine showed the follwing error when trying to log in: SecurityContext failed with error 0x80090304 | |
1. Install current Wine version (2.0.1) directly from the winehq repository | |
wget -nc https://dl.winehq.org/wine-builds/Release.key | |
sudo apt-key add Release.key | |
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' | |
sudo apt-get update | |
sudo apt-get install --install-recommends winehq-stable | |
wine --version |
# bash commands | |
# lists all of your conda env | |
conda env list | |
# Create a conda env w/ python3.5 | |
# -n sets the name for your new env. I call it neovim here | |
conda create -n neovim python=3.5 | |
# add neovim for python3 to the env | |
# specify version you want here, 0.1.13 up to date ver atm |
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Subscriptions - [email protected]</title> | |
</head> | |
<body> | |
<outline text="PHP" title="PHP"> | |
<outline htmlUrl="http://frederickvanbrabant.com" title="frederickvanbrabant.com" xmlUrl="http://frederickvanbrabant.com/feed.xml" type="rss" text="frederickvanbrabant.com"/> | |
<outline htmlUrl="http://mattallan.org" title="mattallan.org" xmlUrl="http://mattallan.org/feed.xml" type="rss" text="mattallan.org"/> | |
<outline title="asked.io" xmlUrl="https://asked.io/rss" type="rss" text="asked.io"/> |
You can have a linear workflow with the array functions.
The following is unreadable:
$output = array_reduce(
array_map(
function($n) { return $n ** 2; }
array_filter($input, function($n) { return $n % 2 == 0; })
),