Skip to content

Instantly share code, notes, and snippets.

Vien Hoang vienhoang

Block or report user

Report or block vienhoang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vienhoang
vienhoang / gist:dcd32bdcf866e6208c2c
Last active Aug 29, 2015
Sublime: Useful Shortcuts (PC)
View gist:dcd32bdcf866e6208c2c

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@vienhoang
vienhoang / RouteClass.php
Last active Aug 29, 2015 — forked from dwightwatson/RouteClass.php
Laravel: Make the Controller title a little bit prettier
View RouteClass.php
<?php
public function routeClass($separator = ' - ')
{
$routeArray = Str::parseCallback(Route::currentRouteAction(), null);
if (last($routeArray) != null) {
// Remove 'controller' from the controller name.
$controller = str_replace('Controller', '', class_basename(head($routeArray)));
You can’t perform that action at this time.