⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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 | |
function randomize($initial, $to_merge = NULL) | |
{ | |
$result = array(); | |
$lengths = array(); | |
$total = 0; | |
$arrays = func_get_args(); | |
foreach ($arrays as $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
<?php | |
function insertion_sort($arr) | |
{ | |
$length = count($arr); | |
for ($i = 1; $i < $length; $i++) | |
{ | |
$value = $arr[$i]; | |
$j = $i - 1; |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Selecting / Jumping
Ctrl+L | select line (repeat to select next lines) |
Ctrl+D | select word (repeat select others occurrences in context for multiple editing) |
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 defined('SYSPATH') OR die('No direct access allowed!'); | |
class Controller_Error extends Controller_Layout { | |
public function before() | |
{ | |
parent::before(); | |
$this->response->status((int) $this->request->action()); |
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
BrowserMatch MSIE ie | |
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie |
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
#!/usr/bin/env bash | |
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ | |
### | |
# Label definitions | |
### | |
declare -A LABELS | |
# Platform |
I hereby claim:
- I am hkdobrev on github.
- I am hkdobrev (https://keybase.io/hkdobrev) on keybase.
- I have a public key whose fingerprint is BF8F D83B EEC4 314A FDFF 6C02 A0E6 4406 2DD8 4926
To claim this, I am signing this object:
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |