Skip to content

Instantly share code, notes, and snippets.

View glaphire's full-sized avatar

Dariia Motoryna glaphire

  • Kyiv, Ukraine
View GitHub Profile
@glaphire
glaphire / docker-php-ext-install.md
Created September 3, 2020 08:20 — forked from giansalex/docker-php-ext-install.md
docker-php-ext-install Reference
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ 
@glaphire
glaphire / selenium-php-webdriver-cheatsheet.md
Created March 19, 2020 16:34 — forked from aczietlow/selenium-php-webdriver-cheatsheet.md
Cheat sheet for using php webdriver (facebook/webdriver).

Webdriver PHP API workthough

  • Open a browser

    # start an instance of firefox with selenium-webdriver
    
    $browser_type = 'firefox'
    $host = 'http://localhost:4444/wd/hub'
    

$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);

@glaphire
glaphire / opening_modal_window.js
Created May 8, 2016 15:32
jquery opening modal window
function showForm(el) {//передадим название в модальное окно
$form.arcticmodal({
beforeOpen: function () {
var title = el.find('.p-list__title').data('title');
$input.val(title);
modal.modalFixStart();
},
afterClose: function () {
modal.modalFixEnd();
}
86937 isset
43159 echo
31697 empty
29252 substr
26146 count
24248 is_array
22572 strlen
19365 sprintf
18090 unset
16584 str_replace