This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<page title="Home"> | |
<body: class="fuelux"/> | |
<content:> | |
<header class="content-header hero-unit"> | |
<h1>Test</h1> | |
<script src="//www.fuelcdn.com/fuelux/3.6.3/js/fuelux.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spreadsheet' | |
book = Spreadsheet::Workbook.new | |
sheet1 = book.create_worksheet | |
sheet1.row(0).concat %w{Product Price} | |
sheet1.row(1).concat ['PC', 1000.55] | |
sheet1.row(2).concat ['Phone', 200.25] | |
sheet1.row(3).concat ['Radio', 20.45] | |
book.write 'spreadsheet_currency_test.xls' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'lxc' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validates_format_of :dni, :with => /\A[0-9]{8}[A-Za-z]\Z/, :on => :update, :message => "El DNI tiene que tener un formato como el siguiente: 12345678A" | |
validate :dni_letter_must_match_number | |
def dni_letter_must_match_number | |
if "TRWAGMYFPDXBNJZSQVHLCKE"[dni[0..7].to_i % 23].chr != dni[8] | |
errors.add(:dni, "La letra no coincide con el número") | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a target="_blank" href="http://signame.zentzumenguztiekin.org"> | |
<img src="http://signame.zentzumenguztiekin.org/semaforo"> | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Send images from the N900: | |
gst-launch v4l2src device=/dev/video0 ! videoscale! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! jpegenc ! multipartmux ! tcpserversink host=192.168.5.3 po | |
rt=5000 | |
# Receive images in Ubuntu and pipe them into /dev/video1: | |
sudo gst-launch tcpclientsrc host=192.168.5.4 port=5000 ! multipartdemux ! jpegdec ! v4l2sink device=/dev/video1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'autotest' | |
require 'rbconfig' | |
require File.join(File.dirname(__FILE__), 'result') | |
## | |
# Autotest::Growl | |
# | |
# == FEATUERS: | |
# * Display autotest results as local or remote Growl notifications. |