Skip to content

Instantly share code, notes, and snippets.

<% form_for_identity_verification_gateway("API-KEY", {:action => 'create'}, {:public_verification => true}) do %>
<%= hidden_field_tag 'lang', 'en' %>
<%= submit_tag "Identificarse" %>
<% end %>
#!/usr/bin/env bash
# By: Ernesto Jiménez <erjica@gmail.com>
#
# This script will generate aliases for all your applications
# in your /Applications folder in OS X allowing you to easily
# open applications from your command line.
# Examples:
# safari http://ernesto-jimenez.com
# finder ~
# quicktime-player /path/to/video.mov
% Fue ver implementado el QuickSort en Erlang
% Y acto seguido estaba comprando un libro de Erlang en Amazon
quicksort([]) -> [];
quicksort([Pivot|Rest]) ->
quicksort([Front || Front <- Rest, Front < Pivot])
++ [Pivot] ++
quicksort([Back || Back <- Rest, Back >= Pivot])
# = Random password generator
# Generate 12 chars-long alphanumeric passwords
$ alias random_password
alias random_password='openssl rand -base64 1000 | tr -cd "[:alnum:]" | cut -c 1-12'
$ random_password
EWLdOGjJnfl3
$ random_password
RBkQi2bkHxWt
$ random_password
l0TaXzLVvoBJ
A backup of http://sites.google.com/site/redcodenl/creating-shazam-in-java-1 just in case
Why is this necessary? Read http://sites.google.com/site/redcodenl/patent-infringement
Please fork, tweet about, etc.
----
Creating Shazam in Java
A couple of days ago I encountered this article: How Shazam Works
This got me interested in how a program like Shazam works… And more importantly, how hard is it to program something similar in Java?
# History navigation: start writting the command you want to repeat and up/down
bind '"\e[A"':history-search-backward
bind '"\e[B"':history-search-forward
# Set prefix command to Ctrl-a
set -g prefix C-a
unbind C-b
# Reduce tmux delay for more responsiveness
set -sg escape-time 1
# Window and pane index count starts in 1 rather tan 0
set -g base-index 1
setw -g pane-base-index 1
@ernesto-jimenez
ernesto-jimenez / gist:2286214
Created April 2, 2012 18:43
Automatically reload your active tab in Chrome. See the comments for instructions.
#!/usr/bin/env osascript
#
# This AppleScript reloads Google Chrome. It can be used in combination kicker
# gem to automatically reload google chrome when you save a file from your app.
#
# Usage for a rails app:
# 1) Place this file in $RAILS_ROOT/script/reload_chrome
# 2) Install the kicker gem: gem install kicker
# 3) Run: kicker -e script/reload_chrome app public
#
@ernesto-jimenez
ernesto-jimenez / Gemfile
Created October 14, 2012 20:46
Rails Rumble gemfile
# Gemfile for http://splitpay.at
source 'https://rubygems.org'
gem 'rails', '3.2.8'
gem 'rack-force_domain'
gem 'paypal_adaptive'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discussions around concrete examples, not handy-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style