- JavaScript Weekly: http://javascriptweekly.com/
- HTML5 Weekly: http://html5weekly.com/
- CSS Weekly: http://css-weekly.com/
- Web Design Weekly: http://web-design-weekly.com/
- Web Tools Weekly: http://webtoolsweekly.com/
- React.js Newsletter: http://reactjsnewsletter.com/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// provider id => array of packages | |
$listPackagesToInstall = array( | |
1 => array( // standart modx provider | |
'sdStore' | |
, 'translit' | |
, 'SanitizeUpload' | |
, 'TinyMCE' | |
, 'FormIt' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
getTVLabel snippet for modx 2.3 | |
Version: | |
------------------ | |
v0.0.1 (2015-03-06 16:44) | |
Author: | |
------------------ |
While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.
Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
HHVMinfo - phpinfo page for HHVM HipHop Virtual Machine | |
Author: _ck_ | |
License: WTFPL, free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
Version: 0.0.6 | |
* revision history | |
0.0.6 2014-08-02 display fix for empty vs zero | |
0.0.5 2014-07-31 try to determine config file from process command line (may not always work), style improvements |
Установка:
- файл
unpublish.class.php
разместить в директорииcore/components/product_unpublish/processors/resource/
- создать плагин, скопировав содержимое файла
plugin.php
. Если необходимо снимать с публикации товары сразу после покупки, отмечаем для плагина событиеmsOnCreateOrder
. Если необходимо снимать с публикации товары при получении заказом определенного статуса, необходимо отметить событиеmsOnChangeOrderStatus
для плагина и поменять в коде99
на ID статуса заказа.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hashtag = (function () { | |
// Twitter's official hashtag verifier. | |
// Ported from https://github.com/twitter/twitter-text-rb/blob/master/lib/twitter-text/regex.rb | |
// Creates a Unicode Regular Expression range | |
function regexRange (from, to) { | |
to = to || 0; | |
from = from.toString(16); | |
fromLen = (from.length > 4) ? from.length : 4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set langmap=ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;`qwertyuiop[]asdfghjkl\\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\\"ZXCVBNM<> | |
nmap Ж : | |
" yank | |
nmap Н Y | |
nmap з p | |
nmap ф a | |
nmap щ o | |
nmap г u | |
nmap З P |