Skip to content

Instantly share code, notes, and snippets.

View ivanvoznyakovsky's full-sized avatar

Ivan Voznyakovsky ivanvoznyakovsky

View GitHub Profile
@ivanvoznyakovsky
ivanvoznyakovsky / settings.json
Last active May 12, 2021 09:35
Ecwid Order Processor Settings Gist
{
"articulMappings": [
{
"prefix": "SV",
"dir": "Сумки"
},
{
"prefix": "ST",
"dir": "Сумки"
},
@ivanvoznyakovsky
ivanvoznyakovsky / presentville-macros.vb
Last active November 17, 2018 12:02
presentville macros
Private Declare Function CopyFile Lib "Kernel32" Alias "CopyFileA"( _
ByVal lpExistingFileName As String, _
ByVal lpNewFileName As String, _
ByVal bFailIfExists As Long _
) As Long
Private Function ProcessArticul( _
ByVal articul As String, _
ByVal printCount As String, _
ByVal orderDir As String, _
@ivanvoznyakovsky
ivanvoznyakovsky / ecwid-products-row.html
Last active July 29, 2018 12:11
ecwid products row
<div class="ecwid-prod-row">
<div class="ecwid-prod-row__item">
<div class="ecwid-prod-row__item__title">ЗАГОЛОВОК</div>
<div class="ecwid-product">
ТОВАР1
</div>
</div>
<div class="ecwid-prod-row__item">
<div class="ecwid-prod-row__item__title">ЗАГОЛОВОК</div>
<div class="ecwid-product">
@ivanvoznyakovsky
ivanvoznyakovsky / ecwid-clickable.html
Created May 23, 2018 08:43
Presentville clickable product
<div class="ecwid ecwid-SingleProduct-v2 ecwid-Product ecwid-Product-87207811"
itemtype="http://schema.org/Product" data-single-product-id="87207811"
>
<a href="/presents-store/ZBK_17J016-p87207811">
<div itemprop="image">&nbsp;</div>
</a>
<div class="ecwid-title" itemprop="name" content="ZBK_17J016">&nbsp;</div>
<div itemtype="http://schema.org/Offer" itemprop="offers">
<div class="ecwid-productBrowser-price ecwid-price" itemprop="price" content="66" data-spw-price-location="button">
<div itemprop="priceCurrency" content="UAH">&nbsp;</div>
@ivanvoznyakovsky
ivanvoznyakovsky / cloudSettings
Last active December 2, 2019 12:52
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-11-05T19:00:48.838Z","extensionVersion":"v3.4.3"}
@ivanvoznyakovsky
ivanvoznyakovsky / gist:e23fd5e9f51fd3aae7c2
Last active September 10, 2015 10:39 — forked from stuart11n/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>

Dear XCorp / Hi, XCorp depending on familiarity

I'm writing in response to X, where you advertised a vacancy for Y. I am interested in applying for this role -- please find my CV attached.

My current employment position is X, which means I'm responsible for delivering/organising/producing A, B, and C. I was previously the Y at Z where I did D. My main responsibility / largest project here has been P, which is a Widget that produces Doo-dads.

While I enjoy working at X for reasons K and L, I find M frustrating. I'm also looking to move on into areas such as N, P and Q, without losing touch with K. I find K valuable but I would prefer to change my working environment to include P.

I'm particularly interested in XCorp because, as well as providing the career experience I'm after, I use your product / admire your work / look up to your staff for these reasons: ...

$.when.apply($, dfdsArray);
@ivanvoznyakovsky
ivanvoznyakovsky / Days in month
Created December 7, 2014 11:10
How many days in month
function f(x) {
return 28 + (x + Math.floor(x/8)) % 2 + 2 % x + 2 * Math.floor(1/x);
}