Ever wanted to generate @media
rules for your grid?
Ever used a calculator or an Excel spreadsheet to calculate widths for every column?
No more!
Usage:
INFO global: Vagrant version: 1.2.3 | |
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.3/plugins/communicators/ssh/plugin.rb | |
INFO manager: Registered plugin: ssh communicator | |
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.3/plugins/provisioners/cfengine/plugin.rb | |
INFO manager: Registered plugin: CFEngine Provisioner | |
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.3/plugins/provisioners/puppet/plugin.rb | |
INFO manager: Registered plugin: puppet | |
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.3/plugins/provisioners/shell/plugin.rb | |
INFO manager: Registered plugin: shell | |
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.2.3/plugins/provisioners/ansible/plugin.rb |
def insertion_sort(list): | |
for index in range(len(list)) | |
value = list[index] | |
i = index - 1 | |
while i>=0 and value < list[i]: | |
list[i+1] = list[i] # shift number in slot i right to slot i+1 | |
list[i] = value #shift value left into slot i | |
i = i - 1 |
<?php | |
function randomize($initial, $to_merge = NULL) | |
{ | |
$result = array(); | |
$lengths = array(); | |
$total = 0; | |
$arrays = func_get_args(); | |
foreach ($arrays as $array) |
<?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) |
<?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()); |