Skip to content

Instantly share code, notes, and snippets.

@minas7111
minas7111 / clear_selection.js
Last active March 15, 2016 15:43 — forked from mudassir0909/clear_selection.js
Selectize plugin which gives an option to clear selection
Selectize.define( 'clear_selection', function ( options ) {
var self = this;
//Overriding because, ideally you wouldn't use header & clear_selection simultaneously
self.plugins.settings.dropdown_header = $.extend({
title: 'Clear selection'
}, options);
this.require( 'dropdown_header' );
@minas7111
minas7111 / test mina.skema
Last active August 29, 2015 14:10
the description for this gist
[{"name":"members","color":"Red","position":{"x":464,"y":549},"increment":false,"timestamp":true,"softdelete":true,"column":[{"name":"id","type":"increments","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c25","order":0},{"name":"first_name","type":"string","length":"100","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c44","order":1},{"name":"last_name","type":"string","length":"100","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c52","order":2},{"name":"birth_date","type":"date","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible
@minas7111
minas7111 / DB-optimizations.md
Created October 25, 2013 12:57
Some recommandations for SQL language and MySQL optmizations

Databases Recommandations & Optmizations

Queries

  • Avoid SELECT * : specify column names that are really going to be used
  • JOIN prefer to use indexed columns and columns of the same type
  • LIMIT 0,1 when getting a unique row
@minas7111
minas7111 / CodingStandardAndOptimizations.md
Last active December 26, 2015 12:49
PHP Coding standard based on PSR (fig php), recommandations and optimizations

Coding Standards Cheat Sheet

Standards are good, but think READABILITY & MAINTENABILITY of your code first

  1. Coding Standards used

We use the standard made by the PHP Framework Interoperability Group