Skip to content

Instantly share code, notes, and snippets.

View Postnov's full-sized avatar
🏠
Working from home

Postnov Daniil Postnov

🏠
Working from home
View GitHub Profile
@Postnov
Postnov / final.html
Last active February 12, 2024 09:42
Panel about redesign GetCourse. Панель про обновление Геткурса.
<script>
(function() {
$(() => {
if ($('#gcAccountUserMenu').length) {
let messageText = 'Скоро оформление школы изменится. Если что-то будет отображаться некорректно, зайдите через 15 минут или попробуйте очистить кэш.<a href="https://yandex.ru/support/common/browsers-settings/cache.html">Инструкция по очистке кэша</a>';
let a = $(`<div class="message-wrapper"><div class="message-text">${messageText}</div></div>`);
let b = $(`<button class="message-btn">Закрыть</button>`);
let c = localStorage.getItem("redesignPopupView");
null == c && (a.append(b), $("body").append(a), b.click(function() {
@Postnov
Postnov / script.js
Created August 26, 2018 12:14
lazy load css
var head = document.querySelector('head'),
cssLazy = document.createElement('link');
cssLazy.setAttribute('rel', 'stylesheet');
cssLazy.setAttribute('href', 'css/main.min.css');
head.appendChild(cssLazy);
@Postnov
Postnov / .htaccess
Last active July 16, 2019 15:39
Работающий код кэширования для google page speed
# кеш браузера
<ifModule mod_expires.c>
ExpiresActive On
#по умолчанию кеш в 5 секунд
ExpiresDefault "access plus 1 week"
# Включаем кэширование изображений и флэш на месяц
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
@AliceWonderland
AliceWonderland / React-Redux-Resources.md
Last active March 1, 2024 02:48
A list of tutorials for beginner practice projects in React and Redux for those who like to learn by coding.

Hands-On Tutorials for React and Redux

Beginner practice projects in React and Redux for those who like to learn by coding.

There's so much out there and many ways to start out. This is a start, from here your path can branch out how you prefer.

All resources and references are free and/or open source.

React

First projects using Facebook's Create-React-App, a barebones React app. (Best for learning only). Avoid having to research, install, and configure a setup. Jump to being able to try it to get a better sense of it.

@codedokode
codedokode / js-task-1.md
Last active March 4, 2024 12:35
Задания на яваскрипт (простые)