Skip to content

Instantly share code, notes, and snippets.

View tdchien's full-sized avatar
🛴
Working hard

Chien Tran tdchien

🛴
Working hard
View GitHub Profile
@tdchien
tdchien / User Setting.vscode
Last active October 27, 2017 08:20
My setting for VSCode
{
"editor.fontSize": 14,
"editor.lineHeight": 23,
"editor.fontFamily": "'Droid Sans Mono', Consolas, monospace, 'Courier New'",
"files.eol": "\n",
// php-cs-fixer
"php-cs-fixer.executablePath": "php-cs-fixer",
"php-cs-fixer.executablePathWindows": "php-cs-fixer.bat", //eg: php-cs-fixer.bat
"php-cs-fixer.onsave": false,
@tdchien
tdchien / PDO Binding param.php
Created October 23, 2017 07:40
PDO Binding param.php
<?php
$dbh = null;
try {
$dbh = new PDO('mysql:host=localhost;dbname=webcms', 'webcms', 'webcms');
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}
@tdchien
tdchien / list extensions.vscode
Created October 21, 2017 16:50
List of favorites extensions using with Microsoft Visual Studio Code
alefragnani.project-manager
Compulim.compulim-vscode-closetag
donjayamanne.githistory
EditorConfig.EditorConfig
emmanuelbeziat.vscode-great-icons
felixfbecker.php-debug
felixfbecker.php-intellisense
felixfbecker.php-pack
ikappas.phpcs
joelday.docthis
@tdchien
tdchien / package_control.json
Last active October 18, 2017 08:49
Package Control List
[
"Agila Theme",
"Alignment",
"All Autocomplete",
"Blade Snippets",
"Bootstrap 3 Autocomplete",
"Bootstrap 3 Snippets",
"CodeIgniter 2 ModelController",
"CodeIgniter Snippets",
"CodeIgniter Utilities",
@tdchien
tdchien / SublimeLinter.sublime-settings
Created October 16, 2017 15:44
SublimeLinter.sublime-settings
{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"php": {
@tdchien
tdchien / SublimeLinter.sublime-settings
Last active October 12, 2017 03:33
SublimeLinter Setting with Sublime Text 3. View more at https://github.com/SublimeLinter/SublimeLinter-php
{
"close_windows_when_empty": false,
"color_scheme": "Packages/User/SublimeLinter/Agila Dracula (SL).tmTheme",
"default_line_ending": "unix",
"detect_indentation": true,
"detect_slow_plugins": false,
"drag_text": true,
"draw_white_space": "all",
"fallback_encoding": "UTF-8",
"folder_exclude_patterns":
@tdchien
tdchien / virtualhost
Created September 11, 2017 03:33
Virtualhost
<VirtualHost *:80>
ServerName laravel.demo
DocumentRoot "D:/www/kloon_training/demo_laravel/public"
<Directory "D:/www/kloon_training/demo_laravel/public">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
@tdchien
tdchien / Default (Windows).sublime-keymap
Last active July 10, 2017 15:06
Some key-map for sublime on window
[
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" },
{ "keys": ["ctrl+shift+r"], "command": "reveal_in_side_bar"},
{"keys": ["f1"], "command": "dired", "args": { "immediate": true } }
]
@tdchien
tdchien / symlink.php
Created November 24, 2016 17:24
Symlink for laravel storage
// History.js It!
// v1.0.1 - 30 September, 2012
// https://gist.github.com/854622
(function(window,undefined){
// Prepare our Variables
var
History = window.History,
$ = window.jQuery,
document = window.document;