(!(author.no_color) || flags.system_message || flags.whisper || flags.highlighted || flags.points_redeemed || flags.sub_message)
!(author.no_color)
wget -q http://mirrors.kernel.org/ubuntu/pool/universe/g/goocanvas/libgoocanvas-common_1.0.0-1_all.deb
wget -q http://mirrors.kernel.org/ubuntu/pool/universe/g/goocanvas/libgoocanvas3_1.0.0-1_amd64.deb
wget -q http://mirrors.kernel.org/ubuntu/pool/universe/libg/libgoo-canvas-perl/libgoo-canvas-perl_0.06-2ubuntu3_amd64.deb
sudo dpkg -i libgoocanvas-common_1.0.0-1_all.deb ; sudo apt-get -f install ; sudo dpkg -i libgoocanvas3_1.0.0-1_amd64.deb ; sudo apt-get -f install; sudo dpkg -i libgoo-canvas-perl_0.06-2ubuntu3_amd64.deb ; sudo apt-get -f install
| <?php | |
| function add_combination($data){ | |
| global $webService, $config; | |
| try{ | |
| $xml = $webService->get(array('url' => $config["ps_shop"].'api/combinations?schema=blank')); | |
| $combination = $xml->children()->children(); | |
| $combination->associations->product_option_values->product_option_values[0]->id = $data["option_id"]; | |
| $combination->reference = $data["code"]; | |
| $combination->id_product = $data["id_product"]; |
| /** | |
| * Simple is object check. | |
| * @param item | |
| * @returns {boolean} | |
| */ | |
| function isObject(item) { | |
| return (item && typeof item === 'object' && !Array.isArray(item)); | |
| } | |
| /** |
Install Supervisor with sudo apt-get install supervisor in Unix or brew install supervisor in Mac OSX. Ensure it's started with sudo service supervisor restart in Unix or brew services start supervisor in Mac OSX.
In Unix in /etc/supervisord/conf.d/ create a .conf file. In this example, laravel_queue.conf (contents below). Give it execute permissions: chmod +x laravel_queue.conf.
In Mac OSX first run supervisord -c /usr/local/etc/supervisord.ini and in /usr/local/etc/supervisor.d/ create a .conf file. In this example, laravel_queue.conf (contents below). Give it execute permissions: chmod +x laravel_queue.conf.
This file points at /usr/local/bin/run_queue.sh, so create that file there. Give this execute permissions, too: chmod +x run_queue.sh.
Now update Supervisor with: sudo supervisorctl reread in Unix and with: brew services restart supervisor in MAc OSX . And start using those changes with: sudo supervisorctl update.
| { | |
| "presets": ["es2015"], | |
| "plugins": ["transform-async-to-generator"] | |
| } |
| <?php | |
| function unescapeUTF8EscapeSeq($str) | |
| { | |
| return preg_replace_callback("/\\\u([0-9a-f]{4})/i", | |
| create_function('$matches', | |
| 'return html_entity_decode(\'&#x\'.$matches[1].\';\', ENT_QUOTES, \'UTF-8\');' | |
| ), $str); | |
| } | |
| $unicodeEncodedvalue = '\u041d\u0438\u043a\u043e\u043b\u0430\u0439 \u0420\u0435\u0448\u0438\u0442\u043a\u043e'; |
| Disable vim automatic visual mode on mouse select | |
| issue: :set mouse-=a | |
| add to ~/.vimrc: set mouse-=a | |
| my ~/.vimrc for preserving global defaults and only changing one option: | |
| source $VIMRUNTIME/defaults.vim | |
| set mouse-=a |