In insert mode type some math like 2+2
Then switch to visual mode and select it.
With visual mode still active type !bc
| $originalDate = "2010-03-21"; | |
| $newDate = date("d-m-Y", strtotime($originalDate)); |
| // resize min 900 x 500 | |
| // get a reference to the current (active) document and store it in a variable named "doc" | |
| doc = app.activeDocument; | |
| // change the color mode to RGB. Important for resizing GIFs with indexed colors, to get better results | |
| doc.changeMode(ChangeMode.RGB); | |
| // these are our values for the end result width and height (in pixels) of our image | |
| var fWidth = 900; | |
| var fHeight = 500; |
| #!/bin/bash | |
| # Comma separated list of IPs to be excluded | |
| echo "123.123.123.123,234.234.234.234">var/.maintenance.ip | |
| # For the rest of the world we go down for maintenance NOW | |
| touch var/.maintenance.flag |
| function countCSSRules() { | |
| var results = '', | |
| log = ''; | |
| if (!document.styleSheets) { | |
| return; | |
| } | |
| for (var i = 0; i < document.styleSheets.length; i++) { | |
| countSheet(document.styleSheets[i]); | |
| } | |
| function countSheet(sheet) { |
| # vim like bindings | |
| set-window-option -g mode-keys vi | |
| bind-key -t vi-copy 'v' begin-selection | |
| bind-key -t vi-copy 'y' copy-selection | |
| # colors | |
| set -g default-terminal "xterm-256color" | |
| # keys | |
| set -g xterm-keys on |
| function harvest { | |
| commitmsg=$(git log -1 --pretty=%B) | |
| sow note "$commitmsg" | |
| } |
| <block class="Magento\Framework\View\Element\Text" name="comment.placeholder"> | |
| <arguments> | |
| <argument name="text" xsi:type="string"><![CDATA[<!-- -->]]></argument> | |
| </arguments> | |
| </block> |
| .product-image { | |
| height: 0; | |
| display: block; | |
| position: relative; | |
| z-index: 1; | |
| overflow: hidden; | |
| padding-bottom: 100%; | |
| img { | |
| display: block; |