git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| <?php | |
| namespace Foo; | |
| /** | |
| * Methods for safe LIKE querying. | |
| */ | |
| trait LikeQueryHelpers | |
| { | |
| /** |
| // Use waterfall so that you can easily disconnect at the end of your code. | |
| // It also makes node.js callbacks less confusing. | |
| async.waterfall([ | |
| function (wCb) { | |
| connection.connect(); | |
| // wCB is a callback function. Call it when you want to move to the | |
| // next function in the waterfall | |
| wCb(); | |
| }, | |
| function (wCB) { |
| <?php | |
| namespace Helper; | |
| // Select2 helpers for the jQuery based replacement for select boxes. | |
| // See: http://select2.github.io/select2 | |
| // Author: Tortue Torche <[email protected]> | |
| // License: MIT | |
| // | |
| // Installation: | |
| // * Put this file in your 'tests/_support/Helper' directory |
| function mime2ext($mime){ | |
| $all_mimes = '{"png":["image\/png","image\/x-png"],"bmp":["image\/bmp","image\/x-bmp","image\/x-bitmap","image\/x-xbitmap","image\/x-win-bitmap","image\/x-windows-bmp","image\/ms-bmp","image\/x-ms-bmp","application\/bmp","application\/x-bmp","application\/x-win-bitmap"],"gif":["image\/gif"],"jpeg":["image\/jpeg","image\/pjpeg"],"xspf":["application\/xspf+xml"],"vlc":["application\/videolan"],"wmv":["video\/x-ms-wmv","video\/x-ms-asf"],"au":["audio\/x-au"],"ac3":["audio\/ac3"],"flac":["audio\/x-flac"],"ogg":["audio\/ogg","video\/ogg","application\/ogg"],"kmz":["application\/vnd.google-earth.kmz"],"kml":["application\/vnd.google-earth.kml+xml"],"rtx":["text\/richtext"],"rtf":["text\/rtf"],"jar":["application\/java-archive","application\/x-java-application","application\/x-jar"],"zip":["application\/x-zip","application\/zip","application\/x-zip-compressed","application\/s-compressed","multipart\/x-zip"],"7zip":["application\/x-compressed"],"xml":["application\/xml","text\/xml"],"svg": |
| Instruction for LibreOffice dependency installation | |
| 1. cd /usr/local | |
| 2. wget http://download.documentfoundation.org/libreoffice/stable/5.0.0/rpm/x86_64/LibreOffice_5.0.0_Linux_x86-64_rpm.tar.gz | |
| 3. cd LibreOffice_5.0.0_Linux_x86-64_rpm | |
| 4. yum localinstall *.rpm --skip-broken | |
| 5. yum install cairo |
| <?php // @codingStandardsIgnoreFile | |
| namespace Helper; | |
| use Exception; | |
| // Select2 helpers for Codeception | |
| // See: https://select2.org | |
| // | |
| // Works with Select2 version 4.0 or greater | |
| // Which is a jQuery based replacement for select boxes. |