Skip to content

Instantly share code, notes, and snippets.

View rodrigore's full-sized avatar

Rodrigo Guzmán rodrigore

  • Santiago, Chile
View GitHub Profile
@rodrigore
rodrigore / gist:2967148
Created June 21, 2012 17:21 — forked from shrwnsan/gist:2860805
Sublime Text 2 - Fetch Settings
{
"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",
@rodrigore
rodrigore / gist:3084893
Created July 10, 2012 17:28
Sublime Text 2 - Useful Shortcuts

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
@rodrigore
rodrigore / MoneyCalculator.js
Created May 9, 2013 17:14
Solución al problema de efectuar operaciones (solamente suma en este caso) entre dos tipos de monedas, haciendo uso de Javascript y Jasmine. La clase MoneyCalculator contiene el metodo *sum* que permiten operar entre dos objetos, cuyas propiedades son *monto* y *moneda*. La clase MoneyCalculator recibe como parametro un objeto *exchangeService* …
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')
  • composer require 'illuminate/database:5.2.*'

  • Configurar eloquent

use Illuminate\Database\Capsule\Manager as Capsule;

$capsule = new Capsule;
$capsule->addConnection([

version 7

requerimientos

  • Validar que el nombre del usuario sea requerido, maximo 255 caracteres.
  • Validar en github battle que si se ingresa un nombre de usuario, se requiera el otro
  • Agregar repositorio de mayor stargazers del usuario, junto al lenguaje
  • En la tabla de ranking que aparezca el repositorio de mas estrellas y el lenguaje
  • Poder filtrar la tabla de ranking para un cierto lenguaje , y asi ver los locos mas bacanes (y el repositorio asociado) de cierto lenguaje paginar tabla ranking