Skip to content

Instantly share code, notes, and snippets.

View imranrbx's full-sized avatar
🏠
Working from home

Imran Qasim imranrbx

🏠
Working from home
View GitHub Profile
<?php
/**
* Plugin Name: Pwspk Plugin
* Description: Description
* Plugin URI: http...
* Author: Author
* Author URI: http...
* Version: 1.0
* License: GPL2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
@imranrbx
imranrbx / RoleComponent.vue
Created December 19, 2019 13:29
Solution to Arun Kumar's Issue for not updating record. it get closed before it actually commmit changes to roles array in the component
<template>
<v-data-table
item-key="name"
class="elevation-1"
:loading ="loading"
loading-text="Loading... Please wait"
:headers="headers"
:items="roles"
sort-by="calories"
>
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget{
@override
Widget build(BuildContext context){
return MaterialApp(
title: "Welcome to Flutter",
home: Scaffold(
appBar: AppBar(
title: Text("Welcome to Flutter App"),
@imranrbx
imranrbx / CreateResourceController.php
Created July 8, 2020 06:24
With the help of this command you can create a resource controller in CodeIgniter 4 just create a folder named Commands in app folder then create a php file with name CreateResourceController.php and paste the following code.
<?php
namespace App\Commands;
use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
use Config\Services;
/**
With the help of this command you can create a resource controller in CodeIgniter 4.
1) just create a folder named Commands in app folder
2) then create a php file with name CreateResourceController.php
@imranrbx
imranrbx / wordpress-add-custom-menu-meta-fields.php
Created June 1, 2021 17:27 — forked from helgatheviking/wordpress-add-custom-menu-meta-fields.php
Add an example custom meta field to WordPress menu and display text on front-end (Requires WP5.4)
<?php
/**
* Add custom fields to menu item
*
* This will allow us to play nicely with any other plugin that is adding the same hook
*
* @param int $item_id
* @params obj $item - the menu item
* @params array $args