- Страница конференции: https://events.yandex.ru/events/ya-love-frontend-2024/index
- Презентация: https://docs.google.com/presentation/d/1zHaieuqyiW95witifD9rO0-nnj5GmjzzPkDGvhWft6s/edit
- Телеграмм автора: https://t.me/amorgunov
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
| <div class="swiper-container"> | |
| <div class="swiper-wrapper"> | |
| <div class="swiper-slide" style="background-image:url(https://picsum.photos/1920/1080?image=991)"> | |
| </div> | |
| <div class="swiper-slide" style="background-image:url(https://picsum.photos/1920/1080?image=1081)"> | |
| </div> | |
| <div class="swiper-slide" style="background-image:url(https://picsum.photos/1920/1080?image=1064)"> | |
| </div> | |
| <div class="swiper-slide" style="background-image:url(https://picsum.photos/1920/1080?image=1000)"> | |
| </div>' |
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
| /* | |
| conf: Falsy Values 2015 | |
| author: Kornel Lesinski | |
| theme: And .then() what? Promise programming patterns | |
| link: https://www.youtube.com/watch?v=KrhQE8K2I7Q | |
| */ | |
| // 1 waterfall. Использование результатов предыдущих промисов | |
| doFirst() | |
| .then(firstResult => { |
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 | |
| /** | |
| * Make asynchronous requests to different resources as fast as possible and process the results as they are ready. | |
| */ | |
| class Requests | |
| { | |
| public $handle; | |
| public function __construct() | |
| { |
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
| <!-- Swiper --> | |
| <div class="swiper-container"> | |
| <div class="swiper-wrapper"> | |
| <div class="swiper-slide"> | |
| <div class="slide-inner" style="background-image: url('http://cs412624.vk.me/v412624691/4117/RWBNZL6CLtU.jpg')"></div> | |
| </div> | |
| <div class="swiper-slide"> | |
| <div class="slide-inner" style="background-image: url('http://cs412624.vk.me/v412624691/41ad/atM6w55Z9Xg.jpg')"></div> | |
| </div> | |
| <div class="swiper-slide"> |
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
| function custom_curl_multi_exec($mh, &$running){ | |
| do{ | |
| $rv = curl_multi_exec($mh, $running); | |
| } | |
| while ($rv === CURLM_CALL_MULTI_PERFORM); |
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 | |
| /** | |
| * An example of a general-purpose implementation that includes the optional | |
| * functionality of allowing multiple base directories for a single namespace | |
| * prefix. | |
| * | |
| * Given a foo-bar package of classes in the file system at the following | |
| * paths ... | |
| * |
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 | |
| if ( ! class_exists( 'Autoload_WP' ) ) { | |
| /** | |
| * Generic autoloader for classes named in WordPress coding style. | |
| */ | |
| class Autoload_WP { | |
| public $dir = __DIR__; |
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 | |
| class CurlMulti | |
| { | |
| // Code from http://www.somacon.com/p537.php | |
| public static function getMulti(array $urls) | |
| { | |
| // Create get requests for each URL | |
| $mh = curl_multi_init(); | |
| foreach($urls as $i => $url) |
NewerOlder