This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Sample Array | |
*/ | |
$arr = array( | |
'key_1' => array( | |
'key_1_1' => array( | |
'key_1_1_1' => array( | |
'key_1_1_1_1' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_theme(). | |
*/ | |
function example_theme($existing, $type, $theme, $path) { | |
return array( | |
'table_layout' => array( | |
'render element' => 'form', | |
'file' => 'includes/st_chart.theme.inc' | |
), | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = | |
email = | |
[alias] | |
st = status -sb | |
f = fetch | |
c = commit | |
p = pull | |
b = branch -ra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Setting Vundle Bundles | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set nocompatible | |
"filetype off | |
function! LoadVundle() | |
let vundle_installed=filereadable(expand('~/.vim/bundle/vundle/README.md')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Setting Vundle Bundles | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set nocompatible | |
"filetype off | |
function! LoadVundle() | |
let vundle_installed=filereadable(expand('~/.vim/bundle/vundle/README.md')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once '../vendor/autoload.php'; | |
use Guzzle\Http\Client as Guzzle; | |
use Guzzle\Plugin\Cookie\CookiePlugin; | |
use Guzzle\Plugin\Cookie\CookieJar\FileCookieJar; | |
$client = new Guzzle(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A simple closure that helps working with node fields | |
* | |
* $metadata_wrapper = entity_metadata_wrapper('node', $nid); | |
* $wrapper = metaDataWrapperHelper( $metadata_wrapper ); | |
* | |
* $field_name = $wrapper('field_name', 'text'); | |
*/ | |
function metaDataWrapperHelper($wrapper){ |
OlderNewer