This file contains hidden or 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
// 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]; |
This file contains hidden or 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
<?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. |
This file contains hidden or 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
/* | |
* 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 | |
* |
This file contains hidden or 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
# 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}" |
This file contains hidden or 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 '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}"/> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Module> | |
<ModulePrefs | |
title="Owner ID Test" | |
height="600"> | |
<Require feature="opensocial-0.7"/> | |
</ModulePrefs> | |
<Content type="html"> |
This file contains hidden or 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 <Foundation/CPObject.j> | |
@import "TripDaysController.j" | |
@import "Trip.j" | |
@import "DemoData.j" | |
@import "Settings.j" | |
@implementation TripsController : CPObject | |
{ | |
TripDaysController tripDaysController @accessors; | |
CPTextField tripLabel @accessors; |
This file contains hidden or 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 <Foundation/CPObject.j> | |
@implementation Location : CPObject | |
{ | |
// the id (I don't call it "id" because that's a type in Objective-J) | |
int identifier @accessors; | |
CPString description @accessors; | |
CPString latitude @accessors; | |
CPString longitude @accessors; | |
CPString transportationKind @accessors; |
This file contains hidden or 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
@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 |
This file contains hidden or 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 <Foundation/CPObject.j> | |
@import "Location.j" | |
@import "DemoData.j" | |
@implementation LocationsController : CPObject | |
{ | |
CPArray locations; | |
} | |
- (void)setLocations:(CPArray)someLocations { |
OlderNewer