GeoEntity.last
SELECT geo_entities.* FROM geo_entities ORDER BY geo_entities.id DESC LIMIT 1
returns:
County id: 4, eid: nil, pid: nil, ename: nil, etype: 2, created_at: "2011-11-21 06:26:37", updated_at: "2011-11-21 06:26:37"
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| # sudo gem install bson | |
| # sudo gem install bson_ext | |
| # sudo gem install yajl-ruby | |
| # sudo gem install json | |
| # sudo gem install msgpack | |
| require 'rubygems' | |
| require 'benchmark' | |
| require 'yaml' | |
| require 'bson' |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>DVTConsoleDebuggerInputTextColor</key> | |
| <string>0.052 0.489 0.482 1</string> | |
| <key>DVTConsoleDebuggerInputTextFont</key> | |
| <string>Menlo-Bold - 11.0</string> | |
| <key>DVTConsoleDebuggerOutputTextColor</key> | |
| <string>0.432 0.325 0.276 1</string> |
| // Sketch for multiple return values in Objective-C | |
| // Method declaration: | |
| - (id, NSError *) someMethod:param; | |
| // Desugars to: | |
| typedef struct { id a, NSError *b } __someMethodResult; // Obviously gensym/anonymous in real implementation | |
| - (__someMethodResult) someMethod:param; | |
| // Return type encoding would be "{?=@@}", anonymous struct of two objects. |
| /* | |
| * Adds the serialNumber property to the UIDevice class | |
| * | |
| * The implementation uses undocumented (for iOS) IOKit functions, | |
| * so handle with caution and be prepared for nil. | |
| */ | |
| #import <UIKit/UIDevice.h> | |
| @interface UIDevice (serialNumber) |
| # RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
| # defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
| module Player | |
| describe MovieList, "with optional description" do | |
| it "is pending example, so that you can write ones quickly" | |
| it "is already working example that we want to suspend from failing temporarily" do | |
| pending("working on another feature that temporarily breaks this one") |
| # Two ENV variables control the 'gem' command: | |
| # | |
| # GEM_HOME: the single path to a gem dir where gems are installed | |
| # GEM_PATH: a standard PATH to gem dirs where gems are found | |
| # | |
| # A gem directory is a directory that holds gems. The 'gem' command will lay | |
| # out and utilize the following structure: | |
| # | |
| # bin # installed bin scripts | |
| # cache # .gem files ex: cache/gem_name.gem |
| // | |
| // © 2008 Eugene Solodovnykov | |
| // http://idevblog.info/mobileprovision-files-structure-and-reading/ | |
| // | |
| #import <Foundation/Foundation.h> | |
| int main (int argc, const char * argv[]) { | |
| NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | |
GeoEntity.last
SELECT geo_entities.* FROM geo_entities ORDER BY geo_entities.id DESC LIMIT 1
returns:
County id: 4, eid: nil, pid: nil, ename: nil, etype: 2, created_at: "2011-11-21 06:26:37", updated_at: "2011-11-21 06:26:37"
| % -------------------------------------------------------------- | |
| % This is all preamble stuff that you don't have to worry about. | |
| % Head down to where it says "Start here" | |
| % -------------------------------------------------------------- | |
| \documentclass[12pt]{article} | |
| \usepackage[margin=1in]{geometry} | |
| \usepackage{amsmath,amsthm,amssymb} | |