Skip to content

Instantly share code, notes, and snippets.

View neotohin's full-sized avatar

Amzad Hossain neotohin

View GitHub Profile
@neotohin
neotohin / dabblet.css
Created December 26, 2013 11:50
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.mbox{
border: 2px solid rgba(0,0,0, .3);
width: 100px;
height: 100px;
transition: 1s height;
}
@neotohin
neotohin / drupal.tabular.php
Created May 30, 2013 11:26
Drupal : Make fieldset Items Tabular
/**
* Implements hook_theme().
*/
function example_theme($existing, $type, $theme, $path) {
return array(
'table_layout' => array(
'render element' => 'form',
'file' => 'includes/st_chart.theme.inc'
),
);
@neotohin
neotohin / array_item.php
Last active December 17, 2015 20:49
Get reference of a specific item via sequence from a multi-dimension array.
<?php
/**
* Sample Array
*/
$arr = array(
'key_1' => array(
'key_1_1' => array(
'key_1_1_1' => array(
'key_1_1_1_1' => array(
@neotohin
neotohin / Sublimetext:Preference:User
Last active December 16, 2015 18:18
My Sublimetext editor User Settings
{
"auto_complete_commit_on_tab": false,
"bold_folder_labels": true,
"color_scheme": "Packages/User/Solarized (Light) (SL).tmTheme",
"default_line_ending": "unix",
"detect_indentation": false,
"draw_minimap_border": true,
"enable_tab_scrolling": true,
"enable_telemetry": "false",
"ensure_newline_at_eof_on_save": true,
@neotohin
neotohin / php.snippets
Created August 12, 2011 17:46 — forked from aaroneaton/php.snippets
CodeIgniter PHP snippets for the VIM plugin SnipMate
# SnipMate is required to use snippets
# Download SnipMate: http://www.vim.org/scripts/script.php?script_id=2540
# Put this file in ~/.vim/snippets/ then restart vim
# This snippet file includes many useful snippets for CodeIgniter. Please feel free to fork and contribute!
snippet php
<?php
${1}
snippet ec
echo "${1:string}"${2};
snippet inc