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) |
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
// | |
// 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
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
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
#include <iostream> | |
#include <cstdio> | |
using namespace std; | |
int main() | |
{ | |
/* Binary IO*/ | |
/* |
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 [withincovar, betweencovar] = discriminativecov(X, ids) | |
arr_ids = int16(ids); | |
dim = size(X, 2); | |
num_pts = size(X, 1); | |
num_class = size(unique(arr_ids), 1); | |
arr_ids_sets = cell(num_class,1); | |
arr_ids_count = zeros(num_class,1); | |
for i = 1:num_class |
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
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | |
# Mac OS X specific code | |
SET(OperatingSystem "Mac OS X") | |
ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | |
SET(OperatingSystem "Linux") | |
ELSE() | |
SET(OperatingSystem "Others") | |
ENDIF() |
This file has been truncated, but you can view the full file.
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
113.265 | |
113.308 | |
113.436 | |
113.515 | |
113.68 | |
113.75 | |
113.871 | |
113.894 | |
114.026 | |
114.051 |
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
## http://www.vision.caltech.edu/xpburgos/ICCV13/ | |
output_dets_f = './dets-COFW-train.txt' | |
image_root = './COFW-train-'; | |
load('COFW_train.mat'); | |
imgs = IsTr; | |
bboxes = bboxesTr; | |
lms = phisTr; | |
% output_dets_f = './dets-COFW-test.txt' |
OlderNewer