Skip to content

Instantly share code, notes, and snippets.

View rafszul's full-sized avatar

rafal szulczewski rafszul

View GitHub Profile
<?php
/**
* Register block patterns.
* Include this file in your theme, and update image paths, prefix and text domain.
*
* @link https://developer.wordpress.org/block-editor/developers/block-api/block-patterns/
*/
/**
* Make sure that block patterns are enabled before registering.
/**
* Enqueue Block Filters.
*/
function enqueue_my_block_filters() {
wp_register_script(
'block-style-filter',
plugins_url( 'block-style-filter', __FILE__ ),
array( 'wp-blocks', 'wp-element' )
);
}
const WordpressPurgeCSS = {
whitelist: [
"rtl",
"home",
"blog",
"archive",
"date",
"error404",
"logged-in",
"admin-bar",
@rafszul
rafszul / index.html
Created August 12, 2019 09:10 — forked from akashnimare/index.html
Youtube embedded overlay image
<div class="video-container">
<img src="img/yt-video.jpg"/ id="play-video" class="img-responsive">
<iframe style="display:none" id="video" src="https://www.youtube.com/embed/SzmioR4Dj8E" frameborder="0" allowfullscreen></iframe>
</div>
@rafszul
rafszul / 1. highcharts.component.ts
Created March 22, 2018 16:03 — forked from fabiobiondi/1. highcharts.component.ts
Simple HighChart component in Angular 5
import { AfterViewInit, Component, ElementRef, Input, OnChanges, SimpleChanges, ViewChild } from '@angular/core';
import { HighChartService } from './highchart.service';
@Component({
selector: 'fb-highchart',
template: '<div *ngIf="config"></div>',
providers: [HighChartService]
})
export class HighChartComponent implements OnChanges, AfterViewInit {
@Input() config: any;
@rafszul
rafszul / introrx.md
Created January 16, 2017 07:39 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@rafszul
rafszul / scss.project
Created January 1, 2017 13:36 — forked from arnold-almeida/scss.project
A suggestion on how to organise your scss prohect
// link : https://medium.com/p/24cfae349724
// version : 1.0.0
scss/
|
|— site/ # website namespace
|  |— modules/
| |— common/
| |— _footer.scss
#sidebar
.sidebar-item.open
.title Item 1
.info
label Some controls
input(type='checkbox')
label More controls
input(type='checkbox')
@rafszul
rafszul / learn.lua
Last active August 29, 2015 14:22 — forked from tylerneylon/learn.lua
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
----------------------------------------------------