- Boat1: 26.971038, -129.023438
- Boat2: 30.363396, -66.796875
- Boat3: 40.905210, -130.429688
- Tower1: 45.019185, -112.500000
- Tower2: 37.918201, -108.281250
- Tower3: 30.968189, 92.109375
DECLARE @intPage int; | |
DECLARE @intPageSize int; | |
SET @intPage = 1; | |
SET @intPageSize = 20; | |
DECLARE @intStartRow int; | |
DECLARE @intEndRow int; | |
SET @intStartRow = (@intPage -1) * @intPageSize + 1; |
$store = New-Object System.Security.Cryptography.X509Certificates.X509Store("My","LocalMachine") | |
$store.Open("ReadOnly") | |
$store.Certificates |
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"link"]]; | |
AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request | |
success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) { | |
NSDictionary *jsonDict = (NSDictionary *) JSON; | |
NSArray *products = [jsonDict objectForKey:@"products"]; | |
[products enumerateObjectsUsingBlock:^(id obj,NSUInteger idx, BOOL *stop){ | |
NSString *productIconUrl = [obj objectForKey:@"icon_url"]; | |
}]; | |
} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, |
var rangeStart = new DateTime(2012, 1, 1); | |
var rangeEnd = new DateTime(2012, 12, 31); | |
var res = list | |
.Where(item => (item.StartTime < rangeStart ? rangeStart : item.StartTime) < (item.EndTime < rangeEnd ? item.EndTime : rangeEnd) ) | |
.ToList(); |
import {Observable, Subscriber} from 'rxjs/Rx' | |
export enum EventType { | |
CHILD_ADDED, CHILD_REMOVED, CHILD_CHANGED, CHILD_MOVED, VALUE | |
} | |
export interface RxFirebaseResponse { | |
snapshot: FirebaseDataSnapshot | |
siblingKey: string | |
} |
#### Run the Visual Studio Native Tools As an Administrator | |
#### The Exchange flag is VERY IMPORTANT | |
makecert -n CN=local.covertonight.com -sr LocalMachine -ss My -sky Exchange -pe |
import UIKit | |
import RxSwift | |
import Cartography | |
class HandleDisplayView: UIView { | |
private var disposeBag = DisposeBag() | |
logInButton.rx_tap | |
.flatMap { [unowned self] () -> Observable<FAuthData> in | |
firebaseRef.rx_authUser(self.emailTextField.text!, password: self.passwordTextField.text!) | |
} | |
.catchError({ (error) -> Observable<String?> in | |
return Observable.just(error.someErrorMessage) // figure out what you want to say. | |
}) | |
.observeOn(MainScheduler.instance) //not needed since Firebase will always by default deliver on the MainThread. | |
.subscribeNext { [unowned self] (errorMessage: String?) in | |
if let errorMessage = errorMessage else { // SHOW ALERT } |
class Annotation { | |
interface AnnotationLatLngChange { | |
onChange(LatLng latLng); | |
} | |
AnnotationLatLngChange changeHandler; | |
LatLng getLatLng(); | |
void setLatLng(); | |
} |