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/ruby | |
# | |
# Inscribe a un jugador de elbruto.es a los torneos. | |
# | |
# El nombre del jugador y la clave se definen en conf.yaml | |
# | |
# escrito por Luis Parravicini ([email protected]) | |
require 'yaml' |
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
/* | |
jquery twitter. By Luis Parravicini. | |
http://ktulu.com.ar/blog/2009/10/03/twitter-updates-with-jquery/ | |
*/ | |
(function($) { | |
$.twitter_updates = function(options) { | |
var defaults = { 'count': 10 } | |
var opts = $.extend(defaults, options) | |
var elem = this |
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
import java.io.File; | |
import java.io.IOException; | |
import java.util.List; | |
import javax.xml.stream.FactoryConfigurationError; | |
import javax.xml.stream.XMLOutputFactory; | |
import javax.xml.stream.XMLStreamException; | |
import javax.xml.stream.XMLStreamWriter; | |
import org.apache.lucene.document.Document; |
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/ruby1.9.1 | |
# Script para traducir isbn a informacion del libro buscando en varias | |
# librerias online. Se probo por ultima vez el 2009-12-11. | |
# | |
# Author:: Luis Parravicini | |
# Copyright:: Copyright (C) 2009 Luis Parravicini | |
# License:: GPL v2 | |
# | |
# http://ktulu.com.ar/blog/2009/12/11/traduciendo-isbn/ |
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/ruby1.9.1 | |
# | |
# Reads the next line from a file and tweets it. It saves the position | |
# of the last line read so successive executions will use different | |
# lines of text. Authentication info is read from a file with YAML. | |
# | |
# http://ktulu.com.ar/blog/2010/05/07/twiteos-automaticos/ | |
# [email protected] |
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 'fileutils' | |
include FileUtils | |
$dir = ARGV.shift | |
if $dir.nil? | |
puts "usage: #{$0} <dir>" | |
exit 1 | |
end | |
Dir.glob("#{$dir}/**/*.png").each do |path| |
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 'fileutils' | |
include FileUtils | |
dir = ARGV.shift | |
method = ARGV.shift | |
if dir.nil? || method.nil? | |
puts "usage #{$0} <image-dir> <method>" | |
exit 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
require 'fileutils' | |
include FileUtils | |
# | |
# Copy images from a directory hierarchy like this: | |
# | |
# dir/ | |
# 320x480/ | |
# 640x480/ | |
# 1024x768/ |
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 | |
# | |
# Takes a screenshot every 5 seconds and save the file to a certain folder passed as argument. | |
# It uses screencapture, which comes with OS X. | |
# | |
# | |
require 'fileutils' | |
include FileUtils |
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
// | |
// Tries to decode all the files on a certain directory and outputs the result: | |
// System.out for the files with a qr code | |
// System.err for the files without a qr code | |
// | |
// based on code from https://stackoverflow.com/questions/36210537/find-qr-code-in-image-and-decode-it-using-zxing | |
// | |
// needs the ZXing jars from: | |
// https://oss.sonatype.org/content/repositories/snapshots/com/google/zxing/core/3.3.4-SNAPSHOT/core-3.3.4-20181025.133109-2.jar | |
// https://oss.sonatype.org/content/repositories/snapshots/com/google/zxing/javase/3.3.4-SNAPSHOT/javase-3.3.4-20181025.133127-2.jar |
OlderNewer