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
Oferta de trabajo en Simplelógica http://simplelogica.net keywords: rails, | |
ruby, web, simplelogica, hacking Contacto: [email protected] Fecha: | |
28/10/2008 | |
Hola, | |
en Simplelógica estamos buscando un/una desarrollador/desarrolladora en Rails | |
para trabajar con nosotros. No necesitamos superexpertos, sino gente que esté | |
entusiasmada por su experiencia con Rails hasta el momento y quiera continuar | |
aprendiendo y mejorando en un entorno bastante agradable, con proyectos |
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
#!/bin/sh | |
mkdir -p /usr/local/src && cd /usr/local/src | |
curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2 | |
tar -xjvf ruby-1.9.1-p0.tar.bz2 | |
cd ruby-1.9.1-p0 | |
./configure --prefix=/usr --program-suffix=19 --enable-shared | |
make && make install |
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
class Search < OpenStruct | |
def to_hash | |
@table | |
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
#!/usr/bin/env ruby | |
# | |
# This fork add support for running code in a forked process | |
# | |
# encoding: UTF-8 | |
# | |
# LearnRubyByExample: | |
# | |
# Ruby is a highly expressive programming language. | |
# Testing software is an expressive way to communicate how it works. |
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
#!/usr/bin/env ruby | |
=begin | |
DESCRIPTION | |
This little program will save all tweets from a user timelime to files | |
~/.twitter_backup/tweets/tweet_id.yaml # Full yaml tweet | |
~/.twitter_backup/tweets/tweet_id.txt # Only tweet text | |
You can search your tweets with: |
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 "time" | |
party_time = Time.parse("5/04/2012 6:00:00 P.M.") | |
trap(:INT){puts ""} | |
loop do | |
seconds_left = party_time.to_i - Time.now.to_i | |
print "\rSeconds left to party: #{seconds_left}" | |
sleep(1) | |
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
#!/bin/bash | |
case $1 in | |
*_EDITMSG|*MERGE_MSG|*_TAGMSG ) | |
/usr/local/bin/vim $1 | |
;; | |
*.md|*.txt ) | |
/usr/local/bin/mmdc $1 | |
;; | |
* ) |
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
#!/bin/bash | |
# | |
# Convert an SVG file to a PDF file by using headless Chrome. | |
# | |
if [ $# -ne 2 ]; then | |
echo "Usage: ./svg2pdf.bash input.svg output.pdf" 1>&2 | |
exit 1 | |
fi |