Skip to content

Instantly share code, notes, and snippets.

View florianmski's full-sized avatar

Florian Mierzejewski florianmski

View GitHub Profile
@florianmski
florianmski / wg-gesucht.rb
Created February 23, 2017 13:02
A script to automatize what you already do by hand anyway on wg gesucht (i.e clicking on the ads and sending your saved message)
require 'rubygems'
require 'mechanize'
DEBUG = true
SEPARATOR = '========'
BASE_URL = 'https://www.wg-gesucht.de'
LANG = 'en'
CITY = 'berlin'
# this is what you find in the url when tweaking the filtering of the results
@florianmski
florianmski / convertLocalizable.rb
Created August 23, 2012 22:14
Convert your Localizable.strings (iOS) to strings.xml (Android)
#!/usr/bin/ruby
# based on https://github.com/tmurakam/cashflow/blob/0a01ac9e0350dfb04979986444244f8daf4cb5a8/android/convertStrings.rb
# support comments and Converter such as "%@", "%d", "%0.1f"...
# in your directory : ./main.rb Localizable.strings
file = File.open("strings.xml", "w");
file.puts "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
file.puts "<resources>"