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 'autotest/growl' | |
require 'autotest/rcov' | |
# require 'autotest/html_report' | |
# require 'autotest/kdenotify' | |
# require 'autotest/menu' | |
#require 'autotest/pretty' | |
require 'autotest/redgreen' | |
# require 'autotest/snarl' | |
# require 'autotest/timestamp' |
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 | |
require 'optparse' | |
require 'rubygems' | |
require 'meow' | |
def usage! | |
puts $opt | |
exit | |
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
@zipcode = Zipcode.find_by_name("85023") | |
# Passing in a hash of search parameters is more convenient for my purposes, | |
# but searchlogic allows the second, chained method of searching also works. | |
@locations = Location.by_location(:origin => @zipcode, :within => 10).search(:name_like => "searchlogic", :city_is => "Phoenix") | |
@locations = Location.by_location(:origin => @zipcode, :within => 10).name_like("searchlogic").city_is("Phoenix") |
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 "rack/openid" | |
require "warden" | |
use Rack::OpenID | |
use Warden::Manager do |manager| | |
Warden::Strategies.add(:openid) do | |
def authenticate! | |
if resp = env["rack.openid.response"] | |
case resp.status | |
when :success |
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 | |
require 'rubygems' | |
require 'daemons' | |
dir = File.expand_path(File.join(File.dirname(__FILE__), '..')) | |
daemon_options = { | |
:multiple => false, | |
:dir_mode => :normal, | |
:dir => File.join(dir, 'tmp', 'pids'), | |
:backtrace => true |
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
From b0b2ffc6b456d93466d34afee36185e9fe4ee9f4 Mon Sep 17 00:00:00 2001 | |
From: baron <fake_email@gmail.com> | |
Date: Sun, 25 Apr 2010 22:52:47 +0900 | |
Subject: [PATCH] fix build error for demo | |
--- | |
.../TableViewPull.xcodeproj/project.pbxproj | 24 ++++++++++---------- | |
1 files changed, 12 insertions(+), 12 deletions(-) | |
diff --git a/Demo/TableViewPull/TableViewPull.xcodeproj/project.pbxproj b/Demo/TableViewPull/TableViewPull.xcodeproj/project.pbxproj |
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
// | |
// YAJLTopLevelParser.h | |
// | |
// Created by John Wright on 03/29/10. | |
// Copyright 2010. All rights reserved. | |
// | |
// Permission is hereby granted, free of charge, to any person | |
// obtaining a copy of this software and associated documentation | |
// files (the "Software"), to deal in the Software without | |
// restriction, including without limitation the rights to use, |
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
# define ALog(format, ...) NSLog((@"%s [L%d] " format), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); | |
# ifdef DEBUG | |
# define DLog(format, ...) ALog(format, ##__VA_ARGS__); | |
# else | |
# define DLog(...) | |
# endif |
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
// | |
// UACellBackgroundView.m | |
// Ambiance | |
// | |
// Created by Matt Coneybeare on 1/31/10. | |
// Copyright 2010 Urban Apps LLC. All rights reserved. | |
// | |
#define TABLE_CELL_BACKGROUND { 1, 1, 1, 1, 0.866, 0.866, 0.866, 1} // #FFFFFF and #DDDDDD | |
#define kDefaultMargin 10 |
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
// | |
// UACellBackgroundView.h | |
// Ambiance | |
// | |
// Created by Matt Coneybeare on 1/31/10. | |
// Copyright 2010 Urban Apps LLC. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
OlderNewer