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 |
#test | |
rodri | |
kk |
{ | |
"files": | |
{ | |
"jquery" : "http://code.jquery.com/jquery.js", | |
"jquery.min" : "http://code.jquery.com/jquery.min.js", | |
"jquery-cookie" : "https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js", | |
"jquery-dotimeout" : "https://raw.github.com/cowboy/jquery-dotimeout/master/jquery.ba-dotimeout.min.js", | |
"jquery-extra-selectors" : "https://raw.github.com/keithclark/JQuery-Extended-Selectors/master/jquery-extra-selectors.js", | |
"jquery-flexslider" : "https://raw.github.com/mbmufffin/FlexSlider/master/jquery.flexslider-min.js", | |
"jquery-mediaelement" : "https://raw.github.com/johndyer/mediaelement/master/build/mediaelement-and-player.js", |
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 |
var MoneyCalculator = function (exchangeService) { | |
this.sum = function (a, b) { | |
if (a.currency !== b.currency) { | |
b.amount = exchangeService.convert(b, a.currency); | |
} | |
return { | |
"amount" : a.amount + b.amount, | |
"currency" : a.currency | |
}; |
" vim:fdm=marker | |
" Vim-Plug {{{ | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall | source $MYVIMRC | |
endif | |
call plug#begin('~/.vim/plugged') |
#Link a repo de la clase de hoy https://github.com/rodrigore/githubapi-composer
Given a JSON feed of products from a store, figure out how much it would cost to buy every variant of every single lamp and wallet that store has for sale.
composer require 'illuminate/database:5.2.*'
Configurar eloquent
use Illuminate\Database\Capsule\Manager as Capsule;
$capsule = new Capsule;
$capsule->addConnection([