Skip to content

Instantly share code, notes, and snippets.

Alberto Peña Abril plagelao

Block or report user

Report or block plagelao

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dynamodb-local.rb
class DynamodbLocal < Formula
desc "Client-side database and server imitating DynamoDB"
homepage ""
url ""
version "2016-05-17"
sha256 "d79732d7cd6e4b66fbf4bb7a7fc06cb75abbbe1bbbfb3d677a24815a1465a0b2"
bottle :unneeded
def data_path
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
plagelao /
Created Apr 28, 2012
Things I love from the internet

This is a canon of the things I love. Things that I come back to, things that have really touch me. Doing this exercise I have realized how little things do I come back to... Still, there are some tabs I have opened always on my browser.

The first one is related to github and how they work. It's a presentation and a series of 3 blog post about how they work. It is really inspiring and I have read it a couple of times in the last 2 weeks:

The second one is a presentation Sebastian Hermida shared with me a while ago. I have watched the whole of it just once, but I've watch some parts 2 or 3 times already. It is a talk by Bret Victor about inventing, fighting, feedback... well, a lot of things, but it is really good:

plagelao / gist:1144782
Created Aug 14, 2011
fizzbuzz FP style
View gist:1144782
def fizzbuzz_strings
fizz = ->(number) { 'fizz' }
buzz = ->(number) { 'buzz' }
default = ->(number) { number.to_s }
[fizz, buzz, default]
def fizzbuzz_rules
multiple_of_3 = ->(number) { number % 3 == 0 }
View gist:859568
let mapleader = ","
View mixins.sass
=gradient(!top, !bottom)
background-image: -moz-linear-gradient(top, !top, !bottom)
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, !top),color-stop(1, !bottom))
background-image: -webkit-linear-gradient(!top, !bottom)
background-image: linear-gradient(top, !top, !bottom)
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='!top', EndColorStr='! bottom')
View gist:853872
" vundle
set rtp+=~/.vim/vundle.git/
call vundle#rc()
plagelao / .vimrc
Created Feb 27, 2011
Presentation, colors and syntax
View .vimrc
" file syntax color on
syntax on
filetype on " enable file type detection
" colors
set t_Co=256 " use 256 colors
" show when you are in insert or visual mode
set showmode
plagelao / bdd.rb
Created Feb 20, 2011
Testing twitter authentication
View bdd.rb
OmniAuth.config.test_mode = true
OmniAuth.config.mock_auth[:twitter] = {
'provider' => 'twitter',
'uid' => '1234',
'user_info' => {'name' => user_name}
View file.feature
Given a "XBox" with a price of "250€"
When I ask for the catalogue
Then I can see in the catalogue a "XBox" with a price of "250€"
You can’t perform that action at this time.