Every block
should be in separated file named as block.
Filename: rating-star.scss
.rating-star {
$font-size: 0.5em;
display: inline-block; // `display` style may be set freely
<canvas id="show" width="300" height="300"></canvas> |
{ | |
// ... | |
docs: { | |
remarkPlugins: [ | |
[ | |
require('@docusaurus/remark-plugin-npm2yarn'), | |
{ | |
sync: true, | |
converters: [ | |
[ |
git commit --amend -m "New commit message"
Эта команда позволяет изменить сообщение последнего коммита на "New commit message".
🧹 Перезапись хеша: Поскольку содержание коммита изменяется (хотя бы сообщение), хеш коммита тоже изменится. Это, в свою очередь, приведёт к изменению хешей всех последующих коммитов, если таковые имеются.
import { Messages, setupI18n } from '@lingui/core'; | |
import { I18nProvider } from '@lingui/react'; | |
import { ReactNode, useState } from 'react'; | |
export const generateMessagesProvider = async ( | |
locale: string, | |
{ messages }: { messages: Messages } | |
) => { | |
return function LocaleMessagesProvider({ children }: { children: ReactNode }) { | |
return ( |
<?php | |
/** | |
* Create ACF options page under custom post type menu | |
* | |
* @since 1.0.0 | |
*/ | |
if ( function_exists( 'acf_add_options_sub_page' ) ){ | |
acf_add_options_sub_page(array( | |
'title' => 'Event Settings', | |
'parent' => 'edit.php?post_type=events', |
<?php | |
<? | |
// Hooks only for version 5 only, may be for previous version also works | |
if (!defined('WPCF7_VERSION') OR intval(WPCF7_VERSION) !== 5) | |
{ | |
return; | |
} | |
add_filter( 'wpcf7_validate_text', 'wpcf7_text_allowed_chars_validation_filter', 11, 2 ); | |
add_filter( 'wpcf7_validate_text*', 'wpcf7_text_allowed_chars_validation_filter', 11, 2 ); |
#!/usr/bin/php | |
<? | |
// Rename this file to ffmpeg (without extention) | |
$dir = __DIR__; | |
$ffmpeg_bin = 'ffmpeg-bin'; | |
setlocale(LC_CTYPE, 'ru_RU.UTF-8'); | |
/* | |
Array | |
( |