Skip to content

Instantly share code, notes, and snippets.

View sabbiseaan's full-sized avatar
🕷️
I may be slow to respond.

sabbiseaan

🕷️
I may be slow to respond.
View GitHub Profile
@sabbiseaan
sabbiseaan / functions.php
Created May 3, 2021 13:30 — forked from maddisondesigns/functions.php
WooCommerce Custom Fields for Simple & Variable Products
/*
* Add our Custom Fields to simple products
*/
function mytheme_woo_add_custom_fields() {
global $woocommerce, $post;
echo '<div class="options_group">';
// Text Field
@sabbiseaan
sabbiseaan / wp-plugin-skeleton.php
Created April 28, 2021 09:20 — forked from starise/wp-plugin-skeleton.php
WordPress Plugin Skeleton
<?php
/**
* Plugin Name: Plugin Skeleton
* Description: Static Base plugin for WordPress.
* Version: 1.0.0
* Author: starise
* Author URI: http://stari.se
* License: GPL
*/
@sabbiseaan
sabbiseaan / code-snippets-shotcode.php
Created April 28, 2021 09:20 — forked from brasofilo/code-snippets-shotcode.php
Snippets Shortcode plugin. Add code snippets as a Custom Post Type. Display in regular posts and pages using a Shortcode. Rendered with Google Prettify in frontend.
<?php
/**
* Plugin Name: Snippets Shortcode
* Plugin URI: http://wordpress.stackexchange.com/q/116044/12615
* Description: Add code snippets as a Custom Post Type. Display in regular posts and pages using a Shortcode. Rendered with Google Prettify in frontend.
* Version: 1.0
* Author: Rodolfo Buaiz
* Author URI: http://brasofilo.com
* License: GPLv2 or later
*
@sabbiseaan
sabbiseaan / Laravel-Container.md
Created April 21, 2021 14:03
Laravel's Dependency Injection Container in Depth

Laravel's Dependency Injection Container in Depth

Translations: Korean (by Yongwoo Lee)

Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.

Introduction to Dependency Injection

I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).

@sabbiseaan
sabbiseaan / it-ebooks.md
Created February 4, 2021 05:20 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want

Appium

Appium is an open source automation tool for running scripts and testing native, mobile-web and hybrid applications and it supports Android,iOS,Windows desktop platform.

  • Languages supported: Java, Python, Tuby, C#, PHP, JavaScript, RobotFramework

  • Appium works in a client-server architecture

  • Appium is an 'HTTP Server'written using-Node.js platform

                 JSON Wire Protocol                       
    

    | Appium Client|--------------------->| Appium Server|---> {WinAppDriver for Windows phone} {UI Automator/Selendroid for Android}

@sabbiseaan
sabbiseaan / elementor-heading-color.php
Created May 28, 2020 09:32 — forked from kokers/elementor-heading-color.php
Elementor custom control - Section > Style > Typography | Heading (H1 ... H6) Color
/*
* @author Eliza "kokers" Witkowska - AIO collective
*
* Custom control for WordPress Elementor plugin
* inside Section > Style > Typography settings
* and Column > Style > Typography settings,
* for setting custom headings color (h1...h6).
*
* Current Heading Color control inside Elementor,
* works only for heading widget, and not h1...h6 tags.
@sabbiseaan
sabbiseaan / about_wordpress.md
Created December 21, 2019 07:11 — forked from kuzminT/about_wordpress.md
Wordpress tips for custom theme creating
@sabbiseaan
sabbiseaan / bedrock-setup-guide.md
Created December 21, 2019 06:57 — forked from folbert/bedrock-setup-guide.md
How to get up and running with Bedrock and Bedrock Capistrano at Oderland

Getting up and running with Bedrock

If you get totally stuck, here are some resources that may help you: Roots Discourse. Actually, you may want to head over and read this through really quick. It's nowhere near as long as this and may be good to have in the back of your mind when reading the rest of this document. Capistrano Website with manual Screencast on deploying WordPress with Capistrano.

Bedrock?

Bedrock is created by the good awesome people behind Sage and is described as a "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure." Read more at https://roots.io/bedrock.

@sabbiseaan
sabbiseaan / SCSS.md
Created December 20, 2019 10:46 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso