Skip to content

Instantly share code, notes, and snippets.

View tamimibrahim17's full-sized avatar
🎯
Focusing

Tamim Ibrahim tamimibrahim17

🎯
Focusing
  • Tikweb
  • Bangladesh
View GitHub Profile
<?php
include __DIR__.'/wp-load.php';
// Get all category of wordpress site.
// Categories are actually term located in `wp_terms` table.
$categories = get_terms();
// This will fetch all categories of all post type of the site.
@tamimibrahim17
tamimibrahim17 / PHP7-extensions.md
Created July 25, 2018 08:42 — forked from E1101/PHP7-extensions.md
PHP 7 Extensions

Extensions Catalog

This page holds everything we know about every extension we know about. Instructions for working with this page can be found on our main website.

If this page is annoyingly narrow to read, try this: https://github.com/xthexder/wide-github

Core Extensions

Name Homepage/location Has maintainers Has tests Has docs Works on PHP5 Works on PHP7 Is good on PHP 7 Details

DataTables Template

Just a simple datatables initial setup as example and for future use to build more advanced examples.

A Pen by Dirk Drijkoningen on CodePen.

License.

@tamimibrahim17
tamimibrahim17 / index.html
Created August 2, 2018 13:52
Vue.JS 2 - Advanced Datatable Component
<div id="datatables" class="container">
<h1>Vue.JS Advanced Datatable Component</h1>
<p>
This is an early demonstration of the datatable component as part of the vuetiful component framework. The component (and
the framework) isn't complete yet but this will give you an idea of where I'm headed with it. If you have any feedback
or suggestions please open an issue on the GitHub repo. This is the successor to the version I wrote for Vue 1.x.
You can see the original datatable <a href="https://codepen.io/andrewcourtice/pen/VabXQV" target="_blank">here</a>.
</p>
<p>
<a href="https://github.com/andrewcourtice/vuetiful" target="_blank">Vuetiful Repo on GitHub</a>
@tamimibrahim17
tamimibrahim17 / longPolling.js
Created August 6, 2018 19:00 — forked from jasdeepkhalsa/longPolling.js
Simple Long Polling Example with JavaScript and jQuery by Tian Davis (@tiandavis) from Techoctave.com (http://techoctave.com/c7/posts/60-simple-long-polling-example-with-javascript-and-jquery)
// Long Polling (Recommened Technique - Creates An Open Connection To Server ∴ Fast)
(function poll(){
$.ajax({ url: "server", success: function(data){
//Update your dashboard gauge
salesGauge.setValue(data.value);
}, dataType: "json", complete: poll, timeout: 30000 });
})();
@tamimibrahim17
tamimibrahim17 / index.html
Created September 13, 2018 13:49
sortable testing
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sortable testing</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css" />
</head>
<body>
<div class="container">
@tamimibrahim17
tamimibrahim17 / git-bash.sh
Created February 27, 2019 09:55 — forked from gyandeeps/git-bash.sh
Bash alias for git
# Global variables
re='^[0-9]+$'
# Will create a new branch with name ($1) from master
# it will also make sure master is up to date from origin
workstart() {
if ! [[ $1 =~ $re ]]
then
val=$1
else
@tamimibrahim17
tamimibrahim17 / driv-1184.txt
Created April 9, 2019 06:58
Imporve translation management system
#DRIV-1184
We need a smarter translation system, to make sure that development don’t stop and functions are not skipped, due to missing texts/translations.
Asking for translations each time is not practically possible, as it stops development and puts us off track.
Instead we need “verification/approval” built into translation system, so it is easy to see in the translation interface if texts are approved or not. This will allow the development to proceed, while also improving the translation quality, as translations do not need to be as instant.
Features needed to make this work in the translation interface:
@tamimibrahim17
tamimibrahim17 / main.php
Last active April 23, 2019 05:18
predict date format
<?php
// Predict date format (d/m/Y)
//
// Note:
// A month can be [01-12]
// A Day can be [01-31]
// A Year can be [1000-9999]
//
// Below are some date format