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
@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>

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 / 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
<?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.
<?php
// this will convert file lines into a big array. So, if your file has 1000 lines the array count will be 1000
// if your file size 20 MB than this method will occupy 20MB of system ram .
$lines = file('big_file.txt');
// Now we are going to chunk the lines by 100000 on each chunk
// array_chunk will create a multi demential array with chunked line on array.
$chunked = array_chunk($lines,100000);
<?php
class GF_Field_Mailpoet extends GF_Field {
public $type = 'mailpoet';
public function get_form_editor_field_title() {
return esc_attr__( 'Mailpoet List', 'gravityforms' );
}
@tamimibrahim17
tamimibrahim17 / 0_urllib2.py
Created April 30, 2018 10:38 — forked from kennethreitz/0_urllib2.py
urllib2 vs requests
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
gh_url = 'https://api.github.com'
req = urllib2.Request(gh_url)
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm()
<div class="group">
<div class="input-number" min="0" max="10">
<input type="text" value="1" />
<button class="input-number-increment" data-increment></button>
<button class="input-number-decrement" data-decrement></button>
</div>
</div>
@tamimibrahim17
tamimibrahim17 / index.slim
Created April 23, 2018 11:57
Input number custom
.wrapper
input type="number" value="1"/
span.input-button.add +
span.input-button.remove -
.infos Try to shift + click
@tamimibrahim17
tamimibrahim17 / index.html
Created April 23, 2018 11:56
input number custom style
<div class="quantity">
<input type="number" min="1" max="9" step="1" value="1">
</div>