Skip to content

Instantly share code, notes, and snippets.

View abdullah1908's full-sized avatar
🎯
Focusing

Abdullah Ramzan abdullah1908

🎯
Focusing
View GitHub Profile
@abdullah1908
abdullah1908 / php-block.js
Created July 30, 2018 14:14 — forked from pento/php-block.js
Converting a shortcode to a block
// License: GPLv2+
var el = wp.element.createElement,
registerBlockType = wp.blocks.registerBlockType,
ServerSideRender = wp.components.ServerSideRender,
TextControl = wp.components.TextControl,
InspectorControls = wp.editor.InspectorControls;
/*
* Here's where we register the block in JavaScript.
@abdullah1908
abdullah1908 / bf.php
Created June 21, 2018 22:50 — forked from apisurfer/bf.php
Simple brute force or string matching in PHP
<?php
/**
This is a simple proof of concept of a brute force algorithm for string matching with
given set of characters.
The way this works is that the algorithm counts from first to last possible combination of
given characters. Instead of counting(incrementing) in number base 10 we use
a new base which is derived from your set of possible characters (we count in symbols).
So if your characters list contains 27 characters the program actually counts in a 27 base
number system.
@abdullah1908
abdullah1908 / rscsvimporter-debug.php
Created January 12, 2018 01:51 — forked from hissy/rscsvimporter-debug.php
Really Simple CSV Importer Debugger add-on
<?php
/*
Plugin Name: Really Simple CSV Importer Debugger add-on
Description: Enables to dry-run-testing with Really Simple CSV Importer. When this add-on plugin activated, csv data will not imported, just displayed on dashboard.
Author: Takuro Hishikawa
Version: 0.2
*/
class rscsvimporter_debug {
// singleton instance
@abdullah1908
abdullah1908 / install.md
Created October 22, 2017 18:04 — forked from ahmadawais/install.md
GIT: How to Install Git on your Mac, Linux, or Windows!