git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
git push --force
{ | |
"code": { | |
"indentSequence": " " | |
}, | |
"heading": { | |
"options": [ | |
{ | |
"class": "ck-heading_heading1", | |
"model": "heading1", | |
"title": "Heading 1", |
parent template: | |
<h1>Filter</h1> | |
<hr> | |
{{ sprig('_inc/filter', {'limit': 3}) }} | |
{{ sprig.script }} | |
Child template: | |
{% set page = page ?? 1 %} |
.onboarding--inner--VHh_M { | |
height: auto; | |
animation: onboarding--scrolly--1DurJ 120s infinite; | |
animation-name: onboarding--scrolly--1DurJ; | |
animation-duration: 120s; | |
animation-timing-function: ease; | |
animation-delay: 0s; | |
animation-iteration-count: infinite; | |
animation-direction: normal; | |
animation-fill-mode: none; |
<div> | |
{% for category in craft.categories.all() %} | |
{% if category.level == 1 %} | |
{% set children = category.getChildren() %} | |
<h4>{{ category.title }}</h4> | |
{% if children|length %} | |
<ul> | |
{% for subcategory in children %} | |
<li>{{ subcategory.title }}</li> |
<?php | |
namespace craft\contentmigrations; | |
use Craft; | |
use craft\db\Migration; | |
use craft\elements\SentNotification; | |
use craft\helpers\FileHelper; | |
use craft\helpers\Json; | |
use craft\helpers\MigrationHelper; |
find . -name '*.pcss' -exec sh -c 'mv "$0" "${0%.pcss}.scss"' {} \; |
var vid = document.getElementById("video1"); | |
function slowPlaySpeed() { | |
vid.playbackRate = 0.5; | |
} | |
function normalPlaySpeed() { | |
vid.playbackRate = 1; | |
} |
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
git push --force
// store urls to fetch in an array | |
const urls = [ | |
'/ajax/getLanguagesRate?sourceLang=arabic&targetLang=albanian', | |
'/ajax/getLanguagesRate?sourceLang=arabic&targetLang=afrikaans', | |
'/ajax/getSubjectRate?subject=legal', | |
'/ajax/getDeliveryRate?delivery=standart', | |
]; | |
// from multiple urls | |
Promise.all(urls.map((url) => fetch(url))) |
const checkVisability = target => { | |
const io = new IntersectionObserver((entries, observer) => { | |
console.log(entries) | |
entries.forEach(entry => { | |
if (entry.isIntersecting) { | |
console.log('visible'); | |
// observer.disconnect(); | |
} else { |