I hereby claim:
- I am jfahrenkrug on github.
- I am jfahrenkrug (https://keybase.io/jfahrenkrug) on keybase.
- I have a public key whose fingerprint is BE25 078F A534 3D3F E12D B915 3105 2A52 D4CA A081
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// 2008 by Johannes Fahrenkrug, http://blog.springenwerk.com | |
@implementation AccountViewController | |
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { | |
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { | |
// Initialization code | |
self.title = @"Settings"; | |
// NSMutableData * declared in .h | |
receivedData = [[NSMutableData data] retain]; |
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
MODIFIED by Johannes Fahrenkrug (http://springenwerk.com) to make it work on the Mac. | |
Thanks to http://groups.google.com/group/zxing/browse_thread/thread/2ad34ac61ac6ef75/676c804d44d40947?lnk=gst&q=mac#676c804d44d40947 | |
Copyright 2007 ZXing authors | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. |
/* | |
* MODIFIED by Johannes Fahrenkrug (http://springenwerk.com) to also read TIFF files | |
* Copyright 2007 ZXing authors | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
# 2009, Johannes Fahrenkrug, http://springenwerk.com | |
# Licence: use it however you want. | |
# make sure we at least have the input file as an argument | |
if ARGV.size != 2 | |
puts "Usage: ruby inliner.rb inputfile outputfile" | |
else | |
inputfile = ARGV[0] | |
outputfile = ARGV[1] | |
puts "Input file: #{inputfile}" |
require 'base64' | |
contents = IO.read('/Users/johannes/Code/opensocial/images/screenshot.png') | |
data = Base64.encode64(contents) | |
puts %{<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
</head> | |
<body> | |
<img src="data:image/png;base64,#{data}"/> |
<?xml version="1.0" encoding="UTF-8"?> | |
<Module> | |
<ModulePrefs | |
title="Owner ID Test" | |
height="600"> | |
<Require feature="opensocial-0.7"/> | |
</ModulePrefs> | |
<Content type="html"> |
@import <Foundation/CPObject.j> | |
@import "TripDaysController.j" | |
@import "Trip.j" | |
@import "DemoData.j" | |
@import "Settings.j" | |
@implementation TripsController : CPObject | |
{ | |
TripDaysController tripDaysController @accessors; | |
CPTextField tripLabel @accessors; |
@implementation DemoData : CPObject | |
+ (CPString)exampleJSONString { | |
var string = @"[{\"id\": 1, \"latitude\": \"39.099470\", \"longitude\": \"-94.563500\", \"description\": \"Corner of Twelfth and Vine\", \"transportation_kind\": \"\"}, {\"id\": 2, \"latitude\": \"37.802109\", \"longitude\": \"-122.432691\", \"description\": \"Moscone Center West\", \"transportation_kind\": \"S\"}]"; | |
return string; | |
} | |
@end |
@import <Foundation/CPObject.j> | |
@import "Location.j" | |
@import "DemoData.j" | |
@implementation LocationsController : CPObject | |
{ | |
CPArray locations; | |
} | |
- (void)setLocations:(CPArray)someLocations { |