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
function [Tps, Fps] = ROC(scores, labels) | |
%% Sort Labels and Scores by Scores | |
sl = [scores; labels]; | |
[d1 d2] = sort(sl(1,:)); | |
sorted_sl = sl(:,d2); | |
s_scores = sorted_sl(1,:); | |
s_labels = round(sorted_sl(2,:)); | |
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
typedef struct demoStruct { | |
int val; | |
float *point; | |
} DemoStruct; | |
@implementation InitStructureAppDelegate | |
@synthesize window=_window; |
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
// | |
// TestView.m | |
// LayoutImageInText | |
// | |
// Created by Haoxiang on 6/14/11. | |
// Copyright 2011 DEV. All rights reserved. | |
// | |
#import "TestView.h" | |
#import "NSString+Extern.h" |
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
// | |
// FixWidthText.h | |
// LayoutImageInText | |
// | |
// Created by Haoxiang on 6/14/11. | |
// Copyright 2011 DEV. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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 'open-uri' | |
require 'rubygems' | |
require 'nokogiri' | |
require 'photoParser' | |
#rootURL = "http://www.douban.com/event/13967079/" | |
class EventParser | |
def self.parse(rootURL) | |
html = open(rootURL) |
NewerOlder