Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
<?php | |
function get_client_ip() { | |
if(isset($_SERVER["HTTP_X_FORWARDED_FOR"])) { | |
if(isset($_SERVER["HTTP_CLIENT_IP"])) { | |
return $_SERVER["HTTP_CLIENT_IP"]; | |
} else { | |
return $_SERVER["REMOTE_ADDR"]; | |
} | |
return $_SERVER["HTTP_X_FORWARDED_FOR"]; |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
-webkit-border-radius: 3px 3px 0 0; | |
-khtml-border-radius: 3px 3px 0 0; | |
-moz-border-radius: 3px 3px 0 0; | |
-ms-border-radius: 3px 3px 0 0; | |
-o-border-radius: 3px 3px 0 0; | |
border-radius: 3px 3px 0 0; |
/* | |
* Normalized hide address bar for iOS & Android | |
* (c) Scott Jehl, scottjehl.com | |
* MIT License | |
*/ | |
(function( win ){ | |
var doc = win.document; | |
// If there's a hash, or addEventListener is undefined, stop here | |
if( !location.hash && win.addEventListener ){ |