Edit with Ukulele like described here.
Needs restart!
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# This script reproduces the issue with artifacts when | |
# handling (semi)transparent PNG files: | |
# https://github.com/python-pillow/Pillow/issues/1449 | |
# Version used: | |
# |
I just switched from iPhone 5 to a Nexus 5 32GB for 399€ from the Google Play Store.
I used the Nexus for about a month now and I am pretty impressed.
It's a lot of phone for the price.
Pros:
module PDF | |
class Loader | |
def self.content_for(body) | |
temp_pdf = Tempfile.new('pdf') | |
temp_pdf << body.force_encoding('UTF-8') | |
temp_pdf.close | |
receiver = PDF::SimplePageTextReceiver.new | |
PDF::Reader.file(temp_pdf.path, receiver) | |
receiver.content |
require 'geocoder' | |
Geocoder.configure(:lookup => :test) | |
Geocoder::Lookup::Test.add_stub( | |
"Nantes, France", [ | |
{ | |
'latitude' => 47.218371, | |
'longitude' => -1.553621, | |
'address' => '4 Rue de la Commune, 44000 Nantes, France', | |
'state' => 'Pays de la Loire', |
unless File.exists?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', '4.0.0' | |
gem 'sqlite3' | |
GEMFILE | |
system 'bundle' | |
end |
responding to this conversation on twitter: https://twitter.com/phoet/status/383552370015485952
it would be awesome if the RubyMotion toolchain would help me fail fast when submitting stuff to apple.
i have had several issue when doing this in the past:
info_plist
entries were emptyCFBundleShortVersionString
was not set properlyclass Bahn | |
URL = 'http://reiseauskunft.bahn.de/bin/bhftafel.exe' | |
def initialize | |
@now = Time.now | |
@date = @now.strftime('%d.%m.%y') | |
@time = @now.strftime('%H:%M') | |
end | |
def scrape |
require 'simplecov' | |
SimpleCov.command_name "acceptance" | |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../../config/environment", __FILE__) | |
require 'rspec/rails' | |
require 'rspec/autorun' | |
require 'capybara/rails' | |
require 'capybara/poltergeist' |