Skip to content

Instantly share code, notes, and snippets.

View unaibamir's full-sized avatar

Unaib Amir unaibamir

View GitHub Profile
Found: master for fukuball/Awesome-Laravel-Education — A curated list of resources for learning about the Laravel PHP Framework — 25⭐️ — last updated today
🔎 Checking 269 links
⚪ http://laravel-taiwan.github.io/php-the-right-way/
⚪ https://github.com/laravel-taiwan/fig-standards/tree/master/accepted/zh-TW
⚪ https://www.facebook.com/groups/laravel.tw/
⚪ https://www.facebook.com/groups/849639948396465/
⚪ https://www.facebook.com/groups/laravel.tw/
⚪ https://www.facebook.com/groups/laravel.tw/
✅ https://raw.githubusercontent.com/fukuball/Awesome-Laravel-Education/master/laravel-logo-white.png
✅ http://laravel.com/docs/5.1/quickstart
<style>
@-webkit-keyframes graph_animation {
0% { background-position: 0 bottom }
100% { background-position: -10000px bottom }
}
@-moz-keyframes graph_animation {
0% { background-position: 0 bottom }
100% { background-position: -10000px bottom }
}
@-o-keyframes graph_animation {
add_action( "wp_head", "_wn_no_cache" );
function _wn_no_cache() {
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Pragma: no-cache"); // HTTP/1.0
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
}
$output = array(
0 => {value1 test {some text test} abc ksa dgsd}{value2 sadasdasdasd {some text more} xyz test unaib}
1 => value1 test
2 => some text test
3 => abc ksa dgsd
4 => value2 sadasdasdasd
5 => some text more
6 => xyz test unaib
)
<?php
/**
* Shortcode get course total users number
*
* @since 2.1.0
*
* @param array $atts shortcode attributes
* @return string course total users number
*/
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!-- Main panel is starting from here -->
<div class="panel-header panel-header-sm">
</div>
<style>
.card label {
font-size: unset;
margin-bottom: 0;
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Task extends CI_Controller
{
public function __construct()
{
parent::__construct();
@unaibamir
unaibamir / functions.php
Created July 15, 2020 18:07
lmsninjas custom post types
/*
* Register Products CPT
*/
if ( ! function_exists('register_cpt_products') ) {
// Register Custom Post Type
function register_cpt_products() {
$labels = array(
'name' => _x( 'Products','wooninjas' ),
@unaibamir
unaibamir / ld-wp-editor-field.php
Created September 4, 2020 23:20
ld-wp-editor-field.php
add_filter( "learndash_settings_fields", "custom_learndash_settings_fields", 99, 2 );
function custom_learndash_settings_fields( $fields, $metabox_key ) {
if( $metabox_key = "learndash-course-display-content-settings" ) {
$fields['course_materials_2'] = array(
'label' => 'Testing',
'name' => 'course_materials_2',
'type' => 'wpeditor',
'value' => $fields['course_materials_2'],
'default' => '',
'placeholder' => esc_html__( 'Add a list of needed documents or URLs. This field supports HTML.', 'learndash' ),
@unaibamir
unaibamir / wpi
Last active April 4, 2021 00:33
A WP CLI addon script to install & configure WordPress in few seconds
#!/bin/bash
echo "================================================================="
echo "Awesome WordPress Installer!!"
echo "================================================================="
# download WordPress core files
wp core download